[Mailman-Users] Bounce Message, ReturnPath/ErrorsTo issue

Michael Kabot mkabot at soarol.com
Thu Jul 3 19:05:00 CEST 2008


Mark,

The modification to scripts/owner will do the trick for me.

I have owner notifications turned off on all lists, so no need to modify
Message.py.

Thank again for the assistance.

Mike

| -----Original Message-----
| From: Mark Sapiro [mailto:mark at msapiro.net]
| Sent: Thursday, July 03, 2008 12:56 PM
| To: mkabot at soarol.com; mailman-users at python.org
| Subject: Re: [Mailman-Users] Bounce Message, ReturnPath/ErrorsTo issue
| 
| Michael Kabot wrote:
| >
| >I have left Plesk managing the Mailman lists to try to keep continuity
| on my
| >server.  It looks like Plesk is not doing a good job of properly
| configuring
| >Mailman or the lists.
| >
| >The following is an excerpt from my mm_cfg.py
| >
| >	from socket import *
| >	try:
| > 	   fqdn = getfqdn()
| >	except:
| > 	   fqdn = 'mm_cfg_has_unknown_host_domains'
| >
| >	DEFAULT_URL_HOST   = fqdn
| >	DEFAULT_EMAIL_HOST = fqdn
| >
| >	add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
| >
| >	add_virtualhost('lists.[DOMAIN1.COM]')
| >	add_virtualhost('lists.[DOMAIN2.COM]')
| >      [ADDITIONAL LINES FOR EACH OF THE HUNDREDS OF DOMAINS I HOST]
| >
| >If there is no 2nd parameter to add_virtualhost, will it create one
| from the
| >1st parameter?
| 
| 
| Yes. add_virtualhost('xxx.somedomain') is equivalent to
| add_virtualhost('xxx.somedomain', 'somedomain').
| 
| 
| >It looks like getfqdn() is where the WRONGDOMAIN.COM is coming from.
| 
| 
| It looks that way. See <http://docs.python.org/lib/module-socket.html>.
| 
| 
| >Either way, I would rather have a bounced bounce message go
| >postmaster@[SERVER.COM] than a domain specific email address or the
| >mailman-bounces address.  Looks like I can "affect" that in the owner
| code
| >given my Mailman configuration.
| 
| 
| You can set that in the scripts/owner script for messages sent directly
| to or via the -owner address. This will get some but not all owner
| notifications. To get the rest, you also have to look at
| Mailman/Message.py. In the definition of the OwnerNotification()
| class's __init__ method there is
| 
|         sender = Utils.get_site_email(mlist.host_name, 'bounces')
| 
| which set's the sender similarly to the way the owner script does
| except it usees the list's host_name attribute as the domain of the
| mailman-bounces address.
| 
| --
| Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
| San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list