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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to