Thanks Viktor. Your suggestion worked perfectly :)
Seems like change in behavior between version 2.6.6 and 2.11.11 (or something got fixed?) Thanks Arshad On Fri, Aug 31, 2018 at 10:15 AM Viktor Dukhovni <postfix-us...@dukhovni.org> wrote: > > > > On Aug 30, 2018, at 9:56 PM, Arshad Khan <khan.m.ars...@gmail.com> > wrote: > > > > Apologies for not being clear in my earlier message. > > > > What I want is for the content filter to be invoked once per message and > not per recipient. I tried setting various values for > *_destination_recipient_limit (including 1) to get the desired behavior. > But no matter what value I set, Postfix still invokes the filter for each > recipient. Here are the settings for filter in master.cf: > > > > 192.168.1.10:10025 inet n - n - - smtpd > > -o content_filter=my_filter > > Change that to: > > -o content_filter=my_filter:localhost > > Otherwise, the envelope is split by recipient domain, message > envelopes are split by destination nexthop when the recipient > limit is > 1 (and by user when not). > > -- > Viktor. > >