All,
Recently comparing a fresh install to our older conf file and this was part
of the diff... wondering if I should change these things in our conf file or
not?
@@ -81,24 +80,7 @@
# when enabling addr extensions do also Postfix/main.cf:
recipient_delimiter=+
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
-$file = 'file'; # file(1) utility; use recent versions
-$gzip = 'gzip';
-$bzip2 = 'bzip2';
-$lzop = 'lzop';
-$rpm2cpio = ['rpm2cpio.pl','rpm2cpio'];
-$cabextract = 'cabextract';
-$uncompress = ['uncompress', 'gzip -d', 'zcat'];
-$unfreeze = ['unfreeze', 'freeze -d', 'melt', 'fcat'];
-$arc = ['nomarch', 'arc'];
-$unarj = ['arj', 'unarj'];
-$unrar = ['rar', 'unrar'];
-$zoo = 'zoo';
-$lha = 'lha';
-$pax = 'pax';
-$cpio = ['gcpio','cpio'];
-$ar = 'ar';
-$ripole = 'ripole';
-$dspam = 'dspam';
+# $dspam = 'dspam';
$MAXLEVELS = 14;
$MAXFILES = 1500;
@@ -148,7 +129,7 @@
@viruses_that_fake_sender_maps = (new_RE(
# [qr'\bEICAR\b'i => 0], # av test pattern name
# [qr'^(WM97|OF97|Joke\.)'i => 0], # adjust names to match your AV scanner
- [qr/.*/ => 1], # true for everything else
+ [qr/^/ => 1], # true for everything else
));
@keep_decoded_original_maps = (new_RE(
@@ -165,15 +146,16 @@
# qr'^UNDECIPHERABLE$', # is or contains any undecipherable components
# block certain double extensions anywhere in the base name
- qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
+ qr'\.[^./]*[A-Za-z][^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
-# qr'[{}]', # curly braces in names (serve as Class ID extensions -
CLSID)
+# qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extensions - CLSID
qr'^application/x-msdownload$'i, # block these MIME types
qr'^application/x-msdos-program$'i,
qr'^application/hta$'i,
-# qr'^message/partial$'i, qr'^message/external-body$'i, # rfc2046 MIME types
+# qr'^message/partial$'i, # rfc2046 MIME type
+# qr'^message/external-body$'i, # rfc2046 MIME type
# [ qr'^\.(Z|gz|bz2)$' => 0 ], # allow any in Unix-compressed
[ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
@@ -260,6 +242,38 @@
});
[EMAIL PROTECTED] = (
+ ['mail', \&do_mime_decode],
+ ['asc', \&do_ascii],
+ ['uue', \&do_ascii],
+ ['hqx', \&do_ascii],
+ ['ync', \&do_ascii],
+ ['F', \&do_uncompress, ['unfreeze','freeze -d','melt','fcat'] ],
+ ['Z', \&do_uncompress, ['uncompress','gzip -d','zcat'] ],
+ ['gz', \&do_gunzip],
+ ['gz', \&do_uncompress, 'gzip -d'],
+ ['bz2', \&do_uncompress, 'bzip2 -d'],
+ ['lzo', \&do_uncompress, 'lzop -d'],
+ ['rpm', \&do_uncompress, ['rpm2cpio.pl','rpm2cpio'] ],
+ ['cpio', \&do_pax_cpio, ['pax','gcpio','cpio'] ],
+ ['tar', \&do_pax_cpio, ['pax','gcpio','cpio'] ],
+ ['tar', \&do_tar],
+ ['deb', \&do_ar, 'ar'],
+# ['a', \&do_ar, 'ar'], # unpacking .a seems an overkill
+ ['zip', \&do_unzip],
+ ['rar', \&do_unrar, ['rar','unrar'] ],
+ ['arj', \&do_unarj, ['arj','unarj'] ],
+ ['arc', \&do_arc, ['nomarch','arc'] ],
+ ['zoo', \&do_zoo, 'zoo'],
+ ['lha', \&do_lha, 'lha'],
+# ['doc', \&do_ole, 'ripole'],
+ ['cab', \&do_cabextract, 'cabextract'],
+ ['tnef', \&do_tnef_ext, 'tnef'],
+ ['tnef', \&do_tnef],
+ ['exe', \&do_executable, ['rar','unrar'], 'lha', ['arj','unarj'] ],
+);
+
+
@av_scanners = (
# ### http://www.vanja.com/tools/sophie/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/