Quoting Angus Dunn <angus.d...@3idea.com>:
2. I am using procmailrc to invoke spamassassin.
Here is the /etc/procmailrc:
DROPPRIVS=yes
:0fw
* < 25600
| /usr/bin/spamc
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null
~
As someone suggested, this may be due to size of the email. It looks like
spamassassion will not be invoked if email is larger than 25600 bytes.
I changed the above to the following:
DROPPRIVS=yes
:0fw
* < 102400
| /usr/bin/spamc
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null
That seems to fix the problem.
I also have a question:
Do i really need to check for the size of email? Should I just remove the
size check?
spamc documentation shows the default scan size is 500Kb. If you have
the system resources, you could eliminate the size restriction. I'm
calling spamc directly from the MTA and have the size set to 256Kb.