scanner / as_email_service

A Django app and smtp relay service for working with 3rd party email services and asimap
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bounces to the forward_to email address for an email account with forwarding cause the email account to be deactivated #4

Closed scanner closed 1 year ago

scanner commented 1 year ago

When an email account is has its delivery method set to 'fowarding' an email address to forward to is specified. However, due to various typos, failures, etc, that email address may not accept email generating bounces.

Postmark is fairly strict about making sure you do not send a lot of email that bounces.

So for an abundance of caution if email sent to a forwarding address bounces, then we change the email account delivery type from 'forwarding' to 'local delivery.' Also generate an email stating this.

Generate a notification that this has been done.

The rules are:

  1. if bounce was from an email account that is forwarding
  2. the email address that bounced is the one that the email account is forwarding to.
  3. The actions specified in #2 still occur.