Email WhiteListing Attachments with Amavis and Microsoft Files

Hoyer-Reuther, Christian Christian.Hoyer-Reuther at cac-chem.de
Sat Nov 10 08:18:49 CET 2018


Hello,

you could try this:

[ qr'^application/(doc|docx|ppt|pdf|xls|vsd)$'i => 0 ],

Regards,

Christian

-----Ursprüngliche Nachricht-----
Von: amavis-users [mailto:amavis-users-bounces+christian.hoyer-reuther=cac-chem.de at amavis.org] Im Auftrag von Johnny Time
Gesendet: Freitag, 9. November 2018 18:56
An: amavis-users at amavis.org
Betreff: Email WhiteListing Attachments with Amavis and Microsoft Files

Hi we would like to whitelist some extensions(Attachment) with Amavis,
but we have a little problem
for exemple a mail with the extension .ppt passed -> it is OK-> it is
in our whitelist configuration
but a file with the extension .pptx passed also but we didn't want it
to pass because we wanted to bann every extension that are not in our
configuration.

What mistake do we have on Amavis Configuration?

Thanks a lot for you reply.

Under this is our configuration concerning the whitelisting of email
attachments:

# for $banned_namepath_re, a new-style of banned table, see amavisd.conf-sample
$banned_filename_re = new_RE(

# MICROSOFT
[ qr'winmail.dat'i  => 1 ],

# EXTENSION ARCHIVE
[ qr'^application/ace|bz2|gzip|tar|rar|tgz|zip$'i => 0 ],

# EXTENSION IMAGE
[ qr'^image/bmp|jpeg|jpg|png|gif$'i => 0 ],

# EXTENSION VIDEO
[ qr'^application/avi|mpeg|sif|siv$'i => 0 ],

# EXTENSION DOCUMENT
[ qr'^application/doc|docx|ppt|pdf|xls|vsd$'i => 0 ],

# EXTENSION TEXTE
[ qr'^text/plain|html|text/csv|txt|rtf$'i => 0 ],

# Block all extensions attachment
[ qr'^\.[a-zA-Z0-9]*$'i => 1 ],

);


More information about the amavis-users mailing list