Having recently reinstalled named (BIND), for some reason I am not entirely clear on, several of my mail directories were grabbed by it. I changed these back to what I think they should be, however sendmail no longer works. Root can send mail but no other user can. They generate an error saying
"can not chdir(/var/spool/clientmqueue/)ermission denied
Program mode requires special privileges, e.g., root or TrustedUser."
Directory ownership/permissions for the /var/spool area are as shown below:
[tt]drwxr-xr-x 17 root named 4096 Nov 23 22:26 .
drwxr-xr-x 24 root root 4096 Dec 12 16:34 ..
drwxr-xr-x 2 root root 4096 Sep 14 20:08 anacron
drwx------ 3 root root 4096 Sep 14 19:50 at
drwxrwx--- 2 smmsp smmsp 4096 Dec 27 22:35 clientmqueue
drwx------ 2 root root 4096 Nov 25 00:32 cron
drwx--x--- 3 root sys 4096 Dec 14 17:39 cups
drwxr-xr-x 2 root root 4096 May 23 2005 lpd
drwxrwxr-x 2 root mail 4096 Dec 27 22:37 mail
drwx------ 2 root smmsp 4096 Dec 27 22:35 mqueue
drwxr-xr-x 2 rpm rpm 4096 Jul 13 16:44 repackage
drwxrwxrwt 2 root root 4096 May 2 2005 samba
drwxr-x--- 2 squid squid 4096 Oct 20 09:48 squid
drwxr-xr-x 3 root root 4096 Nov 8 18:28 squirrelmail
drwxr-xr-x 2 root root 4096 May 24 2005 up2date
drwxrwxrwt 2 root root 4096 May 27 2005 vbox[/tt]
/etc/passwd contains the following mail related users (as far as I can ascertain)
[tt]mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin[/tt]
"can not chdir(/var/spool/clientmqueue/)ermission denied
Program mode requires special privileges, e.g., root or TrustedUser."
Directory ownership/permissions for the /var/spool area are as shown below:
[tt]drwxr-xr-x 17 root named 4096 Nov 23 22:26 .
drwxr-xr-x 24 root root 4096 Dec 12 16:34 ..
drwxr-xr-x 2 root root 4096 Sep 14 20:08 anacron
drwx------ 3 root root 4096 Sep 14 19:50 at
drwxrwx--- 2 smmsp smmsp 4096 Dec 27 22:35 clientmqueue
drwx------ 2 root root 4096 Nov 25 00:32 cron
drwx--x--- 3 root sys 4096 Dec 14 17:39 cups
drwxr-xr-x 2 root root 4096 May 23 2005 lpd
drwxrwxr-x 2 root mail 4096 Dec 27 22:37 mail
drwx------ 2 root smmsp 4096 Dec 27 22:35 mqueue
drwxr-xr-x 2 rpm rpm 4096 Jul 13 16:44 repackage
drwxrwxrwt 2 root root 4096 May 2 2005 samba
drwxr-x--- 2 squid squid 4096 Oct 20 09:48 squid
drwxr-xr-x 3 root root 4096 Nov 8 18:28 squirrelmail
drwxr-xr-x 2 root root 4096 May 24 2005 up2date
drwxrwxrwt 2 root root 4096 May 27 2005 vbox[/tt]
/etc/passwd contains the following mail related users (as far as I can ascertain)
[tt]mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin[/tt]