Hi.
I'm running mailman3 on a VPS. The hostname of the VPS is not the hostname that I'm using for mailman3. The webapp is using an Apache Virtual host. I am routing outgoing emails through a third-party smtp relay. The VPS hostname is smart.bnmng.com and the mailing list hostname is 757pug.org
Signup confirmation and welcome emails are working. They appear to be coming from the intended host, which is 757pug.org
But emails from the mailing lists are being blocked by the smtp relay. I think it's because they are not coming from 757pug.org; They are coming from smart.bnmng.com
All of the mailinglists' mail_host fields are correct, 757pug.org
from mailman.cfg:
incoming: mailman.mta.postfix.LMTP outgoing: mailman.mta.deliver.deliver lmtp_host: 127.0.0.1 lmtp_port: 8024 smtp_host: smtp.mailersend.net smtp_port: 587 smtp_secure_mode: starttls smtp_user: (my relay service username) smtp_pass: (my relay service password)
from settings.py: DEFAULT_FROM_EMAIL = 'admin@757pug.org' SERVER_EMAIL = 'admin@757pug.org' EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.mailersend.net' EMAIL_USE_TLS = True EMAIL_PORT = 587 EMAIL_HOST_USER = (my relay service username) EMAIL_HOST_PASSWORD = (my relay service password)
So it seems like mailman core is not using the mail_host field. How can I fix that?
Thank you