Results 1 to 4 of 4

Thread: Kopano-spamd - Permission denied (Postfix with amavisd-new)

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    4

    Question [solved] Kopano-spamd - Permission denied (Postfix with amavisd-new)

    Hello,

    i have some problems with the integration of "Kopano-spamd" (). I have everything installed as it is written in the manual.
    But the "sa-learn" will write at the root Homedir and not in the Homedir of the User amavis (/var/lib/amavis/.spamassassin).

    Here is wat I see in the logfile.

    2016-12-22 13:06:07,172 - spamd - INFO - starting spamd
    config: path "/root/.spamassassin" is inaccessible: Permission denied
    config: path "/root/.spamassassin/user_prefs" is inaccessible: Permission denied
    config: path "/root/.spamassassin" is inaccessible: Permission denied
    config: path "/root/.spamassassin" is inaccessible: Permission denied
    bayes: expire_old_tokens: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/bayes.lock.xxx.yyyyy.zz.8374 for /root/.spamassassin/bayes.lock: Permission denied
    plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/bayes.lock.xxx.yyyyy.zz.8374 for /root/.spamassassin/bayes.lock: Permission denied
    ERROR: the Bayes learn function returned an error, please re-run with -D for more information at /usr/bin/sa-learn line 501.
    2016-12-22 13:06:53,855 - spamd - INFO - [[email protected]] sa-learn: Learned tokens from 0 message(s) (1 message(s) examined)
    Last edited by harpi; 23-12-2016 at 11:06 AM. Reason: solved

  2. #2
    Zarafa
    markb's Avatar
    Join Date
    Sep 2013
    Location
    Delft
    Posts
    124
    Hi,

    Are you sure the kopano-spamd is running as the user kopano and the sudo command works when ran manually as the kopano user ?

    It can be that the first invocation of sudo by the kopano user it requires some user input.

    Good Luck
    Last edited by markb; 22-12-2016 at 01:50 PM. Reason: typo

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    4
    Hi,

    yes kopano-spamd is running as User kopano.
    I have now change spamassassin to use mysql instead of files.

    Now it works fine.

  4. #4
    Junior Member
    Join Date
    Mar 2017
    Posts
    1
    Hello harpi,

    can you share your config file please?

    Regards....

Similar Threads

  1. Replies: 1
    Last Post: 17-03-2015, 02:56 PM
  2. zarafa-dagent: Permission denied
    By kkormany in forum Installation, Configuration and Maintenance
    Replies: 6
    Last Post: 30-08-2012, 10:39 AM
  3. Zarafa updater service permission denied
    By Jingle in forum Installation and Configuration Archives
    Replies: 0
    Last Post: 12-04-2010, 04:31 PM
  4. setting permission for calendar: access denied
    By lkocher in forum Outlook usage Archives
    Replies: 0
    Last Post: 16-03-2008, 08:52 PM
  5. zarafa - openldap - postfix Relaying denied 550
    By wguenther in forum Installation and Configuration Archives
    Replies: 3
    Last Post: 21-01-2008, 04:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •