You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Michael Grant <mi...@gmail.com> on 2007/12/21 16:58:44 UTC

spamc/spamd failure

I'm running 3.2.3.  I'm noticing that spamc/spamd fails when it's
presented large messages containing rather large mime attachments
(like more than a megabyte or so).  When I run the messages through
spamc by hand, it returns immediately with a not-spam result with
headers like this:

X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:

When I run other messages through spamc, it muches on it for a while
before much more normal headers like:

X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
        charm.networkguild.org
X-Spam-Level: ********
...

Anyone else seen this?  Anyone have a fix?

By the way, for those running snertsoft's milter-spamc, this shows up
in the log as 'SPAMD status line failure'

Michael Grant

Re: spamc/spamd failure

Posted by Theo Van Dinter <fe...@apache.org>.
On Sat, Dec 22, 2007 at 01:32:57AM +0100, Michael Grant wrote:
> > > Anyone else seen this?  Anyone have a fix?
> > man spamd
> > It's suggested to not send messages to spamd that are > 250K in size.
> 
> Actually, it doesn't say this in the spamd man page at all.  However,
> spamc does have a limit and it states the maximum message size is

Doh.  Yeah, I meant spamc.  Sorry.

> 256M, not 256K and defaults to 500K.  I see one needs to set the -s

It depends on your SA version.  It used to be 256k, but apparently 3.2
upped it to 500k.

> not be an issue.  These messages are well below 256M.  milter-spamc
> only sends down the first 64K of the message in fact.

Wow, that would be pretty broken IMO.

> Furthermore, if spamd is rejecting the message because of message
> size, it would be really good if it returned an error like "message

spamd doesn't care about message size, it'll scan whatever it gets.

-- 
Randomly Selected Tagline:
"I could nail your head to the table, set fire to it, and feed the charred
 remains to the pak-mara.  But we can't always get what we want."
                - Sheridan on Babylon 5

Re: spamc/spamd failure

Posted by Michael Grant <mi...@gmail.com>.
On Dec 21, 2007 5:13 PM, Theo Van Dinter <fe...@apache.org> wrote:
> On Fri, Dec 21, 2007 at 04:58:44PM +0100, Michael Grant wrote:
> > I'm running 3.2.3.  I'm noticing that spamc/spamd fails when it's
> > presented large messages containing rather large mime attachments
>
> It doesn't fail in as much as it doesn't send it to spamd, as per its design.
>
> > Anyone else seen this?  Anyone have a fix?
>
> man spamd
>
> It's suggested to not send messages to spamd that are > 250K in size.

Actually, it doesn't say this in the spamd man page at all.  However,
spamc does have a limit and it states the maximum message size is
256M, not 256K and defaults to 500K.  I see one needs to set the -s
option to an appropriately larger size to get spamc to work with
larger messages.

But in any case, milter-spamc does not use spamc to submit to spamd,
it talks directly to spamd, thus this limitation in spamc this should
not be an issue.  These messages are well below 256M.  milter-spamc
only sends down the first 64K of the message in fact.

Furthermore, if spamd is rejecting the message because of message
size, it would be really good if it returned an error like "message
greater than 256K" or something like that.  What it's doing is closing
the connection (i.e. no status message at all, just an EOF).  Older
versions of spamd do not do this, I have 3.1.9 running on another box
which does not have this behavior.  Both are using the same version of
perl: 5.8.8.

Michael Grant

Re: spamc/spamd failure

Posted by Theo Van Dinter <fe...@apache.org>.
On Fri, Dec 21, 2007 at 04:58:44PM +0100, Michael Grant wrote:
> I'm running 3.2.3.  I'm noticing that spamc/spamd fails when it's
> presented large messages containing rather large mime attachments

It doesn't fail in as much as it doesn't send it to spamd, as per its design.

> Anyone else seen this?  Anyone have a fix?

man spamd

It's suggested to not send messages to spamd that are > 250K in size.

-- 
Randomly Selected Tagline:
"I'm a lesbian trapped in a man's body."      - W. Smith

Re: spamc/spamd failure

Posted by Rick Macdougall <ri...@ummm-beer.com>.
Michael Grant wrote:
> I'm running 3.2.3.  I'm noticing that spamc/spamd fails when it's
> presented large messages containing rather large mime attachments
> (like more than a megabyte or so).  When I run the messages through
> spamc by hand, it returns immediately with a not-spam result with
> headers like this:
> 
> X-Spam-Flag: NO
> X-Spam-Score: 0
> X-Spam-Level:
> 
> When I run other messages through spamc, it muches on it for a while
> before much more normal headers like:
> 
> X-Spam-Flag: YES
> X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
>         charm.networkguild.org
> X-Spam-Level: ********
> ...
> 
> Anyone else seen this?  Anyone have a fix?
> 
> By the way, for those running snertsoft's milter-spamc, this shows up
> in the log as 'SPAMD status line failure'
> 
> Michael Grant

Hi,

spamd doesn't scan messages over 256k by default.

Might be what you are seeing.

Regards,

Rick