Plesk External SMTP with Amazon Simple Email Service (SES)

It is pretty straight forward, but you may hit some odd errors. For troubleshooting error messages, scroll past this section.

To start, in Amazon Web Services:

In the Plesk console:

Your Plesk External SMTP server settings should be similar to this, make sure port is 587 and that SMTP server requires encrypted connection is enabled. Clicking apply will reset any previous configuration.

Plesk External SMTP Server Settings for Amazon Simple Email Services (SES)

Troubleshooting potential errors and configuration issues

The server did not accept the mail

You may run into issues using the Amazon Simple Email Service (SES) with a Plesk AMI from the store. The reason being that the host address for the Plesk installation defaults to AWS internal DNS name. You need to use a domain that is authorised in the Amazon SES account to send email from. Do you see any of these error messages in the server mail log?

from=some-username@ip-172-12-192-125.eu-west-1.compute.internal recipients=info@authorised-domain.com 
smtpstatus=554
smtpmsg='554 Message rejected: Email address is not verified. The following identities failed the check in region EU-WEST-1: some-username@ip-172-12-192-125.eu-west-1.compute.internal' 
errormsg='the server did not accept the mail' 
exitcode=EX_UNAVAILABLE

Fix:

Cannot connect to smtp.servername.com, port 25: Connection timed out

The server sent an empty reply

If your error message contains “errormsg=’cannot connect to email-smtp.eu-west-1.amazonaws.com, port 25: Connection timed out'” or “errormsg=’the server sent an empty reply'” then this is more likely a configuration error. Make sure to use port 587 and “SMTP server requires encrypted connection” is enabled.


Posted by: Ian Brown
Ian is a Technical Lead for Iress, a global financial software leader. He is passionate about front end web development, enjoys coding in JavaScript & TypeScript and has the goal to make the web more accessible for those that are impaired visually or otherwise.

Did you appreciate this content? Did you find a typo? Do you have any tips that worked for you? Please leave a comment.

Click to share

Leave a Reply

Your email address will not be published.