[Mailman-Users] virtuel domains + list-owner notification

Mark Sapiro msapiro at value.net
Wed Nov 16 06:31:53 CET 2005


Maik Weidemann wrote:
>
>At first, my lists with virtuel domains works fine!
>But one problem exist! When user un-/subscribe to the list, a
>notification mail is send to the list owner. And there is the problem!
>This notification mail has the sender adresse
>mailman-bounces at virtuelDomainOfTheList (mailman-bounces at juweb.de,
>juweb.de is a virtuel domain), but this adress did not exist. The
>mailman-list has the domain jg-service.de, so only
>mailman-bounces at jg-service.de exist. Mailman did not creat the adress
>mailman-bounces at virtuelDomain in the virtuel-domain-file for my postfix.
>
>I use version 2.1.5
>My config for virtuel domains in mm_cfg.py:
>
>># Put YOUR site-specific settings below this line.
>>MTA = 'Postfix'
>>
>>DEFAULT_EMAIL_HOST = 'jg-service.de'
>>DEFAULT_HOST_NAME = 'jg-service.de'
>>DEFAULT_URL_HOST = 'www.jg-service.de'
>>DEFAULT_URL = 'www.jg-service.de'
>>IMAGE_LOGOS = '/images/'
>>
>>VIRTUAL_HOST = {'juweb.de':'juweb.de',
>>                'www.juweb.de':'juweb.de'}
>>
>>add_virtualhost(DEFAULT_URL, DEFAULT_HOST_NAME)
>>add_virtualhost('juweb.de', 'juweb.de')
>>add_virtualhost('www.juweb.de', 'juweb.de')
>>
>>POSTFIX_STYLE_VIRTUAL_DOMAINS = [  'juweb.de']
>>
>So what is my mistake?


There is a small mistake on your part, but it has nothing to do with
your problem. The lines

VIRTUAL_HOST = {'juweb.de':'juweb.de',
                'www.juweb.de':'juweb.de'}

in mm_cfg.py are meaningless because the dictionary is VIRTUAL_HOSTS,
not VIRTUAL_HOST, but the last two add_virtualhost lines put the
entries in the correct dictionary.

The issue here is that when Mailman creates an address for the site
list, such as the mailman-bounces address above, it uses the domain of
the list being processed. This will result in addresses such as
mailman-bounces at juweb.de in your case.

I am not very knowledgeable about Postfix, but mail to either address
mailman at jg-service.de or mailman at juweb.de should be properly delivered
to the site list. Likewise, mail to either
mailman-bounces at jg-service.de or mailman-bounces at juweb.de should be
properly delivered as a site list bounce. I think this may require
manually adding mailman at juweb.de and mailman-*@juweb.de entries in the
'virtual-mailman' file and similarly for any additional virtual
domains you may create in the future.

-- 
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