Operating System - Linux
1831175 Members
2919 Online
110021 Solutions
New Discussion

Mail filtering based on attachments in sendmail

 
SOLVED
Go to solution
Rajendran_1
Advisor

Mail filtering based on attachments in sendmail

Dear Friends,
Is there any way to filter mails in sendmail based on their attachments.. What my question is can i block the mails comming with virus attachments in sendmail..?? Is there any way to do this .. ??One sugestion.. I read some docs that we can direct the incomming mails to a program in sendmail ,, so what do i suggest is redirect all the mail to a trusted antivirus program working on an another computer ... Will this work... Suggestions please ...
Thanks in advance ...
New
3 REPLIES 3
U.SivaKumar_2
Honored Contributor

Re: Mail filtering based on attachments in sendmail

hi,
Any mail server can be integrated with viruswall software loaded server which can
scan the email body for viruses.
ALso You can load trend viruswall for HP-UX in
your HP-UX server which has its own sendmail
already configured for virus scanning and removal features .

regards,
U.SivaKumar
Innovations are made when conventions are broken
benoit Bruckert
Honored Contributor

Re: Mail filtering based on attachments in sendmail

Hi,
I'm using it !!!:
I'm running sendmail 8.11.6, with milter filter (libmilter). ANd I'm using a perl script call amvisd which analyse the mail, extract attachment, run as many virus scanner as you want on theses attachment, and stop viruses if the scanner find it.
All you need is a virus scanner, perl 5.6, a compiler (you have to build sendmail with the milter interface).
See :
http://www.amavis.org
All is explained.
The product you want is probably the daemonized version (amavisd).
Installation isn't easy and you have to know a little about sendmail compilation, and m4 config.
But it works very fine !!!
Advantage is that you can use the scanner you want, and you keep your sendmail functionnalities. IE that if you will not scan mails that you will reject due to a rule of sendmail.

hope it will help you
regards
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Jeffrey S. Sims
Trusted Contributor
Solution

Re: Mail filtering based on attachments in sendmail

Rajendran,

There is a perl utility called Sanitizer. It is located at http://mailtools.anomy.net

This will run wirus scan on emails, it will also allow you to filter attachments based on names or extensions. Also you can filter emails based on content.

Hope this helps.