Actually the policy servers just give control back to postfix and let it handle the final delivery. I would prefer that. So the policy server only put's on the lock.
________________________________________ Fra: [email protected] [[email protected]] På vegne af Wietse Venema [[email protected]] Sendt: 4. juni 2012 10:48 Til: Postfix users Emne: Re: After delivery processing ? 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
