Note: Before doing it, Kindly check the Exim version. At the time of writing this article, Exim Version 4.94 is having bugs. So we have downgraded the Exim version from 4.94 to 4.93. You can get the details in this ticket link: https://clients.assistanz.com/admin/supporttickets.php?action=view&id=119747
We will edit the Exim configuration to relay SMTP via Amazon SES.
Now, login to the VestaCP panel, and configure Exim.
Find “begin routers” in Exim configuration.
After the begin routers line, add the following.
send_via_ses: driver = manualroute domains = ! +local_domains transport = ses_smtp route_list = * email-smtp.us-west-2.amazonaws.com;
Replace email-smtp.us-west-2.amazonaws.com with your amazon ses account’s region.
Find “begin transports” in Exim configuration.
After the begin transports line, add the following.
ses_smtp: driver = smtp port = 587 hosts_require_auth = * hosts_require_tls = *
Find “begin authenticators” in Exim configuration.
After the begin authenticators line, add the following.
ses_login: driver = plaintext public_name = LOGIN client_send = : USERNAME : PASSWORD
Replace USERNAME with your SMTP username, and PASSWORD with your SMTP password obtained from your Amazon SES account panel.
Save and restart Exim in the VestaCP panel.
VestaCP Exim configuration done.
Remember: Amazon SES requires domain verification. So, you should verify each domain added in your VestaCP to the Amazon SES panel. Without verifying in Amazon SES the domain cannot send an email.