On 2/20/2012 3:29 AM, Peter Sørensen wrote: > > I would like to have this script run whenever the virtual-mailman is updated.
Add /usr/sbin/postmap $1 to the beginning of your script and put POSTFIX_MAP_CMD = '/path/to/your script' in mm_cfg/py. This will invoke your script with argument equal the path to virtual-mailman whenever lists are created or deleted. Your script will then run the default postmap command to update virtual-mailman.db and can then do whatever you do do update relay_recipients. The FAQ at <http://wiki.list.org/x/ZoCj> has more details on this kind of process. -- Mark Sapiro <[email protected]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] http://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: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
