
Hi, I am migrating the mailman distribution lists from one instance to the other.
To reserve/block the DL names, I have copied over the all 'lists' folders to the new instance.
Is there an option to run 'genaliases' per Distribution list on a on demand basis. I believe the default behavior is that it checks all the lists in the installation directory and sets up the aliases in the file /etc/mailman/aliases and aliases.db
I am running v2.1.12 of mailman with postfix.
Regards, Kamlesh

On 07/08/2014 01:33 PM, Kamlesh Rao wrote:
Is there an option to run 'genaliases' per Distribution list on a on demand basis. I believe the default behavior is that it checks all the lists in the installation directory and sets up the aliases in the file /etc/mailman/aliases and aliases.db
There is no such genaliases option, but you could put the following 3 lines in a file named make_alias.py in Mailman's bin/ directory
from Mailman.MTA.Postfix import create def make_alias(mlist): create(mlist)
and then the command
bin/withlist -r make_alias LISTNAME
will create the aliases for LISTNAME.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 07/08/2014 01:33 PM, Kamlesh Rao wrote:
Is there an option to run 'genaliases' per Distribution list on a on demand basis. I believe the default behavior is that it checks all the lists in the installation directory and sets up the aliases in the file /etc/mailman/aliases and aliases.db
There is no such genaliases option, but you could put the following 3 lines in a file named make_alias.py in Mailman's bin/ directory
from Mailman.MTA.Postfix import create def make_alias(mlist): create(mlist)
and then the command
bin/withlist -r make_alias LISTNAME
will create the aliases for LISTNAME.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Kamlesh Rao
-
Mark Sapiro