Strategy ONE

Configure Your SMTP Server

  1. Create SES SMTP username and password via Amazon SES console.
  2. Log into the machine for which you want to change the Postfix configuration.
  3. Upload new certificates which verify the Amazon SES server (<your certificate path>/xxx.ct).
  4. Modify /etc/postfix/sasl_passwd with the new endpoint name, username, and password.
  5. Generate a hashmap database file:

    Copy
    sudo postmap hash:/etc/postfix/sasl_passwd 
    sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db 
    sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db 
  6. Tell Postfix where to find the proper certificates:
  7. Copy
    sudo postconf -e 'smtp_tls_CAfile = <your certificate path>/xxx.ct'

  8. Restart Postfix:

    Copy
    sudo postfix stop
    sudo postfix start