spamassassin läuft nicht

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
kantiran
Posts: 11
Joined: 2006-03-28 19:41
 

spamassassin läuft nicht

Post by kantiran »

:?: Hallo,

ich verzweifle langsam. Hab schon x Versuche gestartet den SA zu installieren und zum laufen zu kriegen.
Habe einen strato vserver mit qmail und spamassassin OHNE irgendein
antivirusprogramm. das brauch ich eh nicht.

Hier mein Logfiles.

mail.info

Code: Select all

Apr  3 11:00:55 h1232389 pop3d: 
Apr  3 11:00:55 h1232389 pop3d: IMAP connect from @ [84.155.118.63]INFO: LOGIN, user=spam, ip=[84.155.118.63]
Apr  3 11:02:09 h1232389 relaylock: /var/qmail/bin/relaylock: mail from 194.25.134.80:49518 (mailout01.sul.t-online.com)
Apr  3 11:02:09 h1232389 qmail: 1175590929.398933 new msg 13470490
Apr  3 11:02:09 h1232389 qmail: 1175590929.399015 info msg 13470490: bytes 1207 from <kantiran@t-online.de> qp 23896 uid 2020
Apr  3 11:02:09 h1232389 qmail: 1175590929.409617 starting delivery 4: msg 13470490 to local 2-markus@foerg-online.de
Apr  3 11:02:09 h1232389 qmail: 1175590929.409688 status: local 1/10 remote 0/20
Apr  3 11:02:09 h1232389 qmail: 1175590929.437838 delivery 4: success: did_1+0+1/
Apr  3 11:02:09 h1232389 qmail: 1175590929.438131 status: local 0/10 remote 0/20
Apr  3 11:02:09 h1232389 qmail: 1175590929.438169 end msg 13470490
Apr  3 11:03:28 h1232389 imapd: IMAP connect from @ [84.155.118.63]INFO: LOGIN, user=sonstiges, ip=[84.155.118.63], protocol=IMAP
Apr  3 11:03:30 h1232389 imapd: 1175591010.396644 LOGOUT, user=sonstiges, ip=[84.155.118.63], headers=0, body=0, rcvd=134, sent=542, maildir=/var/qmail/mailnames/foerg-online.de/sonstiges/Maildir
Apr  3 11:03:30 h1232389 imapd: 1175591010.608489 LOGOUT, user=sonstiges, ip=[84.155.118.63], headers=0, body=9842, rcvd=1321, sent=15722, maildir=/var/qmail/mailnames/foerg-online.de/sonstiges/Maildir
Apr  3 11:03:31 h1232389 imapd: 1175591011.210675 LOGOUT, user=markus, ip=[84.155.118.63], headers=0, body=0, rcvd=141, sent=597, maildir=/var/qmail/mailnames/foerg-online.de/markus/Maildir
Apr  3 11:03:31 h1232389 imapd: 1175591011.447657 LOGOUT, user=markus, ip=[84.155.118.63], headers=1099, body=11386, rcvd=2648, sent=18803, maildir=
Die local.cf des spamassassin

Code: Select all

blacklist_from kantiran@t-online.de
blacklist_from sonstiges@foerg-online.de
required_score			3.0
rewrite_header subject		***SPAM***
report_safe			1
use_bayes			1
bayes_auto_learn		1
skip_rbl_checks			0
use_razor2			1
use_dcc				1
use_pyzor			1
ok_languages			en de
ok_locales			en de
Und hier ein ps aux:

