Attachment "whitelist"

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Thu Aug 9 11:07:29 CEST 2012


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 = (
   {
   'singleaddresss at charite.de' => '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] <sender at gmail.com.invalid> -> <singleaddresss at charite.de>, Message-ID: <CAN3ODnidwKJxc1ps5xGVbf-d5qzLWU+O7esjFjGZVmH4yGfyHA at 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=<sender at gmail.com.invalid> to=<singleaddresss at charite.de> proto=ESMTP helo=<mail-gg0-f175.google.com>

What am I doing wrong?

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


More information about the amavis-users mailing list