Permission Denied, sendmail-mqueue-client.pid -Fix
Posted: Fri Sep 21, 2007 10:11 pm
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
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