Thursday, December 10, 2009

Sendmail RunAsUser: unknown user smmsp

SkyHi @ Thursday, December 10, 2009
--------------------- sendmail Begin ------------------------



SEVERE ERRORS
-------------

System Error Messages:
/etc/mail/submit.cf: line 432: readcf: option RunAsUser: unknown user smmsp: 1 Time(s)
/etc/mail/submit.cf: line 451: readcf: option TrustedUser: unknown user smmsp: 1 Time(s)

Total SEVERE ERRORS: 2


Solution:

Set the correct permissions and ownerships:

mkdir /var/spool/clientmqueue
chown smmsp:smmsp /var/spool/clientmqueue
chmod 770 /var/spool/clientmqueue
chmod 700 /var/spool/mqueue
chown root.root /var/spool/mqueue
chmod 777 /var/spool/mail
chown root.root /var/spool/mail
chmod 4555 /usr/sbin/sendmail
chown root.smmsp /usr/sbin/sendmail

NOTE: /var/spool/mail must be world read/write, otherwise clients can't open their inbox. The permissions for individual mailboxes for each user should be 600:

-rw------- 1 daboss users 20219537754 2006-03-31 10:15 daboss


Check to make sure of the following:

-r-sr-xr-x root smmsp /usr/sbin/sendmail
drwxrwx--- smmsp smmsp /var/spool/clientmqueue
drwx------ root root /var/spool/mqueue
-r--r--r-- root bin /etc/mail/sendmail.cf
-r--r--r-- root bin /etc/mail/submit.cf