Hi Ralph I was trying to build a custom script which has below main.cf entry
smtpd_recipient_restrictions = check_policy_service unix:private/policy,reject_unauth_destination and policy unix - n n - 0 spawn user=nobody argv=/usr/libexec/postfix/perl.pl and script look like below.Am not sure how to get the input for my script ,i wrote something like this which is not working ---------------------- #!/usr/bin/perl $rcpt_threshold = 1; lc $attr{"recipient_count"} ; if ($rcpt_threshold gt $attr{"recipient_count"} ) { return "DUNNO"; } exit --------------- On Thu, Oct 25, 2012 at 7:27 PM, Ralf Hildebrandt <r...@sys4.de> wrote: > * Prashanth P.Nair <prashanth...@gmail.com>: > > ok..Is it Possible Hold the queue If recipient Limit is more than 10 > > Yes. > > > and > > process the HOLD queue using Perl script? > > You can use mailq to get queueIDs and then use postcat & postsuper > from perl. > -- > [*] sys4 AG > > http://sys4.de, +49 (89) 30 90 46 64 > Franziskanerstraße 15, 81669 München > > Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 > Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer > Aufsichtsratsvorsitzender: Joerg Heidrich > >