Karlo, > I try to setup (approx. for a week) a mail gateway to quarantining > incoming (only!) mails upper than a limit for example 2MB. > I use Debian Lenny 2.6.26-2-686 with full update, backported > amavisd-new 2.6.4 (20090625) and postfix 2.5.5. > > I made the changes in the amavisd.conf as Mark advised in this post: > http://www.mail-archive.com/amavis-user@lists.sourceforge.net/msg05829.html > but it doesn't work in accordance with my needs. > > I set $final_destiny_by_ccat{+CC_OVERSIZED} for every possible, but > only with D_PASS put the message to the quarantine, > but also send it to the user, that I don't want to. I need to don't > get the recipient until I enable it in quarantine management > solution for example in MailZu. > > $QUARANTINEDIR = "$MYHOME/virusmails"; > @message_size_limit_maps = ({'anything.hu' => 1*1024*1024,}); > $final_destiny_by_ccat{+CC_OVERSIZED} = D_DISCARD; > $quarantine_method_by_ccat{+CC_OVERSIZED} = 'local:/%m'; > $final_virus_destiny = D_DISCARD; > $final_banned_destiny = D_DISCARD; > $final_spam_destiny = D_PASS; > $final_bad_header_destiny = D_PASS; > > As I said before, with $final_destiny_by_ccat{+CC_OVERSIZED} = D_PASS; > puts the mail to the quarantine, but also sends to the recipient, > what is unwanted. > > As I can see in the log (log_level = 4) amavis senses well the message > size and says it is OVERSIZED, but doesn't put to quarantine with any > other method than D_PASS, but with D_REJECT and D_BOUNCE sends DSN message.
The missing bit is probably the absence of a CC_OVERSIZED entry in the %quarantine_to_maps_by_ccat hash: $quarantine_to_maps_by_ccat{+CC_OVERSIZED} = ['clean-quarantine']; (the 'clean-quarantine' is one of the entries in %local_delivery_aliases hash, which you can extend if necessary). Mark ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/