Email WhiteListing Attachments with Amavis and Microsoft Files
Johnny Time
lifeme92 at gmail.com
Fri Nov 9 18:56:06 CET 2018
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