I get the following errors:
Shutting down sm-client: [FAILED]
Shutting down sendmail: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
When restarting, sm-client always fails with /var/log/maillog entry that says:
sm-msp-queue[23066]: unable to write pid to /var/run/sm-client.pid: Permission denied
I've checked permissions and eveything looks fine but correct me if I'm wrong:
/var/run = drwxr-xr-x 21 root root 4096 Aug 14 16:05
/var/run/sm-client.pid = -rw-r--r-- 1 smmsp smmsp 0 Aug 14 16:05
Also, in maillog, there's this error every time an email is sent, or submitted via cgi:
sendmail[798]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/mqueue/): Permission denied
Permission in /var/spool:
drwxr-xr-x 20 root root 4096 Aug 11 06:49 .
drwxr-xr-x 30 root root 4096 Aug 11 07:15 ..
drwxrwx--- 2 smmsp smmsp 20480 Jul 20 04:21 clientmqueue
drwx------ 2 root apache 24576 Aug 14 16:22 mqueue
This is keeping this small-time server from accepting many emails.