tigra
Administrator
Posts: 1984
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/1/2005 at 06:21 PM |
|
|
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:999@localhost, 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 1052 times
|
|
|
tigra
Administrator
Posts: 1984
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/24/2006 at 04:12 AM |
|
|
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 579 times
|
|
|