23 Apr
2020
23 Apr
'20
9:12 p.m.
On 4/23/20 12:11 PM, Gelpi Andrea wrote:
I can confirm that the fix works.
Thank You so much.
Thank you for testing and reporting. Note I have just made one minor change to the fix.
Where I had in the added code
if (MailDomain.objects.get( mail_domain=domain.mail_host).site.name == web_host):
I now have
if (MailDomain.objects.get( mail_domain=domain.mail_host).site.domain == web_host):
The issue is site.name is the domain's display name whereas the domain name is site.domain. This only matters if you have given the site a display name different from the domain name in Django.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan