
kyle-qmail at memoryhole
May 21, 2009, 8:13 AM
Post #4 of 7
(1648 views)
Permalink
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Thursday, May 21 at 07:56 AM, quoth Kirk: > Thanks Kyle, I know this probably wasn't the correct list, but your advice > led me to the problem. It was the "my $sa_maxsize='256000';" which is too > small. So I increased it to 512000 and will monitor it in debug mode to > hopefully catch any other issues. Interesting... my version of SpamAssassin (3.2.5) simply doesn't generate X-Spam-* headers for messages that are too large. In any case, I'd be very cautious about fussing with your maximum message size. Because SpamAssassin does a lot of regex analysis, decomposes the MIME structure, and just generally expands each message in memory, it can very easily use a LOT more memory than you expect, especially if the message is rather complicated or has several layers of encoding. (In testing, I've been able to reliably trigger the OOMKiller with a single SpamAssassin instance; though admittedly it was analyzing a 210MB message.) In any event, unless you're refusing large messages at the MTA level (e.g. by putting a low number in /var/qmail/control/databytes), you will eventually get messages that are just large enough that SpamAssassin doesn't want to scan them. So, it would be wise to figure out what you want to do with such messages ahead of time. ~Kyle - -- Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves. -- William Pitt the Younger -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iQIcBAEBCAAGBQJKFW+aAAoJECuveozR/AWeyX0QALNpW1kksYQCW0s40ZWnRCJm 0n5DXdcrRftGtO49T6XhaythGhu3VEQLakTkrCXTbjy+Pt6HjspensGdNG40NOxQ h1zPN8zzTT00gzYcZ2pVF0jxMaFN4tzaxc+1HTFMqlvujM6Uyds3n60HaD6x20d+ CNUZ9Cyw308TasqNn5t3anaPtY/xSMRF+fu7tIrZvyXM5tl0MNeSvY/wwzmH01fz S+e5RC/067O9TlEPSb6joJuXdjjKrjcQ4VQCsBZRU7C51e31HOs1XDulFqzAOsLp Pke6xcv7aynA/hIsVQU9QOR6GOGW4qEYCv9ldC1qaGDc8ykmCCvdl17Go8IlnDAk J+sn+kwkOMNxtujQunIX4W7IXez29Omf1OSuFwEXS1b1ULUb/3Flm7M4FPs7FMnb hQb1Mj9xgGEMc7bnf9yKqyMY1l9diciBIAx94+P9X3FAA6saDDi/BP27tcm7Y6YA pRsMNB6/kVkOD1KKQmCpZeGEYDDmdfW1HPWcCKJ6ZtMTsf3aJYdFCruO2CqckDtR spm9Q4A7EEzoGzO3dw9j80BQmgpy60QJ0le7q2ZHhn/INDhv0UA9hxtf85b7Gwud 5qgfxi1tD30cuRZ5LEqPCoRbW+Ph0u61+iE/qzkDFK7z2Y7BT/A2en+2JPUOXdx0 ipE0b6xRykReH0ie+bMR =I/uE -----END PGP SIGNATURE-----
|