I managed to (sort-of) fix the problem. It's a hack, and will probably
cause problems in the future, but here is what I did:
In the filter.sh script, I changed:
cat | $SPAMASSASSIN -x | $ANOMY/bin/sanitizer.pl \
$ANOMY_CONF 2>>/tmp/anomy.log > out.$$ || \
{ echo Message content rejected; exit $EX_UNAVAILABLE; }
to:
cat | $SPAMASSASSIN -x | $ANOMY/bin/sanitizer.pl \
$ANOMY_CONF 2>>/tmp/anomy.log > out.$$
So, I basically took off the error checking - it seems the '||' ('or')
was causing problems of some kind - though I'm not sure why. But
messages with attachments seem to be sending properly, and dropping
'questionable' files as it should.
If anyone has any ideas on how to turn on the error checking again, I'd
appreciate some input!!
Thanks,
-Lucas