<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I am using sendmail 8.13.8-8 with Gmail SMTP. <br>
sendmail works fine with OSSEC or test from command line, but it has
problem with Nagios:<br>
<br>
<span class="postbody"><font color="red">sendmail[9026]: NOQUEUE:
SYSERR(nagios): can not chdir(/var/spool/clientmqueue/): Permission
denied</font>
<br>
<br>
Add the <b>smmsp</b> user to <b>nagios</b> group, I get the another
error:<br>
<br>
</span><span class="postbody"><font color="red">sendmail[26435]:
NOQUEUE:
SYSERR(nagios): can not write to queue directory
/var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied</font>
<br>
  <br>
The permissions of related files:<br>
<br>
</span><span class="postbody">
<pre class="incoded">-rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail
 -rw-r--r-- 1 root root 59061 Jun 30 11:23 sendmail.cf
 -rw-r--r-- 1 root root 40336 Jun 30 12:18 submit.cf
 drwxrwx--- 2 smmsp smmsp 114688 Jul 22 22:00 /var/spool/clientmqueue/
 drwx------ 2 root mail 4096 Jul 22 22:24 /var/spool/mqueue/
</pre>
</span>Nagios only send mail if I changed the permission of <b>/var/spool/clientmqueue</b>
to 777, but it is a dirty solution and I got the warning:<br>
<br>
<span class="postbody"><font color="orange">sendmail[30462]: dangerous
permissions=40777 on queue directory /var/spool/clientmqueue/</font>
<br>
<br>
PS: Nagios on the another server works fine with 770 permission of
/var/spool/clientmqueue.<br>
<br>
Can anyone help me?<br>
</span>
</body>
</html>