On Wednesday 16 June 2004 12:15 pm, Alex Borges wrote: > You could use qmail scanner for that, and anti virus and spam checking > and a load of things.... cools stuff.... its heavy though.
I made a patch to qscanq to block attachments. qscanq is fairly lightweight, written in C. qscanq calls ripmime which breaks the email into the file names, for attachments. So it was relatively easy to check the filenames against a list of bad attachment names and reject the email, like it rejects the email if clamd reports a virus. Ken Jones > > On Wed, 2004-06-16 at 11:54, Chris Miller wrote: > > I would like to setup qmail to bounce messages with *.vbs, *.scr and a > > few other attachments. If a message gets sent to a user on my system > > with an attachment like that, I want to bounce it back to the sender > > letting them know it was undeliverable because of the attachment. > > > > > > > > Is this possible? If so, how? > > > > > > > > Thanks, > > > > > > > > Chris Miller > > > > Compuville > > www.compuville.net