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 [EMAIL PROTECTED] 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 = ({
'[EMAIL PROTECTED]' => 'ALLOW_EXE',
'.' => 'DEFAULT'
});
Thank you,
/juan
Instant Messaging, free SMS, sharing photos and more... Try the new
Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/