RES: filename block

Wilson A. Galafassi Jr. wilson.galafassi at gmail.com
Sat Apr 26 13:03:07 IST 2008


Thanks. Works fine now.

-----Mensagem original-----
De: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] Em nome de Ken Goods
Enviada em: sexta-feira, 25 de abril de 2008 15:21
Para: 'MailScanner discussion'
Assunto: RE: filename block

Wilson A. Galafassi Jr. wrote:
> Hello.
> 
> I want to some emails have all filename and filetypes unblocked.
> So i have created this 2 files:
> 
> /etc/MailScanner/filetype.rules.rules and
> /etc/MailScanner/filename.rules.rules
> 
> Inside that files:
> FromOrTo: admin at domain.com
> /etc/MailScanner/filetype.rules.allowall.conf FromOrTo:
> admin at domain.com /etc/MailScanner/filename.rules.allowall.conf 
> 
> 
> But when i send some exe file the email is blocked.
> 
> What i have to configure to this feature work?
> 
> Thanks,
> Wilson Galafasi

I think you're close but you didn't say what was in your
filename.rules.allowall.conf file... maybe you just need to edit your
MailScanner.conf? 

Here's what I did... there may be an easier/different way.

Create two files in your /etc/MailScanner directory:
filename.allow.all.conf
filetype.allow.all.conf
Both containing...

allow	.	-	-

This rule allows all filetypes and names (remember to use tabs between)

Create two files in your rules directory:

filetype.rules
containing....
To: admin at domain.com /etc/MailScanner/filetype.allow.all.conf
FromOrTo: default /etc/MailScanner/filetype.rules.conf (the filetype rule
default file)

filename.rules
containing....
To: admin at domain.com /etc/MailScanner/filename.allow.all.conf
FromOrTo: default /etc/MailScanner/filename.rules.conf (the filename rule
default file)

Then in MailScanner.conf edit and add....
Filename Rules = /etc/MailScanner/rules/filename.rules
and..
Filetype Rules = /etc/MailScanner/rules/filetype.rules

When an email comes in to admin at domain.com MailScanner directs it to the
allow.conf's and for everyone else it goes to the default conf's.

You may need to adjust the paths depending on your distribution.

Hope this helps.

Ken Goods
Network Administrator
CropUSA Insurance, Inc.
-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 



More information about the MailScanner mailing list