On Wed, 13 Jan 2010, Cecil Westerhof wrote:

John Hardin <jhar...@impsec.org> writes:

In the thread:
   http://osdir.com/ml/debian-bugs-closed/2009-08/msg01318.html

Error code 98 is described as the message being fed being to big

Documentation aside, why are you passing such messages to SA in the first place? I'd recommend adding a size test to your script - why waste the cycles asking spamd to ignore the message because it's too large to scan?

That would be a good optimisation. But I did not know this possibility when I wrote the script and was taken by surprise about why my script did not work.

Ah. Ok.

How do I found out what the size limit is? And I still need the check, because when the size limit changes (or the wrong one is used) you will get the error.

Per "man spamc":

   -s max_size, --max-size=max_size
       Set the maximum message size which will be sent to spamd -- any
       bigger than this threshold and the message will be returned
       unprocessed (default: 500 KB). If spamc gets handed a message
       bigger than this, it won't be passed to spamd.  The maximum
       message size is 256 MB.

       The size is specified in bytes, as a positive integer greater
       than 0.  For example, -s 500000.

I'd suggest doing a size test and explicitly telling spamc to use the same size limit.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Our government should bear in mind the fact that the American
  Revolution was touched off by the then-current government
  attempting to confiscate firearms from the people.
-----------------------------------------------------------------------
 4 days until Benjamin Franklin's 304th Birthday

Reply via email to