jaymzwise | J'ai testé ces deux modifs :
Code :
- qr'^application/vnd.ms-powerpoint$'i,
- qr'^\.(pps|ppt)$',
|
J'ai toujours le même problème, je commence à me demander si il n'y a pas un autre fichier de conf quelque part.
J'ai lancé amavis en mode debug via la commande /etc/init.d/amavis debug.
Dans les logs, il teste bien le fichier joint (Provence.ppt) mais le compare avec des types qui ne sont pas présents dans le fichier amavisd.conf.
Code :
- lookup_re("ISO-8859 HTML document text" ) matches key "(?i-xsm:^ISO-8859.*\btext\b)", result="txt"
- lookup (map_full_type_to_short_type) => true, "ISO-8859 HTML document text" matches,
- result="txt", matching_key="(?i-xsm:^ISO-8859.*\\btext\\b)"
- File-type of p001: ISO-8859 HTML document text; (txt)
- result line from file(1): p002: Microsoft Office Document
- lookup_re("Microsoft Office Document" ) matches key "(?i-xsm:^Microsoft Office Document\b)",
- result="doc"
- lookup (map_full_type_to_short_type) => true, "Microsoft Office Document" matches,
- result="doc", matching_key="(?i-xsm:^Microsoft Office Document\\b)"
- File-type of p002: Microsoft Office Document; (doc)
- decompose_part: p001 - atomic
- decompose_part: p002 - atomic
- prolong_timer parts_decode: remaining time = 480 s
- query_keys: toto@toto.dom, mm@, toto.dom, .toto.dom, .net, .
- lookup_hash(toto@toto.dom), no matches
- lookup (bypass_header_checks) => undef, "toto@toto.dom" does not match
- check_header: 2, Non-encoded 8-bit data (char A0 hex): Reply-to: ANDERSON\\240Thomas<mANDERSON...
- query_keys: toto@toto.dom, mm@, toto.dom, .toto.dom, .net, .
- lookup_hash(toto@toto.dom), no matches
- lookup (bypass_header_checks) => undef, "toto@toto.dom" does not match
- Checking for banned types and filenames
- query_keys: toto@toto.dom, toto@, toto.dom, .toto.dom, .net, .
- lookup_hash(toto@toto.dom), no matches
- lookup (bypass_banned_checks) => undef, "toto@toto.dom" does not match
- lookup: (scalar) matches, result="DEFAULT"
- lookup (banned_filename), 1 matches for "toto@toto.dom", results: "(constant:DEFAULT)"=>"DEFAULT"
- collect banned table[0]: toto@toto.dom, tables: DEFAULT=>Amavis::Lookup::RE=ARRAY(0x8c7332c)
- starting banned checks - traversing message structure tree
- check_for_banned (p003,p001) multipart/mixed | text/html,.txt
- doing banned check for toto@toto.dom on multipart/mixed | text/html,.txt
- lookup_re(["multipart/mixed","text/html",".txt"]), no matches
- lookup (check_bann:toto@toto.dom) => undef, ["multipart/mixed","text/html",".txt"] does not match
- p.path toto@toto.dom: "P=p003,L=1,M=multipart/mixed | P=p001,L=1/1,M=text/html,T=txt"
- check_for_banned (p003,p002) multipart/mixed | application/octet-stream,.doc,Provence.ppt
- doing banned check for toto@toto.dom on multipart/mixed | application/octet-stream,.doc,Provence.ppt
- lookup_re(["multipart/mixed","application/octet-stream",
- ".doc","Provence.ppt"]), no matches
- lookup (check_bann:toto@toto.dom) => undef, ["multipart/mixed","application/octet-stream",
- ".doc","Provence.ppt"] does not match
- p.path toto@toto.dom: "P=p003,L=1,
- M=multipart/mixed | P=p002,L=1/2,M=application/octet-stream,T=doc,N=Provence.ppt"
|
A priori, il détecte bien que c'est un fichier Microsoft Office Document mais le laisse passer. |