How to Setup Amazon SES as mail relay in CloudStick

To begin with the Amazon SES setup, you need to edit the exim configuration file very carefully and we suggest you take a backup of the exim configuration file prior to any edits. This way you can able to revert the file from the backup in case you get any configuration failure:

 

create a backup the file /etc/exim4/exim4.conf.template to get this done, use the command below:

 

cp /etc/exim4/exim4.conf.template /etc/exim4/exim4.conf.template-back

 

vi /etc/exim4/exim4.conf.template

 

Under ‘begin authenticators’ Please add the following lines:

 

ses_login:
driver = plaintext
public_name = LOGIN
client_send = : user : password

 

Under ‘begin routers’ Please add the following lines:

 

send_via_ses:
driver = manualroute
domains = ! +local_domains
transport = ses_smtp
route_list = * email-smtp.your-region.amazonaws.com;

 

Under ‘begin transports’ Please add the following lines:

 

ses_smtp:
driver = smtp
port = 587
hosts_require_auth = *
hosts_require_tls = *

 

It is mandatory to verify your domain before the steps above.