Cronjob error

Discussion in 'Server Operation' started by duceduc, Aug 14, 2010.

  1. duceduc

    duceduc New Member

    Hello. I recently installed a mail server on a Ubuntu server. I noticed, however, that I am getting a cron job error sent via email. I don't know how to go about troubleshooting this. I would like to say that I am a novice to Linux.

    Code:
    [i]Cron <amavis@web-server> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-syn[/i]
    
    bayes: cannot open bayes databases /etc/spamassassin/bayes_* R/O: tie failed: Permission denied
    bayes: expire_old_tokens: locker: safe_lock: cannot create tmp lockfile /etc/spamassassin/bayes.lock.web-server.20927 for /etc/spamassassin/bayes.lock: Permission denied
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/spamassassin/
    ?
     
  3. duceduc

    duceduc New Member

    Since my ubuntu server doesn't have a gui interface and I am using windows as a client pc, I don't know how to copy and paste the list. I took a screenshot instead.
     

    Attached Files:

  4. falko

    falko Super Moderator ISPConfig Developer

    You can use an SSH client such as PuTTY to connect to the server. This also allows you to do copy&paste.

    What's the output of
    Code:
    grep amavis /etc/passwd
    and
    Code:
    grep amavis /etc/group
    ?
     
  5. duceduc

    duceduc New Member

    Thanks for the tip. Here are the outputs.

    ls -la /etc/spamassassin/
    grep amavis /etc/passwd
    grep amavis /etc/group
     
  6. falko

    falko Super Moderator ISPConfig Developer

    That's strange, permissions seem to be ok. Can you add the amavis user to the spamd group? Maybe that helps.
     
  7. duceduc

    duceduc New Member

    I gave amavis permission to the folder with these cmd
    I have an unrelated issue dealing with spam tag. Is it possible to have all emails marked as spam be deleted automatically? Right now I am receiving all marked spam emails sent to inbox. I read we need to edit the amavisd.conf but I don't see it in the amavis dir.

    Thanks.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    You can change this in /etc/amavis/conf.d/20-debian_defaults.
     

Share This Page