David Newman wrote:
>
>I didn't have these two lines:
>
>VIRTUAL_HOSTS.clear()
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
>but adding them and restarting apache and mailman, deleting and
>recreating the list didn't resolve the original error.


That won't help if your representation of what you have is accurate.
You show

DEFAULT_EMAIL_HOST = 'mydomain.tld'
DEFAULT_URL_HOST = 'mydomain.tld'
add_virtualhost('mydomain.tld', 'mail.mydomain.tld')

make that

DEFAULT_EMAIL_HOST = 'mydomain.tld'
DEFAULT_URL_HOST = 'mydomain.tld'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

You now have a VIRTUAL_HOSTS dictionary with one entry with both key
and value = 'mydomain.tld'. Then

add_virtualhost('mydomain.tld', 'mail.mydomain.tld')

replaces that entry with one with key 'mydomain.tld' and value
'mail.mydomain.tld'. Every virtual host has to have a unique web host
because that's the key to look up the corresponding email host.

Also, if your list has email host 'mail.mydomain.tld', no
virtual-mailman entries will be created for it because

POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'mydomain.tld' ]

says only create virtual-mailman entries for lists with email host
'mydomain.tld'.


>You mentioned you'd need more info -- what else do you need?


I need to know the web and email domains for all the domains that have
lists - not necessarily the real domain names, but some representation
of them. I need to know which of these are virtual domains to Postfix.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to