Peter S?rensen: > Hi, > > I use postfix 2.7.0 on Ubuntu 10.04 LTS > > I have some dynamic mail list saved in a Mysq table. Outside > programs save the list of users to deliver to and then send mail > to an alias for the list. This is normally low frequency mail. > > I use a policy server to restrict access to these list and that > is all working very well. > > Now some users would like to update a list with a higher frequency > so I need a mechanism to make sure mail is delivered before they > can update the field containing the users to deliver to. > > I can make the policy server put a lock ( mysql-ndbd) on the row > containing the users but I can't find a way to make sure this lock > is released again. > > Any way to get a hook that make it possible to do some handling > after the mail is delivered?
If the mail delivering program is outside Postfix, wrap the program in a script that unlocks your table after successful email delivery, before it returns control to Postfix. Wietse