No readymade solutions exist, in my opinion. But you should be able
to hack together one. Metamail, if given a mail message, can
extract the attachments for you. The amavis scanner uses it.

Get the amavis virus scaning script and install it according to the
instructions. It breaks down the mail into its message and attachments
into a directory using metamail before scanning them. At this point
in the script, you can add a few lines to test for files with such
extensions using "find", "grep", whatever and send back a error message
to Amavis which will inform the sender, and at your option the receipient.

While it is possible to do the same w/o using Amavis and just some fancy
shell script,metamail and Sendmail tweaking, here you would be getting the major
part of the script readymade.

- Sandip


On Sat, Feb 02, 2002 at 12:39:30PM +0530, Kapil Sethi spoke out thus:
> Hi,
> 
> I am using sendmail. Can anybody tell me how to block emails with .exe or
> .pif extensions. If not possible to block with sendmail has somebody tried
> to dump that mail in /dev/null using procmail
> 

-- 
Sandip Bhattacharya
sandipb @ bigfoot.com
http://www.sandipb.net
----------------------------

          ================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
          =================================================

Reply via email to