HighDots Forums  

Re: Using Mailman with Multi Mail Server

Python Python programming language mailing list


Discuss Re: Using Mailman with Multi Mail Server in the Python forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Sapiro
 
Posts: n/a

Default Re: Using Mailman with Multi Mail Server - 10-23-2009 , 01:04 PM






Hien HUYNH HUU wrote:

Quote:
That's exactly what I need , could you please tell me more what can I modify on SMTPDirect.py file ?

If I were doing this, I would modify the Connection class constructor
to accept host and port arguments and use them in the __connect()
method instead of mm_cfg.SMTPHOST and mm_cfg.SMTPPORT. Then I would
modify the

conn = Connection()
try:
[...]
finally:
conn.quit()
msgdata['recips'] = origrecips

code in process to instantiate multiple connections to multiple
servers. Maybe make mm_cfg.SMTPHOST and mm_cfg.SMTPPORT lists, and
instantiate one connection for each host/port pair. Then round-robbin
through the connections in the deliveryfunc() call in the while loop.

If the above is not clear, you have to learn Python until it becomes
clear.

Your effort would probably be better spent either learning how to tune
your existing MTA to be more performant or installing a more
performant MTA. In an earlier post, you mentioned delivering 10,000
messages in 10 minutes (a rate of 16.7 messages per second) as an
acceptable rate. On my server using Postfix essentially out-of-the-box
and full Mailman VERP, Mailman delivers on the order of 50 messages
per second to Postfix.

--
Mark Sapiro <mark (AT) msapiro (DOT) net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list Mailman-Users (AT) python (DOT) org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/python%40highdots.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.