Well, I've been using tee to do some debugging - at each step of the .qmail, I pipe it 
to tee
for logging.

After Spamassassin (just some crappy message I made up sent by telnet)
=====
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 11198 invoked by uid 107); 30 Mar 2004 02:34:24 -0000
Received: from unknown (HELO hi) (127.0.0.1)
 by localhost.caprica.com with SMTP; 30 Mar 2004 02:34:24 -0000
X-Mail-Format-Warning: Bad RFC2822 header formatting in Blah!  No headers!
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on
       newcentury.caprica.com
X-Spam-Level: **
X-Spam-Status: No, hits=2.9 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
       autolearn=no version=2.60
=====
SpamAssassin is clearly sending it on, as it should

After TMDA
=====
Received: (qmail 11198 invoked by uid 107); 30 Mar 2004 02:34:24 -0000
Received: from unknown (HELO hi) (127.0.0.1)
 by localhost.caprica.com with SMTP; 30 Mar 2004 02:34:24 -0000

Blah!  No headers!
=====

So, TMDA Strips off the headers.

The final message
=====
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 11198 invoked by uid 107); 30 Mar 2004 02:34:24 -0000
Received: from unknown (HELO hi) (127.0.0.1)
 by localhost.caprica.com with SMTP; 30 Mar 2004 02:34:24 -0000
Blah!  No headers!
=====

Looks like tmda is stripping headers, including the SA one. Anyone have an idea why?

my .qmail-testing
=====
|preline -f -d /usr/bin/spamc -x | tee /tmp/SA
|/usr/share/toaster/tmda-1.0.2/bin/tmda-filter -p -c 
/home/vpopmail/domains/testdomain.com/testing/.tmda/config -t 
/home/vpopmail/domains/testdomain.com/testing/.tmda/templates/ | tee /tmp/tmda
|/home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
=====

Chris Berry wrote:
Carlos Averett wrote:

| Ok, I'm just stumped here.  I'm trying to get SpamAssassin to work with
| TMDA, using a .qmail-user file.
|
| I've tried every way I could think of to do it, including using a
| .qmail-user looking like:
| ========
| |preline -f -d /usr/bin/spamc -u test <at> testdomain.com -e
| /usr/share/toaster/tmda-1.0.2/bin/tmda-filter \
| -c /home/vpopmail/domains/testdomain.com/test/.tmda/config -t
| /home/vpopmail/domains/testdomain.com/test/.tmda/templates/
| |/home/vpopmail/bin/vdelivermail '' test <at> testdomain.com
|
| Tmda-filter works fine, and spamc outputs to stdout correctly.  For some
| reason, when I attempt to combine SA with tmda, tmda delivers  a message
| that is unparsed by SpamAssassin.
| I don't know where the problem is, can anyone help?

Here's what I do:

[root <at> mercury /home/virtual]$ cat .qmail-default
| /etc/kludge/mailquotacheck.sh $LOCAL
| preline spamc -f | preline /usr/local/src/tmda-1.0/bin/tmda-filter
--vhome-script /usr/local/src/tmda-1.0/contrib/vmailmgr-vdir.sh
| bouncesaying "This address does not exist."

--
Chris Berry
chris_berry <at> jm-associates.com
Systems Administrator
JM Associates & Coast Business Service

"He who laughs last probably made a back-up." --Murphy's Seventh law of
computing
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to