Skip to main content

Server wide Apache SpamAssassin bayes learning not working

Comments

6 comments

  • cPanelMichael
    Re: Server wide spamassasin bayes learning not working Hello :) Are there any additional lines in /var/log/maillog associated with the error message you referenced? Thank you.
    0
  • kanbam
    Re: Server wide spamassasin bayes learning not working [quote="cPanelMichael, post: 1563712">Hello :) Are there any additional lines in /var/log/maillog associated with the error message you referenced? Thank you.
    /var/log/maillog Feb 4 11:08:20 * spamd[1062]: spamd: connection from localhost.localdomain [127.0.0.1] at port 47140 Feb 4 11:08:20 * spamd[1062]: spamd: setuid to USERNAME succeeded Feb 4 11:08:20 * spamd[1062]: spamd: checking message <*.local> for USERNAME:503 Feb 4 11:08:22 * spamd[1062]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/bayes.HOSTNAME.1062 for /root/.spamassassin/bayes.lock: Permission denied Feb 4 11:08:22 * spamd[1062]: spamd: clean message (0.0/3.0) for USERNAME:503 in 2.1 seconds, 30993 bytes. Feb 4 11:08:22 * spamd[1062]: spamd: result: . 0 - RCVD_IN_DNSWL_NONE,T_OBFU_PDF_ATTACH scantime=2.1,size=30993,user=USERNAME,uid=503,required_score=3.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=47140,mid=<*.local>,autolearn=unavailable,shortcircuit=no Feb 4 11:08:22 * spamd[22756]: prefork: child states: I
    I did change some of the log here with USERNAME, HOSTNAME and * for privacy reasons. The default spamassassing config for bayes learning per account works fine, I want it to learn server wide.
    0
  • cPanelMichael
    Re: Server wide spamassasin bayes learning not working Feel free to open a support ticket using the link in my signature so we can take a closer look at the permissions/ownership values on the directories/files referenced in the error message. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • kanbam
    Re: Server wide spamassasin bayes learning not working [quote="cPanelMichael, post: 1564731">Feel free to open a support ticket using the link in my signature so we can take a closer look at the permissions/ownership values on the directories/files referenced in the error message. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    Thanks. I did open a support ticket. ID number 4539215.
    0
  • kanbam
    Re: Server wide spamassasin bayes learning not working Support solved the problem. /root/.spamassassin has 777 permissions but /root has 550 and denies reading permission to spamassassin. I moved the files to /var/spamassassin,put "bayes_path /var/spamassassin/bayes" in local.cf and its working. Thanks!
    0
  • cPanelMichael
    Re: Server wide spamassasin bayes learning not working I am happy to see the issue is now resolved. Thank you for updating this thread with the outcome.
    0

Please sign in to leave a comment.