[Mailman-Users] How auto create Postfix virtual aliases on MySQL table

Davide Marchi danjde at msw.it
Fri Mar 8 05:46:19 EST 2019

> On 3/7/19 12:36 PM, Davide Marchi wrote:
>> Hi Friends,
>> We have a Postfix mail server on Debian Stretch, where all virtual 
>> user
>> and virtual aliases are stored on MySQL tables.
>> I would like to know if Mailman could provide its creation in 
>> automatic
>> or alternatively is there a configuration file that provides the
>> execution of a script at the end of every new list generation?
>> so as not to lose the changes to each update?
> Assuming you are talking about Mailman 2.1 (this is a MM 2.1 list), and
> assuming You have Postfix/Mailman integration set up as in sections
> 6.1.1 and 6.1.2 of the installation manual
> <http://www.list.org/mailman-install/node12.html>, every time a list is
> created or removed, Mailman runs the commands defined by default as:
> POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
> POSTFIX_MAP_CMD = '/usr/sbin/postmap'
> to update the .db files for Mailman's data/aliases and 
> data/virtual-mailman
> You can set these in mm_cfg.py to point to any script you want to read
> the files and do whatever you need.
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan

Yes, I'm are talking about Mailman 2.1, excuse me for not having 
declared it!
I've found very useful your your suggestions, now I will do some tests 

may thanks!


More information about the Mailman-Users mailing list