lastuser
lastuser copied to clipboard
Removing emails from accounts
When a user goes inactive, there should be two ways to remove email addresses associated with their account:
- If the email address had a hard bounce
- If the domain's owner (identified by owning the
postmaster@handle) asks for it to be removed (API call or web form).
Hard bounces are typically logged by the SMTP provider (Sendgrid in our case), so we need to call their APIs to identify bounces.
From #160:
Lastuser should remove email addresses from a user's account when a hard bounce happens, moving such addresses to UserOldEmail.
Additional code to sync bounces from an external API like Sendgrid or Amazon SES is also needed.