On 02/20/2018 10:01 AM, Abhilash Raj wrote:
One _hack_ that I can think of is that when using maps for postfix, Core calls the "postmap" command to generate the maps from the files that it generates. You can potentially provide a script that updates the MySQL database with the same configuration instead of generating maps and specify that script in configuration to be called by Core instead of "postmap".
More information on how to do this. On mail.python.org we want to do some manipulations to the various maps, so we have a script to do this. The first step is in your mailman.cfg file, add an [mta] section if there isn't one and in that section add
configuration: /path/to/your/postfix.cfg
That file is a copy of mailman/config/postfix.cfg except you change the line
postmap_command: /usr/sbin/postmap
to
postmap_command: /path/to/your/script
While you could just edit mailman/config/postfix.cfg directly, this is not advisable as your edits will be lost in an upgrade.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan