Re: Memory storage errors

Chris Babcock <[email protected]> Mon, 25 May 2009 12:18:08 -0700
Newsgroups gmane.mail.spam.crm114
Organization Kolonel Panic
Message-ID <[email protected]>
On Sun, 24 May 2009 16:09:10 -1000
[email protected] wrote:

> Looking through the mailing list archives and READMEs I found the
> -w flag, which solves the problem if I make the argument big enough.
> But this confuses me since I thought the decision_length parameter in
> mailfilter.cf cut off the amount of input mailreaver would use from
> each email.
> 
> Is this a bug?

The long and the short of it is that decision_length is useful because
it saves the time of evaluating huge mail since most spammers pop their
payload early. What decision_length doesn't do, apparently, is save
memory. I'm not familiar enough with the architecture of the script to
know whether it could be trivially modified, but my suspicion is that
it cannot. Most computer programs follow the architecture of the
language and CRM doesn't leave files open. If a CRM script produces a
version of the message as output then at some point it is highly likely
to have the entire message in memory.

If you control the mail server, my recommendation would be to make a
white list for multimedia senders and dump anything else over a certain
size with a 5xx error and the comment "You are not permitted to send
large attachments." 

If this is for your personal inbox then a white list and quarantine set
up might be the way to go until your white list is sufficiently mature
to just block large messages.

If you must receive large attachements from unknown people then
moving attachements from the message to file space prior to processing
might be useful.

Chris

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com

_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
signature.asc (application/pgp-signature, 489 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEcBAEBAgAGBQJKGu7xAAoJEASgqNsqZfCHub4H/jt13NJvM8CW+Mk++hWiFYgy
HNom7WbeId1C2vsr8Rz7MI+JfEgoiEoRATxtgzNZaU6fLKKiAbtCHKHpUosehFjV
xdxrUulWGT8iPZOiD6n2xEiPW6Ly94QW10daV7yUzL6xJy6aLZLoKjY7/KYhBEio
3jkMQ3IZOOXjTanBbQTCQwHaO0JHC4Grw7zG0LUdKMVHnRApOdFzktv7Dk+pyvWO
X9ISQBVpoN/+PGeXM8/GHwKl39Xn+pM1kwnBH0cMrg0G4qlxbrGDnrGj5XFDhVsg
dp/AYyXMQe8CuWqoR6t2JyWtdmcfFPKBSQd8tBB1gBG3rgF3i891VPnXdGk+OHU=
=ov3O
-----END PGP SIGNATURE-----