Mailing List Archive

[Bug 3472] This email gets stuck in spamd and puts large load on CPU
http://bugzilla.spamassassin.org/show_bug.cgi?id=3472





------- Additional Comments From felicity@kluge.net 2004-06-04 11:27 -------
Subject: Re: New: This email gets stuck in spamd and puts large load on CPU

On Fri, Jun 04, 2004 at 11:15:57AM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> URL: http://www.wcape.school.za/wcsn/1BWIyg-000BMx-DI.tar.gz
>
> I'm submitting a email that will not parse through spamd it keeps retrying its
> putting a very heavy load on my server. I have tared the mail as it was in
> the ./scan/ dir. see URL

I'm sure it does. Compressed, the file is almost 4MB in size. The .eml
file inside is ~1.8MB (the tgz has the email and attachments broken out
into separate files).

By default, spamc will not pass anything to spamd that is >250k
in size because resource requirements go up dramatically
as the message size increases. This is documented at
http://wiki.apache.org/spamassassin/SpamdKillingServer

How are you calling spamd? If through spamc, it should't send the message
through to spamd unless you've increased the max message size via -s.
If it's through another method, you should configure it to not send
large messages through to spamd.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 3472] This email gets stuck in spamd and puts large load on CPU [ In reply to ]
http://bugzilla.spamassassin.org/show_bug.cgi?id=3472





------- Additional Comments From spamassassin-contrib@msquadrat.de 2004-06-04 11:38 -------
I think we should actually add a (configurable) size limit to the libs itself.
That way stuff DoS attacks against spamd wouldn't be possible in the first
place.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 3472] This email gets stuck in spamd and puts large load on CPU [ In reply to ]
http://bugzilla.spamassassin.org/show_bug.cgi?id=3472





------- Additional Comments From jm@jmason.org 2004-06-04 12:00 -------
Subject: Re: This email gets stuck in spamd and puts large load on CPU

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


bugzilla-daemon@bugzilla.spamassassin.org writes:
>I think we should actually add a (configurable) size limit to the libs itself.
>That way stuff DoS attacks against spamd wouldn't be possible in the first
>place.

yeah, I agree.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFAwMaWQTcbUG5Y7woRArecAKDLN/LKWTTl+tgoJvUi+gu3Ww/fLQCgvorH
X5RS26DI3Eb9DagCx7k/GZw=
=OTw5
-----END PGP SIGNATURE-----





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 3472] This email gets stuck in spamd and puts large load on CPU [ In reply to ]
http://bugzilla.spamassassin.org/show_bug.cgi?id=3472





------- Additional Comments From felicity@kluge.net 2004-06-04 12:11 -------
Subject: Re: This email gets stuck in spamd and puts large load on CPU

On Fri, Jun 04, 2004 at 11:38:30AM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> I think we should actually add a (configurable) size limit to the libs itself.
> That way stuff DoS attacks against spamd wouldn't be possible in the first
> place.

Well, I'm -1 on that. The modules/libspamc shouldn't be trying to make
decisions about what work to do. They're functions, they'll do what
they're supposed to do. You want the decision logic in front of the
modules to decide what to process and what to skip.

We do this right now in spamc so that there are no resources used in
spamd for large messages. Arguably, we could put the same logic in
spamd so that in the event the message gets to spamd, it'll take the
memory hit but can return the message unprocessed to avoid the DoS issue.

Frankly, this discussion is better suited to -dev and/or another bugzilla
ticket though.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 3472] This email gets stuck in spamd and puts large load on CPU [ In reply to ]
http://bugzilla.spamassassin.org/show_bug.cgi?id=3472





------- Additional Comments From David@wcsn.org.za 2004-06-04 14:34 -------
Hi I'm calling it from exim using exiscan I will try get it to exclude messages
the are that big.

Thanks for the help



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 3472] This email gets stuck in spamd and puts large load on CPU [ In reply to ]
http://bugzilla.spamassassin.org/show_bug.cgi?id=3472

David@wcsn.org.za changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID



------- Additional Comments From David@wcsn.org.za 2004-06-04 14:41 -------
Thanks its working 100% now.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.