On Wed, Mar 02, 2016 at 01:52:26PM -0600, helices wrote: > On Wed, Mar 2, 2016 at 1:47 PM, Viktor Dukhovni <postfix-us...@dukhovni.org> > wrote: > > > Simplest is to have SA invoke your filter instead of sendmail(1). > > > > spamassassin unix - n n - - pipe > > user=spamd argv=/usr/bin/spamc -f -e > > /var/spool/filter/bin/filter.sh -f ${sender} -- ${recipient} > > > > I tried exactly that & test messages disappear ;-(
The issue is that the above has "user=spamd", but your filter has "user=filter". So the filter likely has permission problems when running as 'spamd' instead. You need to configure a single user that has permissions to do what both spamc and your filter need to do. If mail just disappeared (did not bounce), your filter is buggy, it should have reported errors accessing the resources it needed. -- Viktor.