#1  
Old 14th August 2010, 15:41
duceduc duceduc is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default Cronjob error

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:
Cron <amavis@web-server> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-syn

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
Reply With Quote
Sponsored Links
  #2  
Old 15th August 2010, 17:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
ls -la /etc/spamassassin/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th August 2010, 04:28
duceduc duceduc is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

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 Images
 
Reply With Quote
  #4  
Old 16th August 2010, 13:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

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
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th August 2010, 13:54
duceduc duceduc is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for the tip. Here are the outputs.

ls -la /etc/spamassassin/
Quote:
drwxrwxrwx 4 amavis amavis 4096 2010-08-16 19:46 .
drwxr-xr-x 111 root root 4096 2010-08-13 16:13 ..
-rwxrwxrwx 1 spamd amavis 939 2010-03-30 00:01 65_debian.cf
-rw-rw-rw- 1 spamd spamd 3264 2010-08-16 19:46 bayes_journal
-rw-rw-rw- 1 amavis amavis 24 2010-08-16 18:18 bayes.mutex
-rwxrwxrwx 1 spamd amavis 172032 2010-08-16 19:46 bayes_seen
-rwxrwxrwx 1 spamd amavis 2629632 2010-08-16 19:46 bayes_toks
-rwxrwxrwx 1 spamd amavis 1299 2010-03-30 00:01 init.pre
-rwxrwxrwx 1 spamd amavis 4549 2010-08-15 23:09 learnspam
-rwxrwxrwx 1 spamd amavis 2335 2010-08-16 11:10 local.cf
drwxrwxrwx 2 spamd amavis 4096 2010-03-30 00:01 sa-update-hooks.d
drwxrwxrwx 2 spamd amavis 4096 2010-08-14 22:59 sa-update-keys
-rwxrwxrwx 1 spamd amavis 2524 2010-03-30 00:01 v310.pre
-rwxrwxrwx 1 spamd amavis 1194 2010-03-30 00:01 v312.pre
-rwxrwxrwx 1 spamd amavis 2416 2010-03-30 00:01 v320.pre
-rwxrwxrwx 1 spamd amavis 1237 2010-03-30 00:01 v330.pre
grep amavis /etc/passwd
Quote:
amavis:x:112:120:AMaViS system user,,,:/var/lib/amavis:/bin/sh
grep amavis /etc/group
Quote:
clamav:x:119:amavis
amavis:x:120:clamav
Reply With Quote
  #6  
Old 17th August 2010, 18:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

That's strange, permissions seem to be ok. Can you add the amavis user to the spamd group? Maybe that helps.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 18th August 2010, 01:51
duceduc duceduc is offline
Junior Member
 
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

I gave amavis permission to the folder with these cmd
Quote:
I gave amavis permission rights to the folder and that seems to help. I haven't got a error yet.
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.
Reply With Quote
  #8  
Old 18th August 2010, 16:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

You can change this in /etc/amavis/conf.d/20-debian_defaults.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
amavis-new, cronjob, mail server, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CP210x USB to UART Bridge Linux VCP Drivers(SILICON Labs) perfectpol7 Kernel Questions 13 9th November 2010 07:30
Postfix + DKIM - Error in log donb01 Server Operation 2 24th July 2008 17:59
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
64-bit Debian 3.1 Install Issue naruto Installation/Configuration 14 5th September 2006 04:12
Fresh Install on Debian cksrealm Installation/Configuration 12 22nd February 2006 16:14


All times are GMT +2. The time now is 08:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.