[Mailman-Users] Modifying Mailman-generated virtuals file
Mark Sapiro
msapiro at value.net
Fri Oct 14 17:47:15 CEST 2005
Philip M. White wrote:
>
>So I wonder, is there any clean way of getting Mailman to append
>`@localhost' to every virtuals line?
I'm a little confused here. If you have MTA = 'Postfix' in mm_cfg.py,
Mailman uses the Mailman/MTA/Postfix.py to update the 'aliases' and
'virtual-mailman' files when creating or deleting a list.
On creation, Postfix.py checks the host_name of the list and if it is
in POSTFIX_STYLE_VIRTUAL_DOMAINS, it adds entries to the
'virtual-mailman' file that look like listname at host_name,
listname-bounces at host_name, etc.
It looks to me as though if you create a list with host_name (email
host) of 'localhost', you get what you want as long as 'localhost' is
in POSTFIX_STYLE_VIRTUAL_DOMAINS in mm_cfg.py. Perhaps there are
reasons why this won't work in your case, but I don't understand why
the entries don't have '@something' appended in any case.
If creating the list with host_name of 'localhost' is not a solution,
and I can see that it may well not be becauses of the other uses of
host_name, the only alternative is to modify Mailman/MTA/Postfix.py.
You can do this 'cleanly' by storing the modified version as (e.g.)
Mailman/MTA/localPostfix.py and then putting MTA = 'localPostfix' in
mm_cfg.py. In this way, your modified version will not be overwritten
when Mailman is upgraded.
--
Mark Sapiro <msapiro at value.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