DEP 0018 Mailers cleanup (f.k.a. email providers)#111
Conversation
Update when warning is issued. Clarify purpose and content of warning.
Renaming based on discussion in earlier PR. First-pass renaming by Codex GPT-5.5 (medium). Additional review and editing by me (XL).
There was a problem hiding this comment.
This should include the DEP number: draft/0018-email-providers.md.
It might also make sense to rename to draft/0018-mailers.md.
Finally, perhaps we should move this to accepted/0018-mailers.md in this PR?
Edit - oh, I see you mentioned this in your PR summary!
| @@ -6,25 +6,25 @@ Shepherd: Natalia Bidart | |||
| Status: Draft | |||
There was a problem hiding this comment.
Should we move this to Accepted?
codingjoe
left a comment
There was a problem hiding this comment.
Hm… now that I see it, I have become hesitant. It reads funny (but English is my second language).
Naming things is hard, but if I have learned anything in the past years, inventing words never pans out.
So I read into the RFC 5321 and here they are explicitly referred to as Gateway.
A "gateway" SMTP system (usually referred to just as a "gateway")
receives mail from a client system in one transport environment and
transmits it to a server system in another transport environment.
Differences in protocols or message semantics between the transport
environments on either side of a gateway may require that the gateway
system perform transformations to the message that are not permitted
to SMTP relay systems. For the purposes of this specification,
firewalls that rewrite addresses should be considered as gateways,
even if SMTP is used on both sides of them (see RFC 2979 [27]).
We are currently only supporting RFC 5321 (SMTP) messages, but let's look into the future: SMS calls them gateways too. RCS is only a message spec, the SIP (RFC 3261) for transport. Here gateway refers to PTSN bridges. But no sane person will ever build their own VoIP stack.
TL;DR: My conclusion: EMAIL_GATEWAYS and django.core.mail.gateways and django.core.mail.default_gateway.
There was a problem hiding this comment.
You might want to update the filename too.
Followup from PR #105 and some other cleanup:
EMAIL_PROVIDERStoMAILERS(assisted by GPT-5.5)sendtestmail --using ALIASoption as suggested future workAlso, I'd suggest renaming the file to
0018-mailers.mdat some point—perhaps when it it is moved out of the draft directory. (Renaming the file will likely complicate reviewing any other changes in GitHub.)