I had a problem where I couldn’t send mail with squirrelmail. Whenever I hit the send button, I got an error that said:
Server replied: 71 Can't execute command '/usr/sbin/sendmail -i -t -fmailaddress@someone.com'.
So, I then tried to run the command as a regular user at the command line and I got this error:
NOQUEUE: SYSERR(): can not write to queue directory > /var/spool/clientmqueue/ (RunAsGid=0, required=25): Permission denied
It turns out that my smmsp user had uid=51 and gid=51, but in /etc/group, the smmsp group was gid=25. To fix this, I simply changed the gid of the smmsp user to 25 and restarted sendmail. That fixed things.