Koozali.org: home of the SME Server

How to block specific attachement files email (wmv, avi ...)

Offline Gaetan

  • ****
  • 104
  • +0/-0
How to block specific attachement files email (wmv, avi ...)
« on: February 06, 2007, 05:57:25 PM »
Hi,
I know it is possible to block some attachments in "Email Settings Filtering" panel.
But how can we block other attahcment like wmv or avi files ?
Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: How to block specific attachement files email (wmv, avi
« Reply #1 on: February 07, 2007, 04:38:01 AM »
brinor

> ...how can we block other attahcment like wmv or avi files ?

See
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Virus%20and%20file%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm

While it says not applicable to sme7, that's referring to the installation instructions etc.

Look for the section on
Analyzing and creating patterns.

The concepts still apply to sme7, note the database is in /home/e-smith/db/...
so determine the new patterns for your file types and add those required patterns to the db using the commands provided (adjusted for sme7 where necessary).
...

Offline Gaetan

  • ****
  • 104
  • +0/-0
How to block specific attachement files email (wmv, avi ...)
« Reply #2 on: February 07, 2007, 10:04:47 AM »
Hi Ray,
Thanks for your reply.
Is there not an easiest solution ?
If I want WMV files to be reject, will the following lines do the job ?

/sbin/e-smith/db mailpatterns set wmv pattern Body MCaydY5mzxGm description "WMV Windows Media Player video file - Microsoft ASF" Glob yes LineStart yes Status enabled

/sbin/e-smith/signal-event email-update


Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
How to block specific attachement files email (wmv, avi ...)
« Reply #3 on: February 07, 2007, 11:19:31 AM »
brinor

Looks OK, spelling for description should be Description
You should check & confirm that the magic for wmv file types is correct, by following the instructions for determining that in the HowTo.
The values in the Howto were only suggested values.
...