• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Pulling my hair out with SMTP Relay and 587

czech99

New Pleskian
Is it true, I can not have Postfix running without 25 AND 587 running simultaneously ? According to this document it says
Note: Plesk server cannot be configured to use 587 port for outbound SMTP traffic. Either only 25 or 25 in conjunction with 587 can be used. Also, Plesk will still be listening on 25 port alongside with 587.
Is this true? My host prohibits port 25 and I've been trying to use an SMTP relay like Mailjet for outgoing email, however I'm not having luck with it on Postfix. If I uninstall Postfix and use MSMTP (relay only) it works just fine. Obviously that then prohibits email account creation/usage and will work with only system messages like account creation or alerts, etc. So I'm leaving Postfix in place and I've followed guides online modifying the postfix/main.cf and adding relayhost and setting up sasl_password, etc and nothing seems to work. I get the follow messages in the maillog

Mar 30 16:16:11 postfix/smtp[8127]: 39AADC000F7F: to=<*****@****.com>, relay=none, delay=1078, delays=1048/0.03/30/0, dsn=4.4.1, status=deferred (connect to in.mailjet.com[104.199.96.85]:25: Connection timed out)
You can see it keeps trying to use port 25 rather than 587

Any help would be appreciated.
 
If your host blocks 25, you're out of luck. You can only relay outbound emails if 25 outbound is unblocked. There's no other option.
 
If your host blocks 25, you're out of luck. You can only relay outbound emails if 25 outbound is unblocked. There's no other option.

Hey John, looks like we were both wrong on this one. I did in fact get it to work. I found Google Clouds article on how to enable Postfix mail relay using their services since they specifically block 25 and 587. Luckily my host only blocks 25. I redid my main.cf config based off their instructions and got it start sending mail. I can now send/receive mail via roundcube, send mass mail, etc.

I am still running into 1 issue. If I got to reports, and send a daily report, i see in the mail log it sending it out, but it never arrives which is odd as everything else is working.
 
Hey John, looks like we were both wrong on this one. I did in fact get it to work. I found Google Clouds article on how to enable Postfix mail relay using their services since they specifically block 25 and 587. Luckily my host only blocks 25. I redid my main.cf config based off their instructions and got it start sending mail. I can now send/receive mail via roundcube, send mass mail, etc.

I am still running into 1 issue. If I got to reports, and send a daily report, i see in the mail log it sending it out, but it never arrives which is odd as everything else is working.
Do you mean you configured a relay host to send via 587? Receiving MTAs only accept mail via 25...
 
In that case, check with mail jets to see if the emails are being relayed. postfix logs will only show the email being accepted by the relay
 
In that case, check with mail jets to see if the emails are being relayed. postfix logs will only show the email being accepted by the relay
Which they are. My only issue now is the receiving the summary report for some odd reason. When I go to summary report > send report and put my email, it says it sends. The maillog shows it going out and then nothing happens.

Mar 31 17:12:54 mydomain amavis[1845]: (01845-01) Passed SPAM {RelayedTaggedInbound}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: r2hSPS_8r6IJ, Hits: 3.377, size: 9510, queued_as: C692DC000F8E, 1244 ms
Mar 31 17:12:54 mydomain postfix/smtp[18680]: BE7B1C000F80: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.03/0.01/0/1.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as C692DC000F8E)
Mar 31 17:12:54 mydomain postfix/qmgr[1573]: BE7B1C000F80: removed
Mar 31 17:12:55 mydomain postfix/smtp[18698]: C692DC000F8E: to=<[email protected]>, relay=in.mailjet.com[104.199.96.85]:587, delay=2.2, delays=0.24/0.01/1.5/0.44, dsn=2.0.0, status=sent (250 OK queued as fe9adafe-274b-4d11-baef-2e0b17efe24c)
Mar 31 17:12:55 mydomain postfix/qmgr[1573]: C692DC000F8E: removed
 
Last edited:
Back
Top