Hi all,

I newly installed SA v 2.52-1 on my Linux RH 7.2 with CommuniGate Pro v. 4.1.4 MTA on it.

I don't use user's preferences, only set the system wide configuration, the file local.cf is located in /etc/mail/spamassassin and contains the following lines:

**********
# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)

# How many hits before a message is considered spam.
required_hits           8.0

# Whether to change the subject of suspected spam
rewrite_subject         1

# Text to prepend to subject if rewrite_subject is used
subject_tag             =====SPAM MeSsAgE=====

# Encapsulate spam in an attachment
report_safe             1

# Use terse version of the spam report
use_terse_report        0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

# Enable or disable network checks
skip_rbl_checks         1
use_razor2              0
use_dcc                 0
use_pyzor               0

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages            all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              all

allow_user_rules 0

auto_whitelist_path /var/spool/spamassassin/auto-whitelist

bayes_path /var/spool/spamassassin
**********


- I set the system wide rules on the mailer interface for which:


any recipient -> in -> [EMAIL PROTECTED]
and message size -> less then -> 32768
and header field -> is not -> X-Spam-Status*
execute -> [STDERR] [FILE] [RETPATH] [RCPT] /var/CommuniGate/scanspam.sh


- I modified the "scanspam.sh" file in order to use "spamprep" (needed on CGP mailer);


- I launch the spamd with: OPTIONS="-d -x -a -D"

- the directories/files permissions are:

--> "/var/spool/"
drwxr-xr-x    2 root     root         1024 Sep 28 06:22 spamassassin

--> "/var/spool/spamassassin/"
-rw-------    1 root     root        12288 Sep 22 12:22 auto-whitelist
-rw-------    1 root     root            7 Sep 22 12:22 bayes_msgcount
-rw-------    1 root     root        12288 Sep 22 12:22 bayes_seen
-rw-------    1 root     root        24576 Sep 22 12:22 bayes_toks



The SA seems to work properly, it starts, scans any message coming in and detects any possible spam etc...

But if I check the logs (/var/log/maillog) on any message coming in, I see many errors in using auto-learn and auto-whitelist utilities, as shown in the following example:

**********
Sep 30 11:51:19 mail1 spamd[21760]: logmsg: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody.
Sep 30 11:51:19 mail1 spamd[21760]: Still running as root: user not specified with -u,
not found, or set to root. Fall back to nobody.
Sep 30 11:51:19 mail1 spamd[21760]: logmsg: processing message <[EMAIL PROTECTED]> for root:99.
Sep 30 11:51:19 mail1 spamd[21760]: processing message <[EMAIL PROTECTED]> for root:99.
Sep 30 11:51:19 mail1 spamd[21760]: debug: bayes: no dbs present, cannot scan: /var/spool/spamassassin_toks
Sep 30 11:51:19 mail1 spamd[21760]: debug: running header regexp tests; score so far=0


Sep 30 11:51:19 mail1 spamd[21760]: debug: running body-text per-line regexp tests; score so far=-4.7
Sep 30 11:51:19 mail1 spamd[21760]: debug: running raw-body-text per-line regexp tests; score so far=-3.8
Sep 30 11:51:19 mail1 spamd[21760]: debug: running uri tests; score so far=-3.8
Sep 30 11:51:19 mail1 spamd[21760]: debug: uri tests: Done uriRE
Sep 30 11:51:19 mail1 spamd[21760]: debug: running full-text regexp tests; score so far=-3.8
Sep 30 11:51:19 mail1 spamd[21760]: debug: all '*To' addrs: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
Sep 30 11:51:19 mail1 spamd[21760]: debug: time token found: 29591352 expected (from Date): 29591352: 0
Sep 30 11:51:19 mail1 spamd[21760]: debug: all '*From' addrs: [EMAIL PROTECTED]
Sep 30 11:51:19 mail1 spamd[21760]: debug: forged_rcvd_trail: entry 0: by=trieste.it from=webhosting.it mismatches=0
Sep 30 11:51:19 mail1 spamd[21760]: debug: forged_rcvd_trail: entry 1: by=(undef) from=(undef) mismatches=0
Sep 30 11:51:19 mail1 spamd[21760]: debug: forged_rcvd_trail: entry 2: by=(undef) from=(undef) mismatches=0
Sep 30 11:51:19 mail1 spamd[21760]: debug: forged_rcvd_trail: entry 3: by=webhosting.it from=libero.it mismatches=0
Sep 30 11:51:19 mail1 spamd[21760]: debug: running meta tests; score so far=-3.8
Sep 30 11:51:19 mail1 spamd[21760]: debug: auto-learn? safety=4, ham=-2, spam=15, body-hits=0.9, head-hits=-4.7
Sep 30 11:51:19 mail1 spamd[21760]: debug: auto-learn: currently using scoreset 1. no
need to recompute.
Sep 30 11:51:19 mail1 spamd[21760]: debug: auto-learn? yes, ham (-3.8 < -2)
Sep 30 11:51:19 mail1 spamd[21760]: debug: Learning Ham
Sep 30 11:51:19 mail1 spamd[21760]: debug: bayes: 21760 untie-ing
Sep 30 11:51:19 mail1 spamd[21760]: debug: bayes: 21760 untie-ing
Sep 30 11:51:19 mail1 spamd[21760]: debug: auto-learning failed: lock: 21760 cannot create tmp lockfile /var/spool/spamassassin.lock.mail1.elettra.trieste.it.21760 for /var/spool/spamassassin.lock: Permission denied
Sep 30 11:51:19 mail1 spamd[21760]: debug: open of AWL file failed: lock: 21760 cannot
create tmp lockfile /var/spool/spamassassin/auto-whitelist.lock.mail1.elettra.trieste.it.21760 for /var/spool/spamassassin/auto-whitelist.lock: Permission denied
Sep 30 11:51:19 mail1 spamd[21760]: debug: is spam? score=-3.8 required=8 tests=EXTRA_MPART_TYPE,FROM_ENDS_IN_NUMS,HTML_40_50,HTML_MESSAGE,HTML_TAG_EXISTS_TBODY,NO_REAL_NAME,REFERENCES
Sep 30 11:51:19 mail1 spamd[21760]: logmsg: clean message (-3.8/8.0) for root:99 in 0.0 seconds, 24434 bytes.
Sep 30 11:51:19 mail1 spamd[21760]: clean message (-3.8/8.0) for root:99 in 0.0 seconds, 24434 bytes.
Sep 30 11:51:19 mail1 spamd[21760]: debug: bayes: 21760 untie-ing
**********



At the moment I'm running spamd as root, in the past time, as suggested in the documentation I tried to change the user running the spamd, but nothing changed...




Where's the problem? or what I'm doing wrong?


Any help would be greately appreciated!


Euro Cocolo
Sincrotrone Trieste




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to