Re: [Mailman-Users] run script when virtual-mailman is updated

2012-02-21 Thread Peter Sørensen
: mailman-users@python.org Emne: Re: [Mailman-Users] run script when virtual-mailman is updated On 2/21/2012 12:25 AM, Peter Sørensen wrote: > Thanks Mark - exactly what I needed. Not quite sure on the $1. > This I could'nt make work. Mailman invokes the POSTFIX_MAP_CMD command with one arg

Re: [Mailman-Users] run script when virtual-mailman is updated

2012-02-21 Thread Mark Sapiro
On 2/21/2012 12:25 AM, Peter Sørensen wrote: > Thanks Mark - exactly what I needed. Not quite sure on the $1. > This I could'nt make work. Mailman invokes the POSTFIX_MAP_CMD command with one argument equal to the path to the virtual-mailman file. The intent is that this will run /usr/sbin/post

Re: [Mailman-Users] run script when virtual-mailman is updated

2012-02-21 Thread Peter Sørensen
en Cc: mailman-users@python.org Emne: Re: [Mailman-Users] run script when virtual-mailman is updated 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 scr

Re: [Mailman-Users] run script when virtual-mailman is updated

2012-02-20 Thread Mark Sapiro
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 equ

[Mailman-Users] run script when virtual-mailman is updated

2012-02-20 Thread Peter Sørensen
Hi, I have a script that take email addresses from virtual-mailman and write them to my postfix relay_recipients table This to avoid handling any address that mailman don't know of. I would like to have this script run whenever the virtual-mailman is updated. I can of course run bin/genaliases