Großes Problem mit Spamassassin!
Posted: 2005-11-12 11:07
Hi!
Habe Spamassassin in Kombination mit Pstfix und MySQL als Backend erfolgreich am laufen.
Nur auf einmal kamen Spams ungehindert durch. Ich suchte nach der Ursache und fand einige unschöne Phänomene:
Postfix / Spamc können scheinbar keine Mails mehr dem spamd übergeben - warum weiß ich nicht.
Ein Restart des Spamd's brachte auch nichts.
Habe den spamd mal im Debug gestartet - leider nichts brauchbares.
Hier ein ps-fax-Teilausschnitt:
Beim Aufruf von "mailq" findet man dann solche schönen Sachen hier:
Vielen, vielen Danl schonmal im voraus,
d@tenmaulwurf
Habe Spamassassin in Kombination mit Pstfix und MySQL als Backend erfolgreich am laufen.
Nur auf einmal kamen Spams ungehindert durch. Ich suchte nach der Ursache und fand einige unschöne Phänomene:
in /var/log/mail.errNov 12 00:04:46 amy spamc[26444]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#1 of 3): Connection refused
Nov 12 00:04:47 amy spamc[26444]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Nov 12 00:04:48 amy spamc[26444]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Nov 12 00:04:49 amy spamc[26444]: connection attempt to spamd aborted after 3 retries
Postfix / Spamc können scheinbar keine Mails mehr dem spamd übergeben - warum weiß ich nicht.
Ein Restart des Spamd's brachte auch nichts.
Habe den spamd mal im Debug gestartet - leider nichts brauchbares.
Hier ein ps-fax-Teilausschnitt:
Die Mails hängen da in der Postfix-Queue, da spamd sie scheinbar nicht annimmt.5105 ? SNs 0:00 /usr/bin/perl -T -w /usr/sbin/spamd --port 8965 --create-prefs --max-children 5 -q -x -u vmail --debug -d --pidfile=/var/run/spamd/spamd.pid
5110 ? SN 0:03 _ spamd child
5111 ? SN 0:03 _ spamd child
5112 ? SN 0:04 _ spamd child
5113 ? SN 0:03 _ spamd child
5114 ? SN 0:03 _ spamd child
5228 ? Ss 0:00 /usr/lib/postfix/master
5235 ? S 0:00 _ pickup -l -t fifo -u -c
5236 ? S 0:00 _ qmgr -l -t fifo -u -c
5237 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5238 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5242 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5247 ? S 0:00 _ cleanup -z -t unix -u -c
5248 ? S 0:00 _ trivial-rewrite -n rewrite -t unix -u -c
5249 ? S 0:00 _ virtual -t unix
5255 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
5256 ? S 0:00 _ proxymap -t unix -u
5261 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5263 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
5264 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5273 ? S 0:00 _ cleanup -z -t unix -u -c
5280 ? S 0:00 _ cleanup -z -t unix -u -c
5310 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
5326 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
5343 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5349 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
5352 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5359 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5386 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5394 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
5410 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5420 ? S 0:00 _ virtual -t unix
5456 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5462 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5464 ? S 0:00 _ pipe -n spamassassin -t unix user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
5553 ? S 0:00 _ smtpd -n smtp -t inet -u -c -o content_filter spamassassin
Beim Aufruf von "mailq" findet man dann solche schönen Sachen hier:
Hier der relevante Teil der master.cf (obwohl es ja ohne Probleme bis gestern Nacht funktionierte):DCE1418E5AFC 2295 Sat Nov 12 10:44:17 user@domain.tld
(Command died with signal 15: "/usr/bin/spamc")
user@domain.tld
Ich hoffe ihr könnt mir helfen, bin wirklich ratlos!smtp inet n - - - - smtpd
-o content_filter=spamassassin
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
#smtp unix - n n - - pipe
spamassassin unix - n n - - pipe
user=nobody argv=/usr/bin/spamc -p 8965 -u ${recipient} -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
relay unix - - - - - smtp
Vielen, vielen Danl schonmal im voraus,
d@tenmaulwurf