Info

posted Jan 11, 2010, 3:55 PM by Chris Franklin
This Filter will stop all unwanted file type (by extention) from getting into
your mail server. (which in my option save your system alot of resources due
to you not having to Virus scan or spam scan unwanted file types). If a
invaild attachment in found in the email the server rejects the email and send
back this error to the remote sender. 

INVAILD file extenstion $Attachment on Attachment 

The $Attachment will be replaced by the found invaild extention. 

Requirements (Normal Version):
1. perl
2. bash (grep,rm)

Requirements (Pure Perl Version):
1. perl
2. bash (grep,rm)



Install How To: 
1. Edit filters.post-data.tab 
2. Add in this line : 
"[MAILROOT]/filters/attachment_block.pl"[TAB]@@FILE
3. Download attachment_block.pl into your xmails filters dir.
4. chmod it (at least) 111
5. Done

Warning : 
If your planning on using this filter on a non-bash (aka windows) system.
Use the Pure-Perl one. You'll be able to tell the differance between with
by there file names. And if you do use the Pure-Perl just rename it after
DL'ing to attachment_block.pl
ċ
attachment_block-pure_perl.pl
(2k)
Chris Franklin,
Jan 11, 2010, 3:56 PM
ċ
attachment_block.pl
(2k)
Chris Franklin,
Jan 11, 2010, 3:56 PM
Comments