Friday, October 2, 2009

Episode 15: Why do I get the error 'can not chdir(/var/spool/clientmqueue/): Permission denied' when restarting Sendmail?

You should first check the permissions on the following files:

# ls -l /usr/sbin/sendmail.sendmail
-r-xr-sr-x root smmsp /usr/sbin/sendmail.sendmail

# ls -l /var/spool
drwxrwx--- smmsp smmsp /var/spool/clientmqueue

If your permissions are mis-matched, you can modify them by doing the following:

# chown root.smmsp /usr/sbin/sendmail.sendmail
# chmod g+s /usr/sbin/sendmail.sendmail
# chown smmsp.smmsp /var/spool/clientmqueue

After changing permissions, you need to restart the Sendmail service, type:

# service sendmail restart

More information is available at:

•Hints how to configure and run Sendmail

No comments:

Post a Comment