I have configured postfix on my server to deliver only @gmail.com mails to Amazon SES:
gmail.com smtp:email-smtp.eu-west-1.amazonaws.com:25
* :
Also, I configured in the Amazon SES console to receive Bounces and Complains on mail using Amazon SNS. The problem is that I don't receive a bounce if I send a mail to a non-existent gmail address.
If sending a mail from mail.google.com to the address [email protected] I receive:
Delivery to the following recipient failed permanently:
[email protected]
But If sending from a PHP script to the same address, postfix says:
E4E1A9F9CE: to=<[email protected]>, relay=email-smtp.eu-west-1.amazonaws.com[54.72.42.170]:25, delay=21, delays=0.02/0.04/11/10, dsn=2.0.0, status=sent (250 Ok 00000146d86bcc13-9fa1ac16-b1cd-476e-8398-31f406d47961-000000)
So Amazon SES accepts the mail but I don't get notified of the failure. What can be wrong?
Note. When sending to valid emails, everything works as expected.
Also, when sending a test mail from AWS SES console to [email protected], I am immediately notified via email, but sending to the same email from a PHP script via email-smtp.eu-west-1.amazonaws.com does not results in an email notification.