I've been following how to set up a mail server - by Flurdy in order to set up a more secure mail server on my Amazon EC2 Ubuntu 12.04 instance. I've followed the article to the letter, but I can't get it working alongside Amazon SES.
Amazon SES has been set up for Postfix following this document
#Amavis configuration: content_filter = amavis:[127.0.0.1]:10024 #SES configuration: relayhost = email-smtp.us-east-1.amazonaws.com:25 smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_use_tls = yes smtp_tls_security_level = encrypt smtp_tls_note_starttls_offer = yes smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
With the Amavis
content_filter uncommented the mail logs reveal deferred
>> postfix/smtp: 0C1084605: to=<email@example.com, relay=127.0.0.1[127.0.0.1]:10024, delay=35, delays=35/0.03/0/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
content_filter is commented out - the relay is set to Amazon SES - and emails are sent fine..
>> postfix/smtp: 333744B3B: to=<firstname.lastname@example.org>, relay=email-smtp.us-east-1.amazonaws.com[18.104.22.168]:25, delay=19, delays=17/0/0.8/0.6, dsn=2.0.0, status=sent (250 Ok 0000013e5a87e718-87720c2b-5542-4e3d-8034-57f3152e2e05-000000)
Can anyone shed some light? Cheers