Spamd config file problems

shaman

Verified User
Joined
Sep 9, 2010
Messages
22
It seems that spamassassin users_prefs template is outdated.

This is what I get in /var/log/maillog:

Code:
Sep 14 13:44:13 karutis spamd[23628]: config: failed to parse line, skipping, in "/home/vusa/.spamassassin/user_prefs": rewrite_subject 1
Sep 14 13:44:13 karutis spamd[23628]: config: failed to parse line, skipping, in "/home/vusa/.spamassassin/user_prefs": subject_tag *****SPAM*****

I've checked my /usr/local/directadmin/data/templates/user_prefs

Code:
|?RW_HEADER_SUB=rewrite_header subject `subject_tag`|
|*if subject_tag=""|
|?RW_HEADER_SUB=|
|*endif|

|*if VERSION3="yes"|
required_score |required_hits|
|RW_HEADER_SUB|
|*else|

required_hits   |required_hits|
rewrite_subject |rewrite_subject|
subject_tag     |subject_tag|

|*endif|

report_safe     |report_safe|

|blacklist_from|
|whitelist_from|

So it should use rewrite_header subject `subject_tag`, but my user_prefs still says:

Code:
karutis# cat /home/vusa/.spamassassin/user_prefs
required_hits   5.0
rewrite_subject 1
subject_tag     *****SPAM*****
report_safe     1


Code:
SpamAssassin Server version 3.3.1
  running on Perl 5.8.9
  with SSL support (IO::Socket::SSL 1.33)
  with zlib support (Compress::Zlib 2.015)
 
Code:
FreeBSD karutis.vusa.lt 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Tue Aug  3 21:25:01 EEST 2010     [email protected]:/usr/obj/usr/src/sys/KARUTIS  amd64

DirectAdmin v1.36.2
 
What is more if I add |VERSION3| to my template it says "no". So probably DirectAdmin gets SpamAssassin version incorrectly.
 
Hello,

DirectAdmin runs the following to get the version. Please paste us what you get when you run it:
Code:
/usr/bin/spamassassin -V 2>&1
John
 
Code:
karutis# /usr/bin/spamassassin -V 2>&1
karutis# /usr/bin/spamassassin
/usr/bin/spamassassin: Command not found.
karutis# where spamassassin
/usr/local/bin/spamassassin
karutis# ln -s /usr/local/bin/spamassassin /usr/bin/
karutis# /usr/bin/spamassassin -V 2>&1
karutis# /usr/bin/spamassassin -V
SpamAssassin version 3.3.1
  running on Perl version 5.8.9

Yup now it does get the VERSION3 template variable correctly.

The problem was that i had it under /usr/local/bin since I've first installed spamassassin from ./spam.sh, but then had it reinstall from FreeBSD ports because ./spam.sh broke my portsDB with lots of BSDPAN packages, which can not be updated and are rather incompatible.

I think FreeBSD antispam installation should use p5-* packages, which are more portsdb compatible.
 
Back
Top