SMTP Relay for Postfix?

Discussion in 'Installation/Configuration' started by TonyG, Apr 29, 2025.

Tags:
  1. TonyG

    TonyG Active Member

    I'd like all email sent by the server to use a defined SMTP RelayHost. It seems the SMTP config info defined in ISPConfig only relates to mail sent by ISPConfig?

    v3.2.12p1 with Postfix installed but the Mail Server is not enabled for use with ISPConfig.

    I don't recall the effect of the two settings below, sorry.

    System > Server Config > Mail
    upload_2025-4-29_12-10-53.png

    System > Main Config (System Config) > Mail :
    upload_2025-4-29_12-8-28.png

    The SPF record for this domain (and the SMTP user) specifies that this server "may deliver or relay mail for this domain".
    Email from the server goes out as the current shell user, like [email protected] (which makes sense) but I'd prefer this info come from Postfix, and include preferred headers that prevent mail from the server from getting flagged by filters.

    Since postfix/main.cf isn't set with the info above, is that (or a related config) where we need to add SMTP creds again?

    Thanks.

    [EDIT] : The postfix/smtp mail log does show that mail is being relayed through the remote server, but it's going to port 25 and doesn't seem to be using the configured creds.
     
    Last edited: Apr 29, 2025
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Then, ISPConfig is not managing Postfix, so you can not use ISPConfig to do any mail-related settings on that server.

    You must manually configure the mail system when you disable the ability to configure it in ISPconfig.

    Regarding the settings, the first setting is the relay configuration on ISPConfig mail systems. As you have chosen that this mail system is not managed by ISPConfig, settings you do there can not have any effect.

    The second setting is how ISPConfig sends internal system notifications from the GUI.
     
    Last edited: Apr 29, 2025
  3. TonyG

    TonyG Active Member

    Got it. Thanks again. I configured in main.cf and shell sendmail works fine.

    The "internal system notifications" SMTP is also working with port 587. I understand now that those emails (like from Monit) go through bsd-mailx which does not support DKIM. That's not a problem since mails are all internal and the server is trusted.

    But Monit does support sendmail and Postfix. That's not necessary, again because this is all internal. But if I do want/need those notifications to include DKIM or other mail headers, and need to make changes in /etc/monit, is there anything there that breaks with ISPConfig?

    Finally, actually significant - The Client > Messaging > Send Mail feature isn't working. It says it sends email but there's no record in logs, no email sent or received.
    Known issue? Postfix support required?

    Thanks!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the settings in System > Main Config (System Config) > Mail. If you set a remote smtp server there, then there is nothing in the log of your local system when a email is sent.
     

Share This Page