Date: Tue, 23 Jan 2001 17:27:48 +0100 From: dirk.meyer@dinoex.sub.org (Dirk Meyer) To: freebsd-isp@FreeBSD.ORG, heckfordj@psi-domain.co.uk Subject: Re: sendmail rulesets Message-ID: <J3jRxJKpVP@dmeyer.dinoex.sub.org> References: <20010123092722.A234@freefire.psi-domain.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?J3jRxJKpVP>