On Fri, 23 Oct 2009, Angus Dunn wrote:

:0fw
* < 25600
| /usr/bin/spamc

*chuckle*  Yeah, that'd do it all right.

It looks like spamassassion will not be invoked if email is larger than 25600 bytes.

Correct.

:0fw
* < 102400
| /usr/bin/spamc

100KB is still rather small for an email with scannable attachments.

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 also has a size limit; that you aren't specifying it means it's using its internal default. See the spamc documentation for what that is and how to set it.

You should probably have your procmail rule set to the same size limit as spamc is using, and make both explicit. That will minimize overhead for messages larger than the limit and make it clear what is going on.

The size limit is generally set to 400-500KB. If you have an underpowered MTA/SA box you might want to set it smaller to reduce scanning load. Also take into consideration whether what you set it to lets an unacceptable amount of large spams to get through.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [email protected]    FALaholic #11174     pgpk -a [email protected]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  ...in the 2nd amendment the right to arms clause means you have
  the right to choose how many arms you want, and the militia clause
  means that Congress can punish you if the answer is "none."
                                -- David Hardy, 2nd Amendment scholar
-----------------------------------------------------------------------
 14 days since President Obama won the Nobel "Not George W. Bush" prize

Reply via email to