- Plesk for Linux
Outgoing email messages are not delivered. They are stuck in a mail queue which can be seen at Plesk > Tools & Settings > Mail Server settings > Mail Queue.
- One of the following errors can be found in
CONFIG_TEXT: May 1 11:46:02 user postfix/error: D1E58F0D2F6: to=<email@example.com>, relay=none, delay=564, delays=475/89/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to example.com[203.0.113.2]:25: Connection timed out)Or:
CONFIG_TEXT: connect to example.com[Or:
203.0.113.2]:25: Connection timed out BF8DD84260: to=, relay=none, delay=90, delays=0.03/0/90/0, dsn=4.4.1, status=de
CONFIG_TEXT: Aug 22 12:55:08 localhost postfix/error: 78C2E41C90D0: to=<firstname.lastname@example.org>, relay=none, delay=12908, delays=12907/0.06/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to example.com[203.0.113.2]:25: Connection refused)
- Incoming emails arrive without any issues.
- Testing connection on port 25 via telnet results in success:
CONFIG_TEXT: # telnet example.com 25
Connected to example.com.
Escape character is '^]'.
220 mx.example.com ESMTP e28si1653007plj.30 - gsmtp
- The incorrect IP address is specified for outgoing mail mode at Plesk > Tools & Settings > Mail Server Settings.
- Incorrect MX records are set for the server hostname.
- A connection is refused by a firewall, other network device or remote mail server.
- Log into Plesk.
- Set a correct IP address (usually the main Plesk IP address) for an outgoing mail mode at Plesk > Tools & Settings > Mail Server Settings.
- If the solution above does not help do the following:
3.2. Add the following value for smtp_bind_address parameter in the file
CONFIG_TEXT: 203.0.113.100 - unix - n n - - smtp -o smtp_bind_address=203.0.113.100 -o smtp_bind_address6= -o smtp_address_preference=ipv4
For more information, see the article: How to configure the IP address for outgoing mail in Postfix.
3.3. Correct MX record(s) in DNS settings: records should point to the same IP that SMTP server is assigned to.
3.4. Ensure that server's firewall or intermediate firewall is not blocking a connection.