File Attachment Rules

Colin Jack colin at mainline.co.uk
Thu Aug 24 10:43:23 IST 2006


Hi Julian,

Still not working ... people complaining it won't allow .ico files
through.

In MailScanner.conf I have:

Allow Filenames = %rules-dir%/filenames.rules

In the /rules directory I have a file called filenames.rules with this
entry

FromOrTo: default \.pdf$ \.zip$ \.jpg$ \.eps$ \.ico$ \.ai$ \.qxd$ \.tif$


I have restarted MailScanner

Any ideas

Thanks

Colin

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf
> Of Colin Jack
> Sent: 23 August 2006 09:41
> To: MailScanner discussion
> Subject: RE: File Attachment Rules
>
> Sorry Julian - I meant
>
> FromOrTo: *@* \.zip$
>
> etc.
>
>
>
> > -----Original Message-----
> > From: mailscanner-bounces at lists.mailscanner.info
> > [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
> > Julian Field
> > Sent: 23 August 2006 09:21
> > To: MailScanner discussion
> > Subject: Re: File Attachment Rules
> >
> >
> >
> > Colin Jack wrote:
> > > I'm a newbie to MailScanner, so please be gentle ...
> > >
> > > I want to create a ruleset for Allow Filenames but am not
> > sure of the
> > > syntax
> > >
> > > If I edit MailScanner.conf then I use
> > >
> > > Allow Filenames = /.pdf$ /.zip$ etc.
> > >
> > They should \ and not /
> > > If however I change that to
> > >
> > > Allow Filenames = %ruledir%/filenames.rules
> > >
> > %rules-dir% not %ruledir%
> > > then create a filenames.rules file do I just put
> > >
> > > /.pdf$
> > > /.zip$
> > > /.ico$
> > >
> > >
> > > in the rules file or do I have to put in other stuff?
> > >
> > In the filename.rules file you need to put rules that would like
> >
> > From: user1 at domain.com \.pdf$ \.zip$ \.ico$
> > To: *@domain2.com \.pdf$
> > FromOrTo: abuse at domain.com .
> >
> > This would
> > 1) Allow *.pdf *.zip *.ico in mail from the address user1 at domain.com
> > 2) Allow *.pdf in mail to anyone at domain2.com
> > 3) Allow everything ('.' matches any character and so will
> match every
> > filename) in mail from or to abuse at domain.com.
> >
> >
> > > Thanks
> > >
> > > Colin
> > >
> > >
> > > ----------------------disclaimer ---------------------------------
> > >
> > > 1. This e-mail and any attachments are confidential &
> > access by anyone
> > > other than the addressee(s) is unauthorised.
> > > 2. The security of e-mail communication cannot be
> > guaranteed and neither
> > > Mainline IT nor Mainline Internet will accept claims
> > arising as a result
> > > of using this medium.
> > > 3. Any opinions expressed herein are the opinions of the
> > author and are
> > > not those of either Mainline IT or Mainline Internet.
> > > 4. Although all email is scanned for viruses, it is the
> > responsibility of
> > > the recipient to ensure they have adequate anti-virus defences.
> > >
> > >
> > --------------------------------------------------------------
> > ----------
> > >
> > >
> > >
> >
> > --
> > Julian Field
> > www.MailScanner.info
> > Buy the MailScanner book at www.MailScanner.info/store
> >
> > PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> >
> >
> > --
> > This message has been scanned for viruses and dangerous content by
> > MailScanner, and is believed to be clean.
> > For all your IT requirements visit www.transtec.co.uk
> >
> > --
> > 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!
> >
>
> ----------------------disclaimer ---------------------------------
>
> 1. This e-mail and any attachments are confidential & access
> by anyone other than the addressee(s) is unauthorised.
> 2. The security of e-mail communication cannot be guaranteed
> and neither Mainline IT nor Mainline Internet will accept
> claims arising as a result of using this medium.
> 3. Any opinions expressed herein are the opinions of the
> author and are not those of either Mainline IT or Mainline Internet.
> 4. Although all email is scanned for viruses, it is the
> responsibility of the recipient to ensure they have adequate
> anti-virus defences.
>
> --------------------------------------------------------------
> ----------
>
>
> --
> 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!
>
>

----------------------disclaimer ---------------------------------

1. This e-mail and any attachments are confidential & access by anyone 
other than the addressee(s) is unauthorised.
2. The security of e-mail communication cannot be guaranteed and neither 
Mainline IT nor Mainline Internet will accept claims arising as a result 
of using this medium.
3. Any opinions expressed herein are the opinions of the author and are 
not those of either Mainline IT or Mainline Internet.
4. Although all email is scanned for viruses, it is the responsibility of 
the recipient to ensure they have adequate anti-virus defences.

------------------------------------------------------------------------




More information about the MailScanner mailing list