I've configured postfix with spamassassin. master.conf is as following.
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter -f ${sender} -- ${recipient}
smtp inet n - n - 20 smtpd
-o content_filter=spamfilter:dummy
above configuration is working fine.
I want to add spampd proxy after spamfilter. I've tried the following but it does not work.
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter -f ${sender} -- ${recipient}
125 inet n - y - - smtpd
-o content_filter=spamfilter:dummy
-o content_filter=smtp:192.168.0.51:10025
127.0.0.1:10026 inet n - n - 10 smtpd
-o content_filter=
I need to use spampd proxy to connect other mta for users authentication. So therefore i want to filter and discard spam before sending request/data to spampd. Can anybody help me in this regard. If there is any option to discard spam before delivering it to final destination in SpamPD that is also suitable for my scenario.