> I have a serious problem with Amavis at the moment because Amavis holds > every e-mail larger than 0,1MB and puts it in a loop in > /var/lib/amavis/tmp > > I'm using Amavis+ClamAV+Maia. First of all I have changed the quota > setting in the Maia-DB to -1 because at the first time Maia was blocking > the e-mail icm with Amavis.
> Jun 22 18:10:51 mail amavis[26878]: (26878-01) Charging 6200651 bytes to > remaining quota 100418 (out of 102400, (6057%)$ > Jun 22 18:10:51 mail amavis[26878]: (26878-01) Exceeded storage quota > 102400 bytes by mime_decode; last chunk 6200651 b$ > Where is the quota of 0,1MB set also ? The decoding quota is calculated from the original mail size and the following settings: $MIN_EXPANSION_QUOTA $MAX_EXPANSION_QUOTA $MIN_EXPANSION_FACTOR $MAX_EXPANSION_FACTOR according to the formula in amavisd.conf-sample: # For the cumulative total of all decoded mail parts we set max storage size # to defend against mail bombs. Even though parts may be deleted (replaced # by decoded text) during decoding, the size they occupied is _not_ returned # to the quota pool. # # Parameters to storage quota formula for unpacking/decoding/decompressing # Formula: # quota = max($MIN_EXPANSION_QUOTA, # $mail_size*$MIN_EXPANSION_FACTOR, # min($MAX_EXPANSION_QUOTA, $mail_size*$MAX_EXPANSION_FACTOR)) # In plain words (later condition overrules previous ones): # allow MAX_EXPANSION_FACTOR times initial mail size, # but not more than MAX_EXPANSION_QUOTA, # but not less than MIN_EXPANSION_FACTOR times initial mail size, # but never less than MIN_EXPANSION_QUOTA # $MIN_EXPANSION_QUOTA = 100*1024; # bytes (default undef, not enforced) $MAX_EXPANSION_QUOTA = 300*1024*1024; # bytes (default undef, not enforced) $MIN_EXPANSION_FACTOR = 5; # times original mail size (default is 5) $MAX_EXPANSION_FACTOR = 500; # times original mail size (default is 500) Btw, recent version of amavisd-new no longer keep mail in MTA queue, but flag it as undecodable and pass it on, defanged. Mark ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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/
