mitodl / open-discussions

BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Stop sending mail to bounced email addresses #2644

Open odlbot opened 4 years ago

odlbot commented 4 years ago

Looking at recent mailgun logs when we sent >80k messages in a day, it looks like mailgun is rejecting nearly 2k messages, most of them because mail had bounced to them earlier.

This doesn't seem to be causing a big issue, but it is a waste of our time to calculate those messages and attempt to send them when mailgun will reject them outright.

odlbot commented 4 years ago

➤ Sar commented:

I think a better use of email validation (5k/month as part of our plan) would be to make a validation request when users are signing up and providing their email.

pdpinch commented 4 years ago

Sure, but most of our new accounts come from MicroMasters (and edX before that), or from Touchstone —neither of which should be giving us bad addresses.

shaidar commented 4 years ago

Chatted with Nathan about it and it doesn't really serve much purpose to validate the email as the user isn't created until after they've verified their email address.