Dan,

> I've got a client that wants to take in some large mail but quarantine
> it, due to the industry they are in.  We used to have MailScanner doing
> this, but since switching over to postfix + amavis we have lost that
> capability.  Anyone have an idea on how to have amavis quarantine files
> over a certain size limit?  Ideally, Postfix takes in messages up to
> 50MB, but anything greater than 10MB would be quarantined for review.

Possible. Some details were fixed at 2.4.3-rc1 (to be -rc2 in a day or two, 
and then released), but the concept was there even before (but did not
work as expected, large mail was rejected despite different setting in 
final_destiny).

@message_size_limit_maps = ({
  '[EMAIL PROTECTED]' => 1000000,
  '[EMAIL PROTECTED]' => 5000000,
  '.' => 10*1024*1024,
});

$final_destiny_by_ccat{+CC_OVERSIZED} = D_DISCARD;
$quarantine_method_by_ccat{+CC_OVERSIZED} = 'local:big/%m';

It is also possible to pass such large messages,
but redirect them by appending an address extension, e.g.:

  $addr_extension_maps_by_ccat{+CC_OVERSIZED} = ['oversized'];

and using MTA aliases to specify a final location.


>From 2.4.3 release notes:

- bug fix: don't reject mail when mail size restriction is in force,
  the limit is exceeded, and $final_destiny_by_ccat{+CC_OVERSIZED}
  is not D_REJECT;

- added global configuration variable $sql_quarantine_chunksize_max,
  which determines a maximum size (in bytes) for data written to a field
  'quarantine.mail_text' when quarantining to SQL. Must not exceed size
  allowed for a data type on a given SQL server. It also determines a
  buffer size in amavisd. Too large a value may exceed process virtual
  memory limits or just waste memory, too small a value splits large
  mail into too many chunks, which may be less efficient to process;
  defaults to 16384;


Mark


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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