
14th August 2010, 15:41
|
|
Junior Member
|
|
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|

15th August 2010, 17:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
What's the output of
Code:
ls -la /etc/spamassassin/
?
|

16th August 2010, 04:28
|
|
Junior Member
|
|
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

16th August 2010, 13:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
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
?
|

16th August 2010, 13:54
|
|
Junior Member
|
|
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|

17th August 2010, 18:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
That's strange, permissions seem to be ok. Can you add the amavis user to the spamd group? Maybe that helps.
|

18th August 2010, 01:51
|
|
Junior Member
|
|
Join Date: Aug 2010
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

18th August 2010, 16:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,601 Times in 2,450 Posts
|
|
You can change this in /etc/amavis/conf.d/20-debian_defaults.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 09:19.
|
|
Recent comments
16 hours 54 min ago
17 hours 54 min ago
21 hours 41 min ago
22 hours 55 min ago
1 day 2 hours ago
1 day 9 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 11 hours ago
2 days 13 hours ago