You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Christian Gregoire <cg...@yahoo.com> on 2011/12/06 16:28:21 UTC
failed to parse line
Hi,
With the following prefs file (taken from http://wiki.apache.org/spamassassin/WritingRules) :
header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /\btest\b/i
score LOCAL_DEMONSTRATION_SUBJECT 0.1
I get the below error :
Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: using default config for christian@xxxx.fr: /var/atmail/users/christian@xxxx.fr/user_prefs
Dec 6 14:39:20 webmail-9 spamd[21374]: config: failed to parse line, skipping, in "/var/atmail/users/christian@xxxx.fr/user_prefs": header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /\btest\b/i
Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: processing message <DF...@S-EXC01.ci.lan> for christian@xxxx.fr:99
Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: clean message (-100.2/6.0) for christian@xxxx.fr:99 in 0.2 seconds, 41321 bytes.
Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: result: . -100 - ALL_TRUSTED,HTML_IMAGE_ONLY_32,HTML_IMAGE_RATIO_02,HTML_MESSAGE,TVD_SPACE_RATIO,USER_IN_WHITELIST scantime=0.2,size=41321,user=christian@xxxx.fr,uid=99,required_score=6.0,rhost=localhost,raddr=127.0.0.1,rport=/tmp/spamassassin.socket,mid=<DF...@S-EXC01.ci.lan>,autolearn=no
I work with the latest version of SA :
SpamAssassin Server version 3.3.2
running on Perl 5.8.6
with SSL support (IO::Socket::SSL 1.01)
with zlib support (Compress::Zlib 1.37)
SpamAssassin Client version 3.3.2
Any idea ?
Christian
Re: Re : failed to parse line
Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 12/6/2011 12:55 PM, Christian Gregoire wrote:
>> What happens if you put those lines into a local.cf or similar configuration file rather than a user preference?
>
> Doesn't look like it's taken into account. The rule is not triggered
Then you are putting it in the wrong place or the rule isn't hitting the
test email ;-)
>> What are your command line parameters for spamd and spamc?
> /usr/bin/spamd --socketpath=/tmp/spamassassin.socket -d -r /var/run/spamd.pid -s local2 -c -m15 -H -x --virtual-config-dir=/var/atmail/users/%u -u nobody
>
>
> spamc -U /tmp/spamassassin.socket -u christian@xxxx.fr
Your culprit is on Spamd: -x, --nouser-config Disable user
config files
Re : failed to parse line
Posted by Christian Gregoire <cg...@yahoo.com>.
>What happens if you put those lines into a local.cf or similar configuration file rather than a user preference?
Doesn't look like it's taken into account. The rule is not triggered
>What are your command line parameters for spamd and spamc?
/usr/bin/spamd --socketpath=/tmp/spamassassin.socket -d -r /var/run/spamd.pid -s local2 -c -m15 -H -x --virtual-config-dir=/var/atmail/users/%u -u nobody
spamc -U /tmp/spamassassin.socket -u christian@xxxx.fr
Re: failed to parse line
Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 12/6/2011 10:28 AM, Christian Gregoire wrote:
> Hi,
>
> With the following prefs file (taken from http://wiki.apache.org/spamassassin/WritingRules) :
>
> header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /\btest\b/i
>
> score LOCAL_DEMONSTRATION_SUBJECT 0.1
>
> I get the below error :
>
> Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: using default config for christian@xxxx.fr: /var/atmail/users/christian@xxxx.fr/user_prefs
> Dec 6 14:39:20 webmail-9 spamd[21374]: config: failed to parse line, skipping, in "/var/atmail/users/christian@xxxx.fr/user_prefs": header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /\btest\b/i
> Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: processing message<DF...@S-EXC01.ci.lan> for christian@xxxx.fr:99
> Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: clean message (-100.2/6.0) for christian@xxxx.fr:99 in 0.2 seconds, 41321 bytes.
> Dec 6 14:39:20 webmail-9 spamd[21374]: spamd: result: . -100 - ALL_TRUSTED,HTML_IMAGE_ONLY_32,HTML_IMAGE_RATIO_02,HTML_MESSAGE,TVD_SPACE_RATIO,USER_IN_WHITELIST scantime=0.2,size=41321,user=christian@xxxx.fr,uid=99,required_score=6.0,rhost=localhost,raddr=127.0.0.1,rport=/tmp/spamassassin.socket,mid=<DF...@S-EXC01.ci.lan>,autolearn=no
>
>
What happens if you put those lines into a local.cf or similar
configuration file rather than a user preference?
What are your command line parameters for spamd and spamc?
Regards,
KAM