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

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

sailbert
Posts: 5
Joined: Fri Sep 21, 2007 7:54 pm
Location: coos bay, or

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

Post 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
along
Posts: 20
Joined: Fri Aug 10, 2007 2:52 pm

Post 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?
Post Reply