[Mailman-Users] creating new lists w/ virtual domains
Richard Barrett
r.barrett at openinfo.co.uk
Mon Aug 2 17:16:32 CEST 2004
On 1 Aug 2004, at 23:01, David N. Welton wrote:
>
> [ Please CC replies to me. ]
>
> Hi,
>
> I've been googling for a few hours and haven't seemed to hit on the
> answer.
>
> The problem (where 'example' is my domain):
>
> 1) From http://lists.example.com/cgi-bin/mailman/create how do I make
> it actually create a lists.example.com mailing list. The mails it
> send me are all along the lines of newlist at example.com.
>
> I have this in my config:
>
> MTA = 'Postfix'
> POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
> POSTFIX_MAP_CMD = '/usr/sbin/postmap'
> DEFAULT_EMAIL_HOST = DEFAULT_HOST_NAME
> DEFAULT_URL_HOST = DEFAULT_HOST_NAME
> DEFAULT_SERVER_LANGUAGE = 'en'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.example.com']
> add_virtualhost('lists.example.com')
>
$prefix/Mailman/Defaults.py says:
<quote>
# Helper function; use this in your mm_cfg.py files. If optional
emailhost is
# omitted it defaults to urlhost with the first name stripped off, e.g.
#
# add_virtualhost('www.dom.ain')
# VIRTUAL_HOST['www.dom.ain']
# ==> 'dom.ain'
#
def add_virtualhost(urlhost, emailhost=None):
DOT = '.'
if emailhost is None:
emailhost = DOT.join(urlhost.split(DOT)[1:])
VIRTUAL_HOSTS[urlhost.lower()] = emailhost.lower()
</quote>
so you may want to say:
add_virtualhost('lists.example.com', 'lists.example.com')
> And yet it just uses the version sans 'list' in front of it. Any
> ideas on how to turn this off?
>
> Thankyou,
> --
> David N. Welton
> Personal: http://www.dedasys.com/davidw/
> Free Software: http://www.dedasys.com/freesoftware/
> Apache Tcl: http://tcl.apache.org/
> Photos: http://www.dedasys.com/photos/
More information about the Mailman-Users
mailing list