Code: Select all

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    604   248 ?        Ss   10:40   0:00 init [3]
root     22038  0.0  0.0   1456   592 ?        Ss   10:40   0:00 /sbin/syslogd -a /var/lib/named/dev/log -a /var/lib/ntp/dev/log -a /var/lib/stunnel/dev/log
root     22044  0.0  0.0   3984   784 ?        Ss   10:40   0:00 /usr/sbin/saslauthd -n 2 -a pam
root     22045  0.0  0.0   3984   468 ?        S    10:40   0:00 /usr/sbin/saslauthd -n 2 -a pam
root     22050  0.0  0.2   9260  5864 ?        Ss   10:40   0:00 /usr/bin/perl /usr/local/src/webmin-1.330/miniserv.pl /etc/webmin/miniserv.conf
root     22072  0.0  0.0   2664   704 ?        S    10:40   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=imapd -maxprocs=40 -maxperip=4 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 /usr/sbin/imaplogin /usr/lib/courier-imap/authlib/authpsa /usr/bin/imapd Maildir
root     22074  0.0  0.0   2568   772 ?        S    10:40   0:00 /usr/sbin/courierlogger imapd
root     22083  0.0  0.0   2664   700 ?        S    10:40   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=imapd-ssl -maxprocs=40 -maxperip=4 -pid=/var/run/imapd-ssl.pid -nodnslookup -noidentlookup 993 /usr/bin/couriertls -server -tcpd /usr/sbin/imaplogin /usr/lib/courier-imap/authlib/authpsa /usr/bin/imapd Maildir
root     22085  0.0  0.0   2436   620 ?        S    10:40   0:00 /usr/sbin/courierlogger imapd-ssl
root     22092  0.0  0.0   2664   708 ?        S    10:40   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d -maxprocs=40 -maxperip=4 -pid=/var/run/pop3d.pid -nodnslookup -noidentlookup 110 /usr/sbin/pop3login /usr/lib/courier-imap/authlib/authpsa /usr/bin/pop3d Maildir
root     22094  0.0  0.0   2568   772 ?        S    10:40   0:00 /usr/sbin/courierlogger pop3d
root     22102  0.0  0.0   2664   700 ?        S    10:40   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d-ssl -maxprocs=40 -maxperip=4 -pid=/var/run/pop3d-ssl.pid -nodnslookup -noidentlookup 995 /usr/bin/couriertls -server -tcpd /usr/sbin/pop3login /usr/lib/courier-imap/authlib/authpsa /usr/bin/pop3d Maildir
root     22104  0.0  0.0   2436   620 ?        S    10:40   0:00 /usr/sbin/courierlogger pop3d-ssl
root     22117  0.0  0.0   4524  1216 ?        Ss   10:40   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root     22123  0.0  0.0   2080   884 ?        Ss   10:40   0:00 /usr/sbin/xinetd
named    22184  0.0  0.1  36316  2700 ?        Ssl  10:40   0:00 /usr/sbin/named -t /var/lib/named -u named
root     22199  0.0  0.0   2376  1136 ?        S    10:40   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.sock --datadir=/var/lib/mysql
mysql    22235  0.0  0.5 102996 10736 ?        Sl   10:40   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
qmails   22255  0.0  0.0   1436   384 ?        S    10:40   0:00 qmail-send
qmaill   22257  0.0  0.0   1388   440 ?        S    10:40   0:00 splogger qmail
root     22258  0.0  0.0   1420   352 ?        S    10:40   0:00 qmail-lspawn ./Maildir/
qmailr   22259  0.0  0.0   1412   328 ?        S    10:40   0:00 qmail-rspawn
qmailq   22260  0.0  0.0   1380   320 ?        S    10:40   0:00 qmail-clean
root     22304  0.0  0.7  37904 16360 ?        Ss   10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root     22310  0.0  0.3  37016  6280 ?        S    10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22311  0.0  0.3  37904  7524 ?        S    10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22312  0.0  0.3  37904  7512 ?        S    10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22313  0.0  0.3  37904  7512 ?        S    10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22314  0.0  0.3  37904  7512 ?        S    10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22315  0.0  0.3  37904  7512 ?        S    10:40   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root     22333  0.0  0.2  35608  4984 ?        Ss   10:40   0:00 /usr/local/psa/admin/bin/httpsd
psaadm   22337  0.0  0.1  35608  2488 ?        S    10:40   0:00 /usr/local/psa/admin/bin/httpsd
root     22388  0.0  0.0   1668   696 ?        Ss   10:40   0:00 /usr/sbin/cron
popuser  22393  0.0  0.0   3980  1108 ?        S    10:40   0:00 /usr/bin/imapd Maildir
popuser  22394  0.0  0.0   3976  1112 ?        S    10:40   0:00 /usr/bin/imapd Maildir
root     22414  0.0  0.1   8988  2664 ?        Ss   10:42   0:00 sshd: root@pts/0
root     22417  0.0  0.0   2704  1752 pts/0    Ss   10:42   0:00 -bash
root     23702  2.7  1.3  31448 28956 ?        Ss   10:53   0:00 /usr/sbin/spamd -d -c -L -r /var/run/spamd.pid
root     23703  0.0  1.3  31448 27332 ?        S    10:53   0:00 spamd child
root     23704  0.0  1.3  31448 27228 ?        S    10:53   0:00 spamd child
root     23732  0.0  0.0   2380   856 pts/0    R+   10:53   0:00 ps aux
Hat jemand eine Idee woran das liegt.
Der SA kommt hier ja irgendwie gar nicht zum zug.

Gruß,
kantiran :?:
kantiran
Posts: 11
Joined: 2006-03-28 19:41
 

Re: spamassassin läuft nicht

Post by kantiran »

Das hab ich nun rausgefunden. Hab vergessen den SA in qmail einzubinden.

Code: Select all

# qmail anhalten
/etc/init.d/qmail stop

#Backup der qmail-queue anlegen:
cp -p /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.bak

# Arbeitskopie der qmail-queue anlegen:
cp -p /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.orig

#Spamassassin in die qmail-queue einbinden:
rm -f /var/qmail/bin/qmail-queue
echo '#!/bin/sh' >/var/qmail/bin/qmail-queue
echo '/usr/bin/spamc | /var/qmail/bin/qmail-queue.orig' >>/var/qmail/bin/qmail-queue
chmod 4755 /var/qmail/bin/qmail-queue

# qmail wieder starten
/etc/init.d/qmail start
Weiss jemand wie qmail und/oder procmail dazu kriegt alle
Spammails an eine ganz bestimmte E-Mailadresse zu senden?

Gruß,
kantiran
dogsch
Posts: 8
Joined: 2007-03-29 13:41
Location: Berlin
 

Re: spamassassin läuft nicht

Post by dogsch »

kantiran wrote:#Spamassassin in die qmail-queue einbinden:
rm -f /var/qmail/bin/qmail-queue
echo '#!/bin/sh' >/var/qmail/bin/qmail-queue
echo '/usr/bin/spamc | /var/qmail/bin/qmail-queue.orig' >>/var/qmail/bin/qmail-queue
chmod 4755 /var/qmail/bin/qmail-queue
diesen Part Deiner Einbindung verstehe ich nicht - könntest Du den näher erklären?
Benutzt Du keinen qmail-scanner?

Gruß aus der Hauptstadt

DOGSCH
kantiran
Posts: 11
Joined: 2006-03-28 19:41
 

Re: spamassassin läuft nicht

Post by kantiran »

Keine Ahnung. Ich hab das so aus einem anderen Forum.
Warum das mit dem "....qmail-queue.orig" auch noch nötig ist, weiß ich
nicht.
Hab das auch schon ohne diesen Part gesehen, allerdings war da noch
qsheff und clamav miteingebunden. Bei mir läuft der SA aber alleine
ohne qsheff und clamav.

kantiran