sendmail error: can not chdir(/var/spool/mqueue/): Permission denied
Error:
can not chdir(/var/spool/mqueue/): Permission denied
This is because your /var/spool/mqueue directory has a mode of drwx------.
Type chmod 755 /var/spool/mqueue as root to fix this problem.
# 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:
Raw
# chown root.smmsp /usr/sbin/sendmail.sendmail
can not chdir(/var/spool/mqueue/): Permission denied
This is because your /var/spool/mqueue directory has a mode of drwx------.
Type chmod 755 /var/spool/mqueue as root to fix this problem.
# 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:
Raw
# chown root.smmsp /usr/sbin/sendmail.sendmail