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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|