ok .. so syslog shows the below info

Oct 28 12:48:48 pcns spamd[1488]: connection from localhost.localdomain
[127.0.0.1] at port 32806
Oct 28 12:48:48 pcns spamd[3677]: info: setuid to qmailq succeeded
Oct 28 12:48:48 pcns spamd[3677]: Creating default_prefs
[/var/qmail/.spamassassin/user_prefs]
Oct 28 12:48:48 pcns spamd[3677]: Cannot write to
/var/qmail/.spamassassin/user_prefs: No such file or directory
Oct 28 12:48:48 pcns spamd[3677]: Couldn't create readable default_prefs for
[/var/qmail/.spamassassin/user_prefs]
Oct 28 12:48:48 pcns spamd[3677]: checking message
<[EMAIL PROTECTED]> for qmailq:204.
Oct 28 12:48:51 pcns spamd[3677]: clean message (0.3/5.0) for qmailq:204 in
3.3 seconds, 3669 bytes.

i dont have a /var/qmail/.spamassassin so what is it trying to do here?

what i do have are settings in /etc/mail/spamassassin that look like this ..

# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)

# How many hits before a message is considered spam.
required_hits           5.0

# Whether to change the subject of suspected spam
rewrite_subject         1

# Text to prepend to subject if rewrite_subject is used
subject_tag             ****SPAM****

# Encapsulate spam in an attachment
report_safe             1

# Use terse version of the spam report
use_terse_report        0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              0
use_dcc                 0
use_pyzor               0

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages            all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              all

not sure if they are all needed ..

in my /var/vpopmail/domains/ directory i have a file mailfilter
in it is the following


import EXT
import HOST
import HOME

SPAMBOX=".Spam"
VERBOSE=0
logfile "/var/log/maildrop-filter-log"
SHELL="/bin/sh"
VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
VDOMHOME=`/var/vpopmail/bin/vdominfo -d $HOST`
VPOP=`cat $VDOMHOME/.qmail-default`
#VPOP="$VHOME/Maildir/"


if ((/^X-Spam-Status:.*YES/))
{
   `test -d $VHOME/Maildir/.Spam`
   if( $RETURNCODE == 1 )
   {
   `/usr/bin/maildirmake $VHOME/Maildir/.Spam;chown -R vpopmail.vpopmail
$VHOME/Maildir/.Spam`
   `echo "INBOX.Spam" >> $VHOME/Maildir/courierimapsubscribed`
   }
   to "$VHOME/Maildir/.Spam/"
}

to "$VHOME/Maildir/"[/code]

it works with /var/vpopmail/domains/domain.com/user/.qmail
which reads
> /var/qmail/bin/preline /usr/bin/maildrop /var/vpopmail/domains/mailfilter

it basically triggers the mailfilter file, creats a directory called Spam
and puts the suspected spam in that folder ..

problems?
1. it doesnt tag the mail in anyway..
2. it doesnt seem like everything is set up correctly ..
3. why is it that its looking for the .spamassassin directory?
4. is it not reading the local.cf file?
5. is my setup correct?

can anyone give me a hand with this .. as to why i get these errors in
syslog and how i can start stamping the mail as spam?

also i am running
qmail
spamassassin
qmail-scanner
courier-imap
clamav
squirrelmail
qmail-pop3d
vpopmail

this all works with no problem and spamassassin seems to be doing its job
somewhat, but how can i fix it completley?

thanks ..

lb



--
[EMAIL PROTECTED] mailing list

Reply via email to