Basically, I want a single address to receive a certain set of
attachments only (Example: smime signed mails, PDFs, plain text mails).

I'm using this:
%banned_rules = (
   'SPECIALRULES' => new_RE( qr'^\.smime$' => 0, qr'.\.pdf$' => 0, qr'^\.asc$' 
=> 0, qr'text/plain' => 0, qr'.'i,
   ),
   'DEFAULT' => $banned_filename_re,
   );

@banned_filename_maps = (
   {
   '[email protected]' => 'SPECIALRULES',
   '.' => 'DEFAULT',
   },
   );

Aug  9 10:59:41 mail amavis[13104]: (13104-10) Blocked BANNED (text/plain,.dat) 
{RejectedInbound}, [209.85.161.175]:41443 [209.85.161.175] 
<[email protected]> -> <[email protected]>, Message-ID: 
<can3odnidwkjxc1ps5xgvbf-d5qzlwu+o7esjfjgzvmh4ygf...@mail.gmail.com>, mail_id: 
cyeTsHm1iP4b, Hits: -, size: 34027, dkim_sd=20120113:gmail.com, 56 ms
Aug  9 11:00:34 mail postfix/smtpd[14893]: proxy-reject: END-OF-MESSAGE: 554 
5.7.0 Reject, id=13114-17 - BANNED: text/plain,.asc; 
from=<[email protected]> to=<[email protected]> proto=ESMTP 
helo=<mail-gg0-f175.google.com>

What am I doing wrong?

-- 
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
[email protected]        Campus Benjamin Franklin
http://www.charite.de              Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155

Reply via email to