/var/run/milter-greylist perms issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
milter-greylist (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
Bug Description
Binary package hint: milter-greylist
I just upgraded from Gutsy to Hardy via the alternate CD. In the process, a previously running sendmail installation broke. The problem is the perissions on /var/run/
root@dragon:~# service sendmail start
* Starting Mail Transport Agent (MTA) sendmail 451 4.0.0 /etc/mail/
(Why Sendmail reports OK I don't know, but that's another issue.)
The workaround is simple:
root@dragon:~# cd /var/run/
root@dragon:
total 0
drwxrwxr-x 2 root greylist 60 2008-05-02 17:43 .
drwxr-xr-x 22 root root 1000 2008-05-03 03:33 ..
srwxr-xr-x 1 greylist greylist 0 2008-05-02 17:43 milter-
root@dragon:
root@dragon:
total 0
drwxr-xr-x 2 root greylist 60 2008-05-02 17:43 .
drwxr-xr-x 22 root root 1000 2008-05-03 03:33 ..
srwxr-xr-x 1 greylist greylist 0 2008-05-02 17:43 milter-
root@dragon:
Thanks!
ps:
root@dragon:~# pre milter
libmilter1-
milter-
root@dragon:~#
I too have encountered this issue and did not find the chmod command mentioned above to be of much help. A better way in my view is to fix the init.d script. The directory containing the socket file should be owned by the user running milter-greylist only writeable by that user.
Around line 61 of /etc/init. d/milter- greylist I changed it to read:
if [ ! -d /var/run/$PNAME ]; then
mkdir /var/run/$PNAME
chown greylist /var/run/$PNAME
fi
This is in line with the recommendations contained in the README which ships with the milter-greylist sources:
"The default directory is /var/milter- greylist and it should be chmod 0755 and owner smmsp, if you are running the milter as smmsp."