regarding mailman plugin's dependencies

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

Status: 
Active

Comments

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

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

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

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.

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

I think this can be done using Postfix's "transport mapping" feature. To set this up, try the following :

  1. Go to Webmin -> Servers -> Postfix Mail Server -> Transport Mapping
  2. If "No map set" is selected, choose "Map specifications" instead and enter hash:/etc/postfix/transport in the adjacent text box, then click "Save and Apply"
  3. Click "Add a new mapping". In the "Name" box enter the domain name you want routed differently, and in the "Maps to" box enter smtp:xxxx where xxxx is the alternate mail server.
  4. Click "Save mapping"

Email from that domain should now be delivered via the specified SMTP server. Let us know if that works..

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

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

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