Linux – Error when trying to restart or stop sendmail on CentOS

centoslinuxsendmail

I made some changes on my sendmail.mc file on CentOS. After making the changes, I attempted restarting the sendmail and I got this error.

554 5.0.0 QueueDirectory (Q) option must be set

I then undid the changes I made and I was still getting the same error. Please what could the problem be?

Best Answer

On CentOS 5.5, you'll want to look at /etc/mail/sendmail.cf and make sure that the following option is set:

# queue directory
O QueueDirectory=/var/spool/mqueue