Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 1999 14:48:33 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Robert A Clarks <raclark@regence.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Attachment blocking; has the wheel already been invented?
Message-ID:  <19991207144833.A5309@dan.emsphone.com>
In-Reply-To: <88256840.006FF3CB.00@notes.or.regence.com>; from "Robert A Clarks" on Tue Dec  7 12:22:00 GMT 1999
References:  <88256840.006FF3CB.00@notes.or.regence.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 07), Robert A Clarks said:
> I may be called on to setup a system to block inbound email
> attachments.
> 
> The only clues I've found so far, point to sendmail with procmail as
> a delivery agent, which calls a perl script to filter out attachments
> when any but a select few from fields are matched.
> 
> Perl would use the mime module to help figure out what was an
> attachment and what was not.
> 
> It seems like procmail may be a bit redundant, but may keep me from
> needing to write the delivery agent in perl.

You can add a rule to procmail to only pipe messages with a header of
"Content-Type: multipart/.*"; that'll reduce the number of mails that
you have to run through perl.

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991207144833.A5309>