This is CentOS 6. Why can it be that when I try to run /etc/init.d/amavisd start ... I get this error: Starting Mail Virus Scanner (amavisd): Config file "/etc/amavisd.conf" is inaccessible: Permission denied, at /usr/sbin/amavisd line 2085. [FAILED]
But when I use sh: sh /etc/init.d/amavisd start ...it starts ok.
This is connected to the fact that my amavisd.conf is from another machine (CentOS 5). If I replace amavisd.conf with the default conf (that came with yum install amavisd-new), the starting problem goes away.
I would like to debug this, but I don't know where to look.
- Jussi
This was connected with SELinux. I disabled SELinux and rebooted (naughty me), and things are back to normal.
- Jussi
2013/12/23 Jussi Hirvi listmember@greenspot.fi
This was connected with SELinux. I disabled SELinux and rebooted (naughty me), and things are back to normal.
You should turn SELinux back on and run 'restorecon /etc/amavisd.conf' to (re)set the correct SELinux context.
- Jitse
On 23.12.2013 13.17, Jitse Klomp wrote:
You should turn SELinux back on and run 'restorecon /etc/amavisd.conf' to (re)set the correct SELinux context.
Thanks, maybe I will try that.
I have never learned to use SELinux, and most tutorials on the net - for example on how to install a mail server system on CentOS 6 - include no directions at all for SELinux, so the tutorials only work if one turns SELinux off.
So it looks like I am not the only lazy person around. :-)
- Jussi