[prev in list] [next in list] [prev in thread] [next in thread]
List: amavis-user
Subject: [AMaViS-user] BANNED file senders
From: Juan Miscaro <scry_mr () yahoo ! ca>
Date: 2007-12-19 13:21:14
Message-ID: 346808.7967.qm () web57614 ! mail ! re1 ! yahoo ! com
[Download RAW message or body]
I am using amavisd-new-2.4.5 and I want to be able to allow certain
persons in my company to send certain, currently banned, attachments.
I have the config below that should allow user@example.com to send an
email with the attachment file.exe. But what if the recipient is
internal? Wouldn't the system block the mail? This internal
communication is what I'm after. Anyone?
$banned_filename_re = new_RE(
qr'\.[^./]*[A-Za-z][^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
qr'^application/x-msdownload$'i,
qr'^application/x-msdos-program$'i,
qr'^application/hta$'i,
[ qr'^\.(rpm|cpio|tar)$' => 0 ],
qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i,
qr'^\.(lha|cab|dll)$',
);
%banned_rules = (
'ALLOW_EXE' => new_RE(
[ qr'^\.(exe|com)$' => 0 ],
qr'\.[^./]*[A-Za-z][^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i,
qr'^application/x-msdownload$'i,
qr'^application/x-msdos-program$'i,
qr'^application/hta$'i,
[ qr'^\.(rpm|cpio|tar)$' => 0 ],
qr'.\.(vbs|pif|scr|cmd|cpl|bat)$'i,
qr'^\.(lha|cab|dll)$',
),
'DEFAULT' => $banned_filename_re,
);
@banned_filename_maps = ({
'user@example.com' => 'ALLOW_EXE',
'.' => 'DEFAULT'
});
Thank you,
/juan
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic