Mailman and Postfix on different hosts?

Simple question, would it be possible to run mailman on one host, and the Postfix MTA on another host?
The reason is that I'm configuring a new in/outgoing server that eventually should take over the "old" one, the old should keep the web server functionality, so I'd like to split things up.
If it can be done, any hints on how?
Anders Norrbring Norrbring Consulting

Anders Norrbring wrote:
Simple question, would it be possible to run mailman on one host, and the Postfix MTA on another host?
The reason is that I'm configuring a new in/outgoing server that eventually should take over the "old" one, the old should keep the web server functionality, so I'd like to split things up.
If it can be done, any hints on how?
Using a different host for outgoing mail is simple. Just set SMTPHOST in mm_cfg.py.
Incoming mail to Mailman is more difficult. This has been discussed before on this list. See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.018.htp for searching information.

On 8/30/06, Mark Sapiro msapiro@value.net wrote:
Anders Norrbring wrote:
Simple question, would it be possible to run mailman on one host, and the Postfix MTA on another host?
The reason is that I'm configuring a new in/outgoing server that eventually should take over the "old" one, the old should keep the web server functionality, so I'd like to split things up.
If it can be done, any hints on how?
Using a different host for outgoing mail is simple. Just set SMTPHOST in mm_cfg.py.
Incoming mail to Mailman is more difficult. This has been discussed before on this list. See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.018.htp for searching information.
You also need to have DELIVERY_MODULE = 'SMTPDirect' But this is likely already set.
In some ways you are using the new machine as a proxy. I found this link to be helpful. http://www.muine.org/~hoang/postfix.html
It is however both for an older version of postfix and for Sun. Still I thought it laid it out clearly.

Eric Howland skrev:
On 8/30/06, Mark Sapiro msapiro@value.net wrote:
Anders Norrbring wrote:
Simple question, would it be possible to run mailman on one host, and the Postfix MTA on another host?
The reason is that I'm configuring a new in/outgoing server that eventually should take over the "old" one, the old should keep the web server functionality, so I'd like to split things up.
If it can be done, any hints on how?
Using a different host for outgoing mail is simple. Just set SMTPHOST in mm_cfg.py.
Incoming mail to Mailman is more difficult. This has been discussed before on this list. See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.018.htp for searching information.
You also need to have DELIVERY_MODULE = 'SMTPDirect' But this is likely already set.
In some ways you are using the new machine as a proxy. I found this link to be helpful. http://www.muine.org/~hoang/postfix.html
It is however both for an older version of postfix and for Sun. Still I thought it laid it out clearly.
Thanks guys! I'll look at the provided links to see if I get the idea.. ;) I'll come back here otherwise!

Anders Norrbring skrev:
Eric Howland skrev:
On 8/30/06, Mark Sapiro msapiro@value.net wrote:
Anders Norrbring wrote:
Simple question, would it be possible to run mailman on one host, and the Postfix MTA on another host?
The reason is that I'm configuring a new in/outgoing server that eventually should take over the "old" one, the old should keep the web server functionality, so I'd like to split things up.
If it can be done, any hints on how?
Using a different host for outgoing mail is simple. Just set SMTPHOST in mm_cfg.py.
Incoming mail to Mailman is more difficult. This has been discussed before on this list. See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.018.htp for searching information.
I'm having troubles finding info on this matter.. Probably because English isn't my native language, so I guess I just don't get the search terms right to get relevant results.
Anyway, more info would be really useful.
Thanks, Anders.

Anders Norrbring wrote:
I'm having troubles finding info on this matter.. Probably because English isn't my native language, so I guess I just don't get the search terms right to get relevant results.
Try the threads starting at http://mail.python.org/pipermail/mailman-users/2005-January/041819.html and http://mail.python.org/pipermail/mailman-users/2005-November/047646.html
Both of the above were found with http://www.google.com/search?q=site%3Amail.python.org+inurl%3Amailman+fetchmail.

Mark Sapiro skrev:
Anders Norrbring wrote:
I'm having troubles finding info on this matter.. Probably because English isn't my native language, so I guess I just don't get the search terms right to get relevant results.
Try the threads starting at http://mail.python.org/pipermail/mailman-users/2005-January/041819.html and http://mail.python.org/pipermail/mailman-users/2005-November/047646.html
Both of the above were found with http://www.google.com/search?q=site%3Amail.python.org+inurl%3Amailman+fetchmail.
Thanks Mark, But I don't feel that fetchmail would be the right way for me...
I'm thinking that maybe I can mount the mailman executable directory from the webserver as a NFS share, and then run "as usual".
Would that work?
Anders Norrbring Norrbring Consulting

On 10/6/06, Anders Norrbring lists@norrbring.se wrote:
Thanks Mark, But I don't feel that fetchmail would be the right way for me...
I'm thinking that maybe I can mount the mailman executable directory from the webserver as a NFS share, and then run "as usual".
Would that work?
While this is theoretically possible ('all' the mailman executables need is to be able to access the configuration files and access the qfiles), you're basically just installing mailman on your mail server, with extra, needless, layers of complexity.
The best way, really, to do this is to either (a) use fetchmail, or (b) set up your real mail server to forward the appropriate mail (i.e., the mailman messages) to the MTA on the mailman machine. (a) will be simpler, maybe (I've never actually done that.) (b) seems like a 'better' solution, to me.

Patrick Bogen skrev:
On 10/6/06, Anders Norrbring lists@norrbring.se wrote:
Thanks Mark, But I don't feel that fetchmail would be the right way for me...
I'm thinking that maybe I can mount the mailman executable directory from the webserver as a NFS share, and then run "as usual".
Would that work?
While this is theoretically possible ('all' the mailman executables need is to be able to access the configuration files and access the qfiles), you're basically just installing mailman on your mail server, with extra, needless, layers of complexity.
The best way, really, to do this is to either (a) use fetchmail, or (b) set up your real mail server to forward the appropriate mail (i.e., the mailman messages) to the MTA on the mailman machine. (a) will be simpler, maybe (I've never actually done that.) (b) seems like a 'better' solution, to me.
Hmm.. Forwarding should do it I guess. The goal I'm aiming for is to split off all webserver activity from the mail host.. I guess that's clearly doable, I think the only thing would be to set up the Postfix on the webserver to use a subdomain for the lists, otherwise everything would loop back to the first SMTP. At least in my theory.. :)

At 5:01 PM +0200 10/6/06, Anders Norrbring wrote:
I'm thinking that maybe I can mount the mailman executable directory from the webserver as a NFS share, and then run "as usual".
The Mailman developers have done a lot of work to try to make Mailman as NFS-safe as possible. In theory, you should be able to put the entire /usr/local/mailman directory on NFS and share that from the web server to the mail server, and so long as you properly configure both ends that should "just work".
Of course, any time you put content on NFS and you have two different servers accessing that content, you have a number of additional issues and you have to make sure that NFS is properly configured to support that method of use. In particular, you need to make sure that client-side attribute caching is turned off, among other things.
You also need to keep in mind that being dependant on an NFS server for this kind of operation will introduce a number of new types of failure modes (like everything appears to completely lock up if the NFS server goes away), and that unless you're spending a lot of money for a pretty high-end NFS server this will reduce your throughput and the overall reliability of the system.
participants (5)
-
Anders Norrbring
-
Brad Knowles
-
Eric Howland
-
Mark Sapiro
-
Patrick Bogen