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

Mark Sapiro mark at msapiro.net
Thu Mar 7 15:56:27 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

More information about the Mailman-Users mailing list