Simon wrote: >On 8/5/2008 4:44 PM, Mark Sapiro wrote: >> I don't think so. I'm confused at this point. Mailman and Postfix both >> seem to be set up properly for you to mail to >> [EMAIL PROTECTED], yet your mysql alias seems to be >> required for you to mail to [EMAIL PROTECTED] >> >> Which domain do you want to use for your list mail? > >mydomain.com - so lists would be just [EMAIL PROTECTED] > >Remember, I didn't set this up, I inherited it, so I'm trying to fix it. > >>> 1. just one domain for list mail > >> If that is the domain which is currently DEFAULT_EMAIL_HOST, which I >> gather is 'myhost.mydomain.com', then I think everything should work >> if you just mail to that domain. >> >> So what is this domain? > >That is it, but I don't want to have to use the host. part, because >everyone is used to just [EMAIL PROTECTED] > >>> 2. just one domain for web access > >> And is this the DEFAULT_URL_HOST domain? > >yes. > >>> 3. it is a virtual domain in postfix, but it is the only one, and I >>> don't see that changing. > >> And which domain is this? > >mydomain.com
OK. Here's what you want to do step by step. in mm_cfg.py DEFAULT_EMAIL_HOST = 'mydomain.com' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.com'] This will set the default domain for email to mydomain.com which is what you want. Then the add_virtualhost will actually replace the entry in the VIRTUAL_HOSTS dictionary which was set in Defaults.py with the 'wrong' email host. It will replace rather than add because the keys (DEFAULT_URL_HOST) are the same. Then it will tell list creation to create virtual aliases for lists in the mydomain.com domain. Restart Mailman so the qrunner processes will pick up the changes to mm_cfg.py. The next step is to run Mailman's bin/withlist -a -l -r fix_url which will change the host_name for all lists to mydomain.com. Then you can run Mailman's bin/genaliases to rebuild data/aliases* and data/virtual-mailman* with the correct virtual domain. Concurrent with this, you need to remove all the mysql virtual mappings of the form [EMAIL PROTECTED] [EMAIL PROTECTED] and [EMAIL PROTECTED] [EMAIL PROTECTED] etc. if any, since they are now in the way. Your Postfix main.cf should be OK. That should set you up so future list creation/deletion will just work. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] 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
