Felix,

> Which purpose should the configuration directive have?
> 1. It should limit the size of a mail because else SpamAssassin
> processing will take much too long.

Yes.

> 2. It is a kind of a "whitelisting" because virtually no spam mail
> will be of that size so checking is not necessary.

No.

The time is takes for SA to analyze a message goes roughly linearly
with its size. For large messages (and large MTA mail size limits)
this can become unreasonably long, quite likely to exceed time limits.
Since the likelyhood that a message is spam goes down when its
size becomes large (at least for the moment), it seems reasonable
to save long processing times at a small risk.

> After your explanation I came to the conclusion that it should be
> sa_mail_size_limit. Everyone knows that a mail consists of a header
> and a body and should set that limit accordingly. Compared to 200 kB
> in the standard amavisd.conf 5k seem to be small enough that this
> change would no effect many users.

At the time the paramater was introduced, the size was 64k.
Since spaminess appeared to be a function of mail contents
and not the number of hops a message needs to make through
all the mailers, the choice was to test the body size.

While I may agree that at 200 kB a change of 5 kB is negligible
and the name of the parameter can now wery well be sa_mail_size_limit,
it is a major compatibility headache to change it in config files
and SQL databases. Probably not worth it.

> Btw: Why is the value of sa_mail_body_size_limit in
> amavisd.conf-default different from that in amavisd.conf (undef vs.
> 200k)?

Because the default value is undef (= no limit)
and a recommender/usual value is 200 kB.

  Mark


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to