[Mailman-Users] Bounce Message, ReturnPath/ErrorsTo issue
Michael Kabot
mkabot at soarol.com
Thu Jul 3 18:22:23 CEST 2008
(To the list this time !)
Mark,
Thanks for the quick response and pointers to the right place in the code.
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? I checked, there are no duplicate add_virtualhost lines.
It looks like getfqdn() is where the WRONGDOMAIN.COM is coming from.
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.
Thank you for your assistance !
Mike
| -----Original Message-----
| From: Mark Sapiro [mailto:mark at msapiro.net]
| Sent: Thursday, July 03, 2008 11:18 AM
| To: mkabot at soarol.com; mailman-users at python.org
| Subject: Re: [Mailman-Users] Bounce Message, ReturnPath/ErrorsTo issue
|
| Michael Kabot wrote:
| >
| >My apologies, I should have noted that
| > - I have Bounce Processing turned off
| > - I have the -bounces address forwarding to the -owner address. With
| >Bounce Processing off I still needed bounce messages to go back to the
| list
| >owner
| > |/var/qmail/bin/preline /var/qmail/bin/mm_wrapper
| >/usr/lib/mailman/mail/mailman
| > owner [LISTNAME]
|
| <snip>
|
| >Neither [RIGHTDOMAIN.COM] or [WRONGDOMAIN.COM] are the domain of the
| >'mailman' site list. [WRONGDOMAIN.COM] is coincidentally the last
| >add_virtualhost line of my config file.
| >
| >Where in the code are these being added to the -owner address?
|
|
| The scripts/owner script which receives mail addressed to -owner sets
|
| envsender=Utils.get_site_email(extra='bounces')
|
| (this is in Mailman/Utils.py). This in turn gets the domain part of the
| address in a complex way (see Utils.get_domain()), but in this case,
| it boils down to
|
| - get DEFAULT_URL_HOST
| - look up the corresponding email host in mm_cfg.VIRTUAL_HOSTS
| (the dictionary built by add_virtualhost())
|
| So it looks like you probably have more that one add_virtualhost()
| entry with the same url_host argument (either DEFAULT_URL_HOST or its
| literal value.
|
| This doesn't work. VIRTUAL_HOSTS is a Python dictionary (hash table)
| with key = the first add_virtualhost() argument and value = the second.
|
| So, if you have something equivalent to
|
| add_virtualhost('www.example.com', 'example.com')
| add_virtualhost('www.example.com', 'example.net')
|
| the second entry replaces the first.
|
| All url_hosts and all email hosts in
|
| add_virtualhost(url_host, email_host)
|
| lines need to be unique for it to work as intended.
|
| --
| 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