Hi,
I want to be able to configure postfix to relay mail for a specific domain through a SMTP server. The history is that AOL is blocking one of my client's newsletters because not enough email gets sent from my server to have a good reputation. So they block it. BS if you ask me but that's not your problem :-)
Anyway, so my thought was to configure postfix to send just their mailing list domain's mail through a google apps account, their primary domain's email host. So I installed the mail relay plugin and tried to enable it for their mailing list domain. But of course you can't have the "relay mail for domain" enabled at the same time as "mail for domain enabled." But, mailman is dependent on the "mail for domain enabled" feature.
So my question is, could the "mailman mailing lists" feature have its dependencies changed to where either one of the two (relay or local mail) would satisfy requirements? Is there any reason why mailman would not work with postfix mail relays?
Thanks! Alan
Comments
Submitted by andreychek on Wed, 12/25/2013 - 00:11 Comment #1
Howdy -- using a different tool, such as phpList, may be able to handle that a bit better. phpList can send email from any domain it's configured on through an external mail server, such as the Gmail account you were referring to.
Mailman can do that, but to my knowledge it can't do it per-domain... you would need to configure all of Mailman to send all email through that mail server.
That's not something that can be configured through Virtualmin, but you can see details on setting it up here:
http://wiki.list.org/pages/viewpage.action?pageId=4030619
Submitted by harty83 on Wed, 12/25/2013 - 00:27 Comment #2
Yes, but doesn't mailman just pass its mail to the local mail server, in most cases, postfix? And then doesn't the mail relay plugin (https://www.virtualmin.com/documentation/id,mail_relaying_with_virtualmin/) simply give the option to configure postfix to send out mail through different relays on a per domain basis?
So its not really about telling mailman to send through different servers on a per domain basis but rather postfix. Mailman is not affected, just postfix.
The client wants a mail direct mailing list which rules out 3rd party software such as phpList and services such as Mail Chimp etc since they require that the user login to a website vs just sending an email to a list address.
Thanks, Alan
Submitted by harty83 on Fri, 12/27/2013 - 12:15 Comment #3
Hi!
Hope you had a merry christmas!
Could you tell me where I can remove the mailman plugin's dependency not the "mail for domain enabled" feature? I want to test to see how mailman would work with the postfix relay option.
Thanks, Alan
Submitted by JamieCameron on Fri, 12/27/2013 - 20:20 Comment #4
You can't remove this dependency, as if the domain cannot receive email there would be no way to send to Mailman lists in the first place.
Submitted by harty83 on Fri, 12/27/2013 - 23:36 Comment #5
Ah; okay I think I've misunderstood how the relay plugin works.
Is it possible through virtualmin then to configure postfix to send mail via an external smtp server for a specific domain?
Thanks, Alan
Submitted by JamieCameron on Sat, 12/28/2013 - 12:54 Comment #6
I think this can be done using Postfix's "transport mapping" feature. To set this up, try the following :
Email from that domain should now be delivered via the specified SMTP server. Let us know if that works..
Submitted by harty83 on Sat, 12/28/2013 - 15:13 Comment #7
Thanks; I'll give it a shot and report back. Doesn't the relay mail plugin effectually do the same thing only allowing the domain owner to configure it?
Thanks, Alan
Submitted by harty83 on Sat, 12/28/2013 - 15:57 Comment #8
With the transport mapping settings, how do I tell postfix the login credentials for the smtp server? For example, if I use smtp.gmail.com, where do I put the login credentials for gmail and can I define it just for the single mapping?
Thanks! Alan
Submitted by andreychek on Sat, 12/28/2013 - 16:43 Comment #9
You would probably need to manually configure Postfix to handle authentication.
You can see an example of how to do that at the Postfix SASL documentation -- I'd suggest jumping to the section named "Enabling SASL authentication in the Postfix SMTP/LMTP client", which is near the end of the page here:
http://www.postfix.org/SASL_README.html