Check if your spamd listens to localhost (127.0.0.1) on port 783. As you dont specify a host with -d that's where spamc will connect to.
 
a 'telnet localhost 783' will tell you that.
 
-Sietse


From: Alexander Gomer
Sent: Wed 13-Dec-06 12:27
To: users@spamassassin.apache.org
Subject: spamc vs. spamassassin

Hello list,
i have a strange problem. When i try to feed spamassassin with the
sample-spam.txt, then spamassassin make his job good. But when i give
the sample-spam.txt to spamc, the message is not identified as spam. I
googled a lot and searched this list, but cannot find any hints. Here
comes the output:
 

spamassassin -D < /usr/share/doc/spamc/sample-spam.txt
[3381] dbg: logger: adding facilities: all
[3381] dbg: logger: logging level is DBG
[3381] dbg: generic: SpamAssassin version 3.1.7
[3381] dbg: config: score set 0 chosen.
[3381] dbg: util: running in taint mode? yes
[3381] dbg: util: taint mode: deleting unsafe environment variables, 
--- cut ---
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xx.xx.xx
--- cut ---


spam:~# spamc < /usr/share/doc/spamc/sample-spam.txt
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xx.xx.xx
Begin of the Message ...
-- cut ---



I am very confused about this. I am running Debian-Sarge (up to date),
Spamassassin 3.1.7 (loaded from CPAN). Spammassassin is running in
deamon-mode:

spam:~# ps aux|grep spamd
root      3365  0.0  5.3 31972 27624 ?       Ss   12:51   0:00
/usr/bin/perl -T -w /usr/sbin/spamd -v --debug --create-prefs
--nouser-config --configpath=/etc/spamassassin/ --max-children 3
--helper-home-dir -u spamfilter -d --pidfile=/var/run/spamd.pid

Why does spamc not 'connect' to spamassassin?
I hope, my facts are enough. Otherwise i will give more output, if
needed. Thank you.

Alex

Reply via email to