[Mailman-Users] Mailman not sending

Mark Sapiro msapiro at value.net
Fri Jul 22 17:30:49 CEST 2005


bronto at csd-bes.net wrote:

>Well, I *thought* I had it fixed, but not.  It worked for the domain 
>that actually matches the machine name, but not for the virtual domain 
>I just tested.  The list address is something like "group at sbypc.org", 
>and my mm-cfg.py is as follows:


See comments below, although virtual hosts shouldn't have anything to
do with this issue.

>##################################################
># Put YOUR site-specific settings below this line.
>DEFAULT_URL_PATTERN = 'http://%s/mailman/'
>DEFAULT_NNTP_HOST = 'amd64.csd-bes.net'
>DEFAULT_EMAIL_HOST = 'amd64.csd-bes.net'
>DEFAULT_URL_HOST = 'amd64.csd-bes.net'
>MTA = 'Postfix'
>POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
>POSTFIX_MAP_CMD = '/usr/sbin/postmap'
>POSTFIX_STYLE_VIRTUAL_DOMAINS = 
>['amd64.csd-bes.net','mail.csd-bes.net','lists.csd-bes.net','sbypc.org','eagles81.org','ez-realty.net','maccounting.net','re-techtalk.com','hoopscout.com']
>DELIVERY_MODULE = 'SMTPDirect'
>SMTPHOST = 'localhost'

It is best to add

VIRTUAL_HOSTS.clear()

here to remove the entry from Defaults.py although this usually isn't
strictly necessary.

>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>add_virtualhost('amd64.csd-bes.net', 'amd64.csd-bes.net')

The line above essentially duplicates the one above it and is redundant.


>add_virtualhost('mail.csd-bes.net', 'amd64.csd-bes.net')
>add_virtualhost('lists.csd-bes.net', 'amd64.csd-bes.net')
>add_virtualhost('sbypc.org', 'amd64.csd-bes.net')

It seems from your reference to group at sbypc.org that this should
probably be

add_virtualhost('sbypc.org', 'sbypc.org')

and maybe similarly for all the others.

>add_virtualhost('eagles81.org', 'amd64.csd-bes.net')
>add_virtualhost('ez-realty.net', 'amd64.csd-bes.net')
>add_virtualhost('maccounting.net', 'amd64.csd-bes.net')
>add_virtualhost('re-techtalk.com', 'amd64.csd-bes.net')
>add_virtualhost('hoopscout.com', 'amd64.csd-bes.net')

Also, the Mailman.Archiver.Archiver.GetBaseArchiveURL() method inverts
the VIRTUAL_HOSTS dictionary to get the URL host name corresponding to
a particular email host. This doesn't work well if there are entries
with duplicate email host values.


>IMAGE_LOGOS = '/mailmanicons/'
>
>The error message is the same as below.  Since the add virtualhost item 
>above sets that to amd64.csd-bes.net, and amd64.csd-bes.net is the name 
>of the machine in the dns settings, that should take care of it, right? 
>  But it doesn't.

The VIRTUAL_HOSTS dictionary is not involved in this at all.

See http://mail.python.org/pipermail/mailman-users/2005-May/044742.html
for a Python script that does exactly what SMTPDirect does to send
mail.

Also see thread starting at
http://mail.python.org/pipermail/mailman-users/2005-June/045157.html

--
Mark Sapiro <msapiro at value.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