You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alexander Gomer <a....@rbcom.de> on 2006/12/13 12:27:50 UTC

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


Re: spamc vs. spamassassin

Posted by Matt Kettler <mk...@verizon.net>.
Alexander Gomer wrote:
> 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:
>  
>
>   
<snip>
> 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
>   
GET RID of the --configpath parameter to spamd. You're obliterating the
ruleset.

--configpath should point to the default ruleset (where 50_scores.cf
lives) ie: /usr/share/spamassassin or similar.
--siteconfigpath should point to your site riles (where local.cf lives)
ie: /etc/spamassassin or similar.

But really, you should not need to specify EITHER of these, unless
you've created your own nonstandard location for the files to go in. If
spamassassin finds them just fine on its own, then spamd will find them
too. However, if you point it at the wrong location, you've made sure
that spamd will not work properly.

While you're at it, either get rid of --helper-home-dir, or specify a
directory for razor/dcc/etc to use as HOME. As it is, I'm a little
surprised spamd doesn't just bork and exit on invalid input.








Re: spamc vs. spamassassin

Posted by aubreyL <au...@emailacs.com>.
Alexander Gomer wrote:
> 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
>
>
>   
Try this command for spamc:

spamc -c < /usr/share/doc/spamc/sample-spam.txt

This should just output the [score]/[required_score]

-=Aubrey=-