Allow overriding smtplib local_hostname

28 views
Skip to first unread message

David Nolan

unread,
Dec 20, 2019, 7:33:35 AM12/20/19
to django-d...@googlegroups.com
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.

Tim Graham

unread,
Dec 20, 2019, 8:57:48 AM12/20/19
to Django developers (Contributions to Django itself)
Hi, there's already a ticket: https://code.djangoproject.com/ticket/6989
Reply all
Reply to author
Forward
0 new messages