Prevent duplicate emails to same recipient
We had a bug on our end that sent the same message to the same recipient thousands of times—resulting in thousands of spam reports while we were oblivious until months later.
While there are things we could do on our end to improve quality control and ops, etc., it would be amazing if Mailgun could provide a duplicate detection feature. I'm imagining saving a hash of content for sent messages, and catching any time we repeat the content to any recipient. A repeat could be prevent, or an alert sent, or both.

5 comments
-
Eugene commented
+1 for this. One way Mailgun could perform this is to has the message body, associate it with a recipient and drop any messages send to the recipient with the same hash. We implemented something like this on our end, but a failure in a subcomponent managing our message queue caused that logic to be overlooked.
-
Rajkumar commented
We are facing a similar issue, From mailgun it sending more than 1000 duplicate emails to the same recipient.
Checked the mailgun logs too, With the server response 250: ok it sending the repeated emails to the same user.
Kindly suggest any solution to overcome this problem. Attached the mailgun log details.
-
Arash Karimzadeh commented
+1. A notification to the account holder or an option to stop mailgun from sending them out from the settings page.
-
Anonymous commented
This would be really useful to prevent some occasional confuses.
-
Anthony Amolochitis commented
When sending the duplicate emails, and mailgun detecting them. An alert should be sent to the mailgun account holder to notify them about the duplicate emails. Also, this feature should have an on or off switch.
Also, emails will need to be re-sent sometimes, so a resend flag should probably be added, or a duplicate email limit per day could be added. I am not sure exactly but something along that line might be good.