On 3/23/09 7:44 AM, Mark Sapiro wrote: > 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.
Ahhh, I see. I missed the part where one add_virtualhost directive's key/value pair replaces another's. Thanks. > 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'. I've just set everything for simply 'mydomain.tld' (I'm only using one virtual domain at the moment, though that will change in the future), and all is good now. My mm_cfg.py additions are pasted below. Thanks again for your help. dn MTA = 'Postfix' MAILMAN_SITE_LIST = 'mailman' DEFAULT_EMAIL_HOST = 'mydomain.tld' DEFAULT_URL_HOST = 'mydomain.tld' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) add_virtualhost('mydomain.tld', 'mydomain.tld') DEFAULT_URL_PATTERN = 'https://%s/mailman/' PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s' IMAGE_LOGOS = '/icons/' POSTFIX_ALIAS_CMD = '/usr/local/sbin/postalias' POSTFIX_MAP_CMD = '/usr/local/sbin/postmap' POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'mydomain.tld', 'mydomain.tld' ] VERP_PASSWORD_REMINDERS = Yes VERP_PERSONALIZED_DELIVERIES = Yes VERP_DELIVERY_INTERVAL = Yes VERP_CONFIRMATIONS = Yes VERP_DELIVERY_INTERVAL = 1 OWNERS_CAN_ENABLE_PERSONALIZATION = Yes > > >> 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. > ------------------------------------------------------ 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