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.
See 
https://github.com/django/django/blob/master/django/core/mail/backends/smtp.py#L53
 
<https://github.com/django/django/blob/master/django/core/mail/backends/smtp.py#L53>

I’m happy to create a ticket for this but the contribution guidelines advise 
emailing the list first.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CB488419-0678-471C-A690-6BEDF39E895C%40gmail.com.

Reply via email to