On Tue, 14 Aug 2001, Nick Papageorge wrote:

> Hi all,
> 
> I've tried searching through the qMail documentation as well as the 
> databases here with no luck.
> 
> What I'm trying to do is drop a message from an external sender 
> before it reaches the email of a specific internal sender (also, if 


If you are satisfied with droping based on the mail From:  line (which may
or may not match the From: in the body)  qmail is equiped with the
dir/control/badmailfrom  file.  add the address there.

There is a patch (it required some tweaking to work on my install..) that
uses a badmailpatterns file instead, and allows you to use wildcard
expressions to drop by...either mail from: or rcpt to: matches.

http://www.unixpimps.org/wildmat/

And for an even broader scope, if you apply the qmail-queue patch, you can
stick all sorts of filters in after -smtpd to accept or reject...though
without patching qmail.c I dont see any way to change the error messages
that are given on blocked mail (exit(31))

http://www.qmail.org/qmailqueue-patch

Dru has a python script that allows you (the latest version, thanks
Dru!) to block, drop, or save off to a file based on a regular
expression(requires the qmail-queue patch)

http://sourceforge.net/projects/qmfilt/


I'd still like to figure out a way to use custom bounce messages ala the
way bouncesaying does....anyone have any idea?

thanks...david


--
        David Raistrick (deep in the south georgia woods)
[EMAIL PROTECTED]

Reply via email to