On 10/29/2010 4:33 AM, Sebastian Hagedorn wrote: > > For various reasons > we use 'lists.uni-koeln.de' as URL_HOST, but as EMAIL_HOST we use > 'uni-koeln.de'. So the address for the sitelist is [email protected]. > On the old system we were able to receive mail for @lists.uni-koeln.de > addresses as well, but on the new system we can't. But the listinfo CGI > uses [email protected] as the site address. I checked out the > code, but didn't really understand it – I'm more of a Perl guy ;) > > def get_site_email(hostname=None, extra=None): > if hostname is None: > hostname = mm_cfg.VIRTUAL_HOSTS.get(get_domain(), get_domain())
The code is correct. The problem is you have no VIRTUAL_HOSTS entry with key lists.uni-koeln.de and value uni-koeln.de. > if extra is None: > return '%...@%s' % (mm_cfg.MAILMAN_SITE_LIST, hostname) > return '%s...@%s' % (mm_cfg.MAILMAN_SITE_LIST, extra, hostname) > > Shouldn't that use the DEFAULT_EMAIL_HOST instead? I fixed our specific > problem by hardcoding the return value, but it seems to me that could be > a more general issue ... If you have defined DEFAULT_URL_HOST = 'lists.uni-koeln.de' DEFAULT_EMAIL_HOST = 'uni-koeln.de' in mm_cfg.py then you also need to include after those definitions add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) -- 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 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
