Re: mail filter

This is a discussion on Re: mail filter within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; "François" <jumping69@hotmail.com> wrote: > Hi ! > > How to filter all mails processed ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-22-2003
Frank Seidel
 
Posts: n/a
Default Re: mail filter

"François" <jumping69@hotmail.com> wrote:

> Hi !
>
> How to filter all mails processed by the smtp gateway (postix) to delete
> mails with attachments *.scr, *.bat and other ?
>
> Can you help me ?

Yes.

in /etc/postfix/main.cf add the two lines:
header_checks = pcre:/etc/postfix/header_checks
body_checks = pcre:/etc/postfix/body_checks

the files header_checks and body_checks:
/name=\"(.*)\.(bat|chm|cmd|com|do|exe|hta|jse|rm|sc r|pif|vbe|vbs|vxd|xl)\"$/ REJECT bad attachment - possible virus!

Frank
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0