Page 1 of 1

Permission Denied, sendmail-mqueue-client.pid -Fix

Posted: Fri Sep 21, 2007 10:11 pm
by sailbert
When starting OpenEMM these error messages appear in /var/log/mail.warn

Sep 21 08:54:06 bounce sendmail[4529]: unable to write pid to /home/openemm/var/run/sendmail-mqueue-client.pid: Permission denied
Sep 21 08:54:06 bounce sendmail[4532]: unable to write pid to /home/openemm/var/run/sendmail-openemm-admin.pid: Permission denied
Sep 21 08:54:06 bounce sendmail[4535]: unable to write pid to /home/openemm/var/run/sendmail-openemm-queue.pid: Permission denied


/home/openemm/var/run/
drwxr-xr-x 2 openemm openemm 4096 2007-09-21 11:45 run

If I change grant more rights to the directory or change the group sendmail complains.

The fix is to remove $BASE from three lines in mailer.sh

$BASE/var/run/sendmail-${cq}.pid
$BASE/var/run/sendmail-openemm-admin.pid
$BASE/var/run/sendmail-openemm-queue.pid

Since the sendmail process owns these files.

I am running OpenEMM 5.3.0
Ubuntu 7.04
Sendmail 8.13

Posted: Wed Oct 03, 2007 1:42 pm
by along
I have had the same errors:
unable to write pid to /home/openemm/var/run/sendmail-openemm-queue.pid: Permission denied: 3 Time(s)
unable to write pid to /home/openemm/var/run/sendmail-openemm-admin.pid: Permission denied: 3 Time(s)

I tried your fix and deleted the $BASE from those three lines, but now I get this:

NOQUEUE: SYSERR(openemm): can not chdir(/var/spool/mqueue/): Permission denied

Any ideas why this might be cropping up now?