|
From: Gerd v. E. <li...@eg...> - 2010-03-10 09:10:46
|
Hi, > $r->banned_filename_re = new Amavis::Lookup::RE(qr/.\.($re)\$/i); There is no banned_filename_re within PerRecip, so that's not gonna work. > What is the right way to implement banned rules for domains (using > Amavis::Custom)? Could you please describe what you exactly need. If you want to ban different filetypes based on the recipient, you can do this without Amavis::Custom: Have a look at @banned_filename_maps and %banned_rules. When you ban with Amavis::Custom you have to do the complete banning decision yourself. If you want to block something in Amavis::Custom::checks, you have at least to put the correct contents category (CC_BANNED) in the PerRecip contents_category and in the msginfo contents_category. Kind regards, Gerd -- Address (better: trap) for people I really don't want to get mail from: jo...@ca... |