WARNING: RunAsUser for MSP ignored, check group ids (egid=0, want=51)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
I’m running Redhat Enterprise Linux, and this warning appears when I tried to send out emails from command-line with sendmail. This error message doesn’t appears in maillog, since the mail hasn’t handed over to MTA.
I searched around, and noticed this issue is kind of common. The root cause is related to file permission. The application “/usr/sbin/sendmail.sendmail” needs to have an ownership ‘root’, and its group owner need to be “smmsp”, the same as “/var/spool/clientmqueue“. Also “/usr/sbin/sendmail.sendmail” need to have sgid set, so that it can run in group “smmsp” mode to do preprocessing.
Here is the right permission for the dir and command,
-rwxr-sr-x 1 root smmsp 775064 Jul 28 2011 /usr/sbin/sendmail.sendmail drwxrwx--- 2 smmsp smmsp 4096 Jun 23 08:00 /var/spool/clientmqueue