I newly installed SA v 2.52-1 on my Linux RH 8 with CommuniGate Pro mailer on it.
I set only the system wide configuration (file local.cf is located in /etc/mail/spamassassin and it 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 3.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 Euro new*****
# 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 - -
I set a system wide rules on my mailer (CGP v4.1) 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
The SA seems to work correctly, it detects the spam messagges etc...
But if I check the logs I see the following errors:
- - -
Sep 12 15:25:54 pcocolo spamd[4121]: logmsg: info: setuid to root succeeded
Sep 12 15:25:54 pcocolo spamd[4121]: info: setuid to root succeeded
Sep 12 15:25:54 pcocolo spamd[4121]: debug: user has changed
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing
Sep 12 15:25:54 pcocolo spamd[4121]: debug: using "/root/.spamassassin" for user state dir
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
Sep 12 15:25:54 pcocolo spamd[4121]: debug: debug: Only 0 spam(s) in Bayes DB < 200
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing db_toks
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing db_seen
Sep 12 15:25:54 pcocolo spamd[4121]: debug: Score set 1 chosen.
Sep 12 15:25:54 pcocolo spamd[4121]: logmsg: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody.
Sep 12 15:25:54 pcocolo spamd[4121]: Still running as root: user not specified with -u, not found, or set to root. Fall back to nobody.
Sep 12 15:25:54 pcocolo spamd[4121]: logmsg: processing message <[EMAIL PROTECTED]> for root:99.
Sep 12 15:25:54 pcocolo spamd[4121]: processing message <[EMAIL PROTECTED]> for root:99.
Sep 12 15:25:54 pcocolo spamd[4121]: debug: using "/root/.spamassassin" for user state dir
Sep 12 15:25:54 pcocolo spamd[4121]: debug: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin.pm line 1170
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
Sep 12 15:25:54 pcocolo spamd[4121]: debug: running header regexp tests; score so far=0
Sep 12 15:25:54 pcocolo spamd[4121]: debug: running body-text per-line regexp tests; score so far=-5.8
Sep 12 15:25:54 pcocolo spamd[4121]: debug: running raw-body-text per-line regexp tests; score so far=-4.6
Sep 12 15:25:54 pcocolo spamd[4121]: debug: running uri tests; score so far=-4.6
Sep 12 15:25:54 pcocolo spamd[4121]: debug: uri tests: Done uriRE
Sep 12 15:25:54 pcocolo spamd[4121]: debug: running full-text regexp tests; score so far=-4.6
Sep 12 15:25:54 pcocolo spamd[4121]: debug: all '*From' addrs: [EMAIL PROTECTED]
Sep 12 15:25:54 pcocolo spamd[4121]: debug: all '*To' addrs: [EMAIL PROTECTED]
Sep 12 15:25:54 pcocolo spamd[4121]: debug: forged_rcvd_trail: entry 0: by=trieste.it
from=(undef) mismatches=0
Sep 12 15:25:54 pcocolo spamd[4121]: debug: running meta tests; score so far=-4.6
Sep 12 15:25:54 pcocolo spamd[4121]: debug: auto-learn? safety=4, ham=-2, spam=15, body-hits=1.2, head-hits=-5.8
Sep 12 15:25:54 pcocolo spamd[4121]: debug: auto-learn: currently using scoreset 1. no need to recompute.
Sep 12 15:25:54 pcocolo spamd[4121]: debug: auto-learn? yes, ham (-4.6 < -2)
Sep 12 15:25:54 pcocolo spamd[4121]: debug: Learning Ham
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing
Sep 12 15:25:54 pcocolo spamd[4121]: debug: using "/root/.spamassassin" for user state dir
Sep 12 15:25:54 pcocolo spamd[4121]: debug: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin.pm line 1170 Permission denied
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing
Sep 12 15:25:54 pcocolo spamd[4121]: debug: auto-learning failed: lock: 4121 cannot create tmp lockfile /root/.spamassassin/bayes.lock.pcocolo.elettra.trieste.it.4121 for /root/.spamassassin/bayes.lock: Permission denied
Sep 12 15:25:54 pcocolo spamd[4121]: debug: using "/root/.spamassassin" for user state dir
Sep 12 15:25:54 pcocolo spamd[4121]: debug: mkdir /root/.spamassassin failed: mkdir /root/.spamassassin: Permission denied at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin.pm line 1170 Permission denied
Sep 12 15:25:54 pcocolo spamd[4121]: debug: open of AWL file failed: lock: 4121 cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.pcocolo.elettra.trieste.it.4121 for /root/.spamassassin/auto-whitelist.lock: Permission denied
Sep 12 15:25:54 pcocolo spamd[4121]: debug: is spam? score=-4.6 required=3 tests=COMMUNIGATE,USER_AGENT_MOZILLA_UA
Sep 12 15:25:54 pcocolo spamd[4121]: logmsg: clean message (-4.6/3.0) for root:99 in 0.5 seconds, 1015 bytes.
Sep 12 15:25:54 pcocolo spamd[4121]: clean message (-4.6/3.0) for root:99 in 0.5 seconds, 1015 bytes.
Sep 12 15:25:54 pcocolo spamd[4121]: debug: bayes: 4121 untie-ing
- - -
I tried to run spamd as different user than root, but nothing seems to change... I checked for the right permission in the dir an it's ok... Then I tried to use a different directory and the result has been the same...
I launch spamd with this command parameters: "-d -a -c -D"
Could you please help me so I tried to read many and many documentation unsuccessfully...
Thaks a lot in advance!!
Euro Cocolo
------------------------------------------------------- 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