HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Cronjob error (http://www.howtoforge.com/forums/showthread.php?t=47968)

duceduc 14th August 2010 16:41

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


falko 15th August 2010 18:59

What's the output of
Code:

ls -la /etc/spamassassin/
?

duceduc 16th August 2010 05:28

1 Attachment(s)
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.

falko 16th August 2010 14:45

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
?

duceduc 16th August 2010 14:54

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

falko 17th August 2010 19:37

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

duceduc 18th August 2010 02:51

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.

falko 18th August 2010 17:52

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


All times are GMT +2. The time now is 12:22.

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