[Mailman-Users] Changing host names, revisited... DEFAULT_EMAIL_HOST

Tanstaafl tanstaafl at libertytrek.org
Sun May 2 22:21:33 CEST 2010


The second question I have is about the DEFAULT_EMAIL_HOST setting...

Currently, people send to my lists using listname at example.com and
everything is working fine. But, while prepping for this change I found
this commented section from someone's mm_cfg.py (these comments aren't
in mine for some reason):

# For example, if people visit your Mailman system with
# "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain",
# and if people send mail to your system via "yourlist at dom.ain" then
# your email fqdn is "dom.ain".  DEFAULT_URL_HOST controls the former,
# and DEFAULT_EMAIL_HOST controls the latter.

According to this, my DEFAULT_EMAIL_HOST should just be 'example.com',
but it isn't, it is myhost.example.com - so why is mine working ok?

Thanks,

Charles

******************* My current and proposed new settings:

Defaults.py currently contains

> DEFAULT_EMAIL_HOST = 'myhost.example.com'
> DEFAULT_URL_HOST = 'myhost.example.com'
> DEFAULT_URL_PATTERN = 'http://%s/mailman/'

And my current/recently edited mm_cfg.py - the commented settings/lines
below are the changes I've added, in preparation for the change, and
will just comment/uncomment the relevant ones to 'flip the switch':

> ##################################################
> # Put YOUR site-specific settings below this line.
> MTA = 'Postfix'
> #DEFAULT_EMAIL_HOST = 'example.com'
> #DEFAULT_URL_HOST = 'lists.example.com'
> #add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> #VIRTUAL_HOSTS.clear()
> DEFAULT_URL_PATTERN = 'https://%s/mailman/'
> #POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.example.com']
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['myhost.example.com']
> ALLOW_SITE_ADMIN_COOKIES = Yes


More information about the Mailman-Users mailing list