Actually, this *appeared* to work in testing, but once in production, it
became pretty clear that the exitcode wasn't doing what I had
thought/hoped; keeping bounce messages out of the queue.

The only other way I know of dealing with this at the MDA level is to
route rejected email to /dev/null, which would mean that legit email
caught by SA (there has been some) would be lost without any notification
of the sender, which isn't acceptable.

I know of no way to use SA at the MTA level with qmail, and don't use
Postfix. :-/

On Sun, 29 Dec 2002, Maxime Ritter wrote:

> On Fri, Dec 13, 2002 at 10:00:07PM -0500, Mike Leone wrote:
> > > > > if ((/^X-Spam-Status:.*Yes/))
> > > > >     {
> > > > >       echo "Your Email was Rejected by our SPAM filters. Sorry."
> > > > >       EXITCODE=100
> > > > >       exit
> > > > > }
> > > Maybe I need to rephrase that: It informs the *sender*.  What I like about
> > > exit code 100 is that it doesn't queue the message and clog my queue.
> > > Anyway, I've tested this.  It definitely passes the echo back.  Here is a
> > > sample:
> > >
> > > Hi. This is the qmail-send program at *******
> > > I'm afraid I wasn't able to deliver your message to the following
> > > addresses. This is a permanent error; I've given up. Sorry it didn't work
> > > out.
> > >
> > > <***@*****.net>:
> > > Your Email was Rejected by our SPAM filters. Sorry.
> >
> > Hmmm. I'll have to try this with my postfix installation here at home. I
> > don't recall seeing anything that indicated it would behave similarly, but
> > perhaps it does. I am running maildrop as MDA, too.
>
> I'm interested: did it finally work with postfix ?
>
> Thanks.
>
>
> --
>        Maxime Ritter        |    French Computer Geek
> Mail : [EMAIL PROTECTED] | Jabber : [EMAIL PROTECTED]
>

James Smallacombe                     PlantageNet, Inc. CEO and Janitor
[EMAIL PROTECTED]                                                     http://3.am
=========================================================================



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to