Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Email Virus filter - Sendmail, Milter, Perl
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/1/2005 at 06:21 PM Reply With Quote
Email Virus filter - Sendmail, Milter, Perl


This one will refuse executable attachments in emails (uncompressed or zipped) during the SMTP connection. Also will check the text and header fields of the email according to the regexps you define. This filter protects our mailboxes about 100,000 times a day.

in sendmail.mc
INPUT_MAIL_FILTER(`tigra_mail', `S=inet:[email protected], F=T, T=S:10s;R:10s;E:30s')dnl

in rc.local (update the path if needed)
perl /usr/scripts/tigra_mail_filter.pl > /dev/null &

Attachment: tigra_mail_filter.pl (8.61kb)
This file has been downloaded 1998 times
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 1/24/2006 at 04:12 AM Reply With Quote

Improved version, now checks the MIME types. Recent viruses use extensions but assign 'application' MIME type to the attachments.

Attachment: tigra_mail_filter.pl (9.08kb)
This file has been downloaded 1423 times
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004