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

Create a separate SMTPD service for receiving email for local delivery #141

Open scanner opened 5 months ago

scanner commented 5 months ago

Using postmark or an equivalent service to receive emails is okay. However postmark has no way to refuse a received email if we do not actually have an account to receive that email. We just drop it on the floor.

Also postmark's spam assassin seems a bit weak. We have to set a level of 2 for most obvious spam to be denied. So we want to receive emails ourselves. We will use a separate demon for this, listening on a separate interface.

scanner commented 2 months ago

In orde to roll this out on the same server but binding to different interfaces add variables to the .env that specify the interfaces to bind to. host from the asyncio.create_server accepts either a string or list of strings that are IP address interfaces to bind to.

So we need an env var for the relay/user aiosmtpd and one for the local delivery aiosmtped.