Re: Allow overriding smtplib local_hostname

2019-12-20 Thread Tim Graham
Hi, there's already a ticket: https://code.djangoproject.com/ticket/6989 On Friday, December 20, 2019 at 7:33:35 AM UTC-5, David Nolan wrote: > > Hey all. > > In cloud environments, when using > django.core.mail.backends.smtp.EmailBackend, socket.getfqdn() is called > to resolve the 'reported

Allow overriding smtplib local_hostname

2019-12-20 Thread David Nolan
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