January 27th, 2004, 08:40 AM
Sendmail & How to reject mail with executable attachments
Recently I've been getting a lot of mail with attatchments "test.scr" and "appl.exe", a few of which have been identified as viruses. I'm wondering if there is any way to tell sendmail to reject any email containing an executable attatchment.
The following was returned from another machine, as my outlook has apparently delivered to my address book.
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
This message has been rejected because it has
a potentially executable attachment "test.scr"
This form of attachment has been used by
recent viruses or other malware.
If you meant to send this file then please
package it up as a zip file and resend it.
------ This is a copy of the message, including all the headers. ------
Received: from [126.96.36.199] (helo=webdevsol.com)
by fhh.firehousehosting.com with esmtp (Exim 4.24)
for firstname.lastname@example.org; Tue, 27 Jan 2004 09:20:27 -0500
Date: Tue, 27 Jan 2004 09:18:59 -0500
This is a multi-part message in MIME format.
The message contains Unicode characters and has been sent as a binary attachment.
January 28th, 2004, 03:20 PM
February 4th, 2004, 03:46 PM
Look into procmail for mail filtering.
Pop, pop, fizz, fizz, oh what a relief it is!
February 13th, 2004, 08:31 PM
I've installed the E-mail Sanitizer. It's an easy setup and the attachments are completely user configurable. Also, you can do a bit of AV filtering if you like.
The program can be found on
It runs through an easy and basic procmail system.