[Mailman-Users] fun with hostnames.

Mark Sapiro mark at msapiro.net
Wed Jan 27 02:21:20 CET 2010


Pennington, John wrote:
>
>I tried  to configure  mm_cfg.py like the following:
>
> 
>
>DEFAULT_EMAIL_HOST = 'fooalias.interest.com'
>
>DEFAULT_URL_HOST = 'foo.interest.com'
>


That's the way to do it. Plus adding

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

following the above two lines and maybe running fix_url to update lists
that were created before the change. See the FAQ at
<http://wiki.list.org/x/gIA9>.


>
>And it is mostly working. However the machine is still accepting mail
>from people who send to:
>
> 
>
>mailinglist at foo.interest.com and we want it to only accept mail sent to
>mailinglist at fooalias.interest.com
>
> 
>
> 
>
>Does anyone have an idea how to make this happen?


This has to be done in your MTA configuration and how to do it depends
on your MTA. The issue is any mail sent to foo.interest.com is
delivered to the same machine as mail to fooalias.interest.com and the
MTA finds the alias or whatever for the list and delivers the mail.

Depending on the MTA and how it delivers to Mailman this may be tricky
to resolve. Even if fooalias.interest.com is a virtual domain in the
MTA, the normal way of handling this for Mailman is to have a virtual
mapping from mailinglist at fooalias.interest.com to the local name
mailinglist so this makes mailinglist a valid local name so if
foo.interest.com is the local domain, mailinglist at foo.interest.com is
also a valid address for the list.

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



More information about the Mailman-Users mailing list