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 <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