Goal
Configure internal Postfix installation to relay email to Amazon SES SMTP server.Steps
Make sure you have done everything that Amazon SES requires you before you're able to send email using Amazon SES. After that you can start to proceed steps below.1. Install Postfix
$ sudo apt-get install postfix libsasl2-modules
2. Configure SMTP Credential
Make sure you already have Amazon SES username and secret key. Now we need to add the credential into postfix lookup table.$ sudo cat > /etc/postfix/sasl_passwd [email-smtp.us-east-1.amazonaws.com]:587 YOUR_USERNAME:YOUR_SECRET_KEY $ sudo chmod 0600 /etc/postfix/sasl_passwdYou may change the smtp server
email-smtp.us-east-1.amazonaws.com according region where you setup the Amazon SES. Now update the postfix lookup table.
$ sudo postmap /etc/postfix/sasl_passwd