nik600 wrote:
master.cf:smtp inet n - n - - smtpd -o content_filter=filter:dummy 9009 inet n - n - - smtpd -o content_filter=filter:dummy filter unix - n n - 20 pipe flags=Rq user=filter argv=/var/antispam/myscript -f ${sender} -- ${recipient} [snip] postconf -n: [snip]
I see nowhere where you disable address rewrite. so you shouldn't see the problem you described. can you show logs that prove that the filter gets the non expanded address? You can also log the addresses in your script.
PS. If your script cannot handle multiple recipients, then you want: filter_destination_recipient_limit = 1
