Hey all.
In cloud environments, when using django.core.mail.backends.smtp.EmailBackend, socket.getfqdn() is called to resolve the 'reported hostname' for smtplib. This often resolves to an internal DNS name, not the intended name.
It would be convenient to provide a kwarg to allow overriding this setting, which is currently hard-coded in the open() function.
I’m happy to create a ticket for this but the contribution guidelines advise emailing the list first.