We will edit the Exim configuration to relay SMTP via Amazon SES. (Amazon Simple Email Service)

 

amazon ses smtp credentials

 

Now, login to your VestaCP panel, and configure Exim.

 

vestacp amazon ses configure

 

Find “begin routers” in exim configuration.

 

begin routers 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.

 

begin transports exim relay 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.

 

begin authenticators exim relay 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.

 

amazon ses smtp credentials

 

Save and restart Exim in VestaCP panel.

 

save and restart exim

 

VestaCP Exim configuration done.

Remember: Amazon SES requires domain verification. So, you should verify each domain added in your VestaCP to Amazon SES panel. Without verify in Amazon SES the domain cannot send email.

verify domain in amazon ses