From owner-freebsd-isp Tue Jan 23 8:30:54 2001 Delivered-To: freebsd-isp@freebsd.org Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182]) by hub.freebsd.org (Postfix) with ESMTP id 9821937B401 for ; Tue, 23 Jan 2001 08:30:33 -0800 (PST) Received: from gate.dinoex.sub.org (dinoex@localhost) by net2.dinoex.sub.org (8.11.2/8.11.2) with BSMTP id f0NGU4B21691; Tue, 23 Jan 2001 17:30:04 +0100 (CET) (envelope-from dirk.meyer@dinoex.sub.org) To: freebsd-isp@FreeBSD.ORG, heckfordj@psi-domain.co.uk Message-ID: From: dirk.meyer@dinoex.sub.org (Dirk Meyer) Organization: privat Subject: Re: sendmail rulesets Date: Tue, 23 Jan 2001 17:27:48 +0100 X-Mailer: Dinoex 1.77 References: <20010123092722.A234@freefire.psi-domain.co.uk> X-Gateway: ZCONNECT gate.dinoex.sub.org [UNIX/Connect 0.90] X-Accept-Language: de,en X-PGP-Fingerprint: 44 16 EC 0A D3 3A 4F 28 8A 8A 47 93 F1 CF 2F 12 X-Noad: Please don't send me ad's by mail. I'm bored by this type of mail. X-Copyright: (C) Copyright 1999 by Dirk Meyer -- All rights reserved. X-Note: sending SPAM is a violation of both german and US law and will at least trigger a complaint at your provider's postmaster. X-PGP-Key-Avail: mailto:pgp-public-keys@keys.de.pgp.net Subject:GET 0x331CDA5D X-ZC-VIA: 20010123000000W+1@dinoex.sub.org Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jamie Heckford wrote: > Bit stuck trying to implement the following: > I would like to have any email that contains a .exe or .vbs file > in the body or attached to be removed, and an email sent to the > recipient and the sender along the lines of "Sorry but due to new policy.." > Can anyone give advice on the configuration of sendmail.cf to due this, > or am i going to have to write my own perl wrapper? You can define a filter program in sendmail (Milter), so each incoming email will be parsed on the fly. If you build sendmail from the ports, add in files/site.config.m4 APPENDDEF(`confCCOPTS', `-D_FFR_MILTER=1')" in your mc file add: define(`_FFR_MILTER',1) INPUT_MAIL_FILTER(`noattach', `S=local:/var/run/noattach, F=T')dnl But you still need a program (like noattach) to parse the attachments. There should be a perl module somewhere, for this interface. (Or compile your own) For local delivery its much more easy, you can use any program as the local mailer. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - Tel. +49-5606-6512 - Tel. +49-177-6923813 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message