Hi all,

I have several RedHat boxes, 7.1, 8.0, 9.0 that have been improved to use qmail, vpopmail, and qmailadmin. I recently discovered that there is a version of spamassassin provided by RedHat that includes a daemon, spamd, and its connector client, spamc. I'm having trouble integrating it.

My environment includes vpopmail-5.3.20 and qmailadmin-1.0.24 patched with the "new look and feel" and a couple simple hacks to make it compile. The configure command includes these options:

--enable-modify-spam=yes --enable-spam-command='|preline /usr/bin/spamc -d 127.0.0.1 -p 783 -u [EMAIL PROTECTED] -f'

It almost works. When I use qmailadmin and enable spam checking the spam command is placed into the appropriate .qmail file and on mail delivery attempt, if not exists, .spamassassin/user_prefs is created in the correct directory.

The log at /var/log/maillog shows that spamd is receiving the connection, processing it, and returning successfully:

Aug  3 15:08:39 c spamd[797]: connection from localhost.localdomain [127.0.0.1] at 
port 32923
Aug  3 15:08:39 c spamd[26463]: processing message <[EMAIL PROTECTED]> for [EMAIL 
PROTECTED]:88, expecting 362 bytes.
Aug  3 15:08:41 c spamd[26463]: clean message (2.1/5.0) for [EMAIL PROTECTED]:88 in 
1.9 seconds, 362 bytes.

However, when I examine the qmail-send log I see the message with its new X-Spam headers delivered there:

2003-08-04 11:03:32.741961500 delivery 273: success: [EMAIL PROTECTED]:03:28_2003
Return-Path:_<[EMAIL PROTECTED]>
Delivered-To:[EMAIL PROTECTED]
Received:_(qmail_31824_invoked_by_uid_112);_4_Aug_2003_18:03:28_-0000
Received:_from_IP.IP.IP.IP.in-addr.arpa_(HELO_theorb.net)_(IP.IP.IP.IP)__by_IP.IP.IP.IP.in-addr.arpa_with_SMTP;_4_Aug_2003_18:03:28_-0000
Message-ID:_<[EMAIL PROTECTED]>
Date:_Mon,_04_Aug_2003_11:07:49_-0700
From:[EMAIL PROTECTED]
User-Agent:_Mozilla/5.0_(X11;_U;_Linux_i686;_en-US;_rv:1.3)_Gecko/20030312/X-Accept-Language:_en,_es,_ja,_ko,_de
MIME-Version:_1.0
To:[EMAIL PROTECTED]
Subject:_test_message
Content-Type:_text/plain;_charset=ISO-8859-1;_format=flowed
Content-Transfer-Encoding:_7bit
X-Spam-Status:_No,_hits=0.8_required=5.0/_tests=NO_REAL_NAME,SPAM_PHRASE_00_01,USER_AGENT,_______USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG/_version=2.44
X-Spam-Level:_//
did_0+0+1/

I tried following the spam command in the .qmail file with "/var/vpopmail/domains/$HOST/$EXT/Maildir/" but the environment variables were not expanded in that line, even though they are evaluated in the previous line. Further, if I manually replace the $HOSTS/$EXT variables with their values it still fails to deliver to anywhere except the log file.

Does anybody know the correct "spam-command"?

Any help or ideas would be greatly appreciated,

Thanks,
-->m.w.<--




Reply via email to