Prevent re-injection into Postfix

May 20, 2017
174
18
83
Netherlands
cyberfusion.io
Hi,

We use postfwd2, which ratelimits stuff based on the amount of RCPTs.

I noticed that postfwd2 counts messages twice, because each one has RCPTs: the original message, and the one relayed to pmg-smtp-filter and then re-injected (using `content_filter`). Here's someone else with a similar issue: https://serverfault.com/questions/1...ting-emails-when-used-with-posftix-and-amavis

Obviously, both postfwd2 and PMG behave correctly, but doubling postfwd2's RCPT count everywhere feels ugly. Does PMG support a way to not re-inject relay mails to pmg-smtp-filter?
 
Obviously, both postfwd2 and PMG behave correctly, but doubling postfwd2's RCPT count everywhere feels ugly. Does PMG support a way to not re-inject relay mails to pmg-smtp-filter?
not sensibly ... pmg-smtp-filter is not a general purpose smtp-server/client - this is why the mail is sent to postfix to deal with the further distribution...