4
votes

I have an issue with Amazon SES and Amazon SNS. following this doc : http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html#SendMessageToHttp.confirm

Amazon SES gives you the opportunity to call an URL when some events are fired (like bounces and deliveries). In order to configure it, we need three things :

  • a valid email address enter image description here
  • a valid Topic in Amazon SNS (Push Notification Service) enter image description here
  • a valid subscription to a topic enter image description here

The objective is to call the end point when sending an email to an not existant address. so I configured my email notifications like that. enter image description here I just linked my topic to my address. But the bounce event is never fired. (I sent an email to [email protected] (which is of course an non existent email))

I've also tried to link the topic to the delivery event, and it works like a charm (this time I send an email to my personal address), I don't understand the difference between these two events. But in delivery case all is functional.

I configure my endpoint to http://admin.nlv3.fr/nlv3/bounce. In the delivery event case my URL is correctly called. In the bounce event case this same url is never called

Do I need to configure something else in order to have bounce event ?

Thank you for your help

2

2 Answers

1
votes

I posted some real world data on this as an answer to a similar question recently.

https://stackoverflow.com/a/29977793/4179009

Amazon will keep trying to deliver to bad domains for hours. I typically receive bad domain bounces 12-16 hours after the mail was sent. I presume this is to account for times when DNS could be temporarily down or incorrect or if a mail server is offline temporarily.

1
votes

A bounce to a "fake" email address, particularly to an apparently fake (non-existent) domain like this, could take several hours to return, since the system should be expected to retry a number of times before giving up. You should eventually see these come in, but there's a better way:

Test against the simulator, by sending a message to [email protected], which will cause a "hard" bounce (while what you're trying is more likely to cause a "soft" bounce, at least for a few hours), and fire the notification almost immediately (without being counted against you).

See also: the various outcomes that can occur after the email is sent.