Your message dated Mon, 21 Apr 2008 11:44:41 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#477184: Patch to improve /etc/default/spamass-milter
and /etc/init.d script
has caused the Debian Bug report #477184,
regarding Patch to improve /etc/default/spamass-milter and /etc/init.d script
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
477184: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477184
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: spamass-milter
Version: 0.3.1-2
Severity: wishlist
Tags: patch
Thoses patch improve /etc/default/spamass-milter to allow to choose an
alternative socket and to choose an user to run as.
/etc/init.d/spamass-milter is also improved to create a /var/run/spamass
subdirectory and to launch spamass-milter as specified user.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable'), (100, 'oldstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.13.skc7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- spamass-milter.default.orig 2008-04-16 12:46:02.000000000 +0200
+++ spamass-milter.default 2008-04-16 12:49:25.000000000 +0200
@@ -12,3 +12,10 @@
# Do not modify Subject:, Content-Type: or body.
#OPTIONS="-m"
+
+# If you want to set an alternate socket, do so here (remember to change
+# sendmail.mc for Sendmail and main.cf for Postfix):
+#SOCKET="/var/run/sendmail/spamass.sock"
+
+# User spamass-milter run as (default to root)
+#RUNAS=spamd
--- spamass-milter.init.orig 2008-04-16 12:46:06.000000000 +0200
+++ spamass-milter.init 2008-04-21 18:16:11.000000000 +0200
@@ -34,11 +34,12 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/spamass-milter
SOCKET=/var/run/sendmail/spamass.sock
-PIDFILE=/var/run/spamass.pid
+PIDFILE=/var/run/spamass/spamass.pid
DESC="Sendmail milter plugin for SpamAssassin"
DEFAULT=/etc/default/spamass-milter
OPTIONS=""
+RUNAS=root
test -x $DAEMON || exit 0
@@ -46,6 +47,16 @@
. $DEFAULT;
fi;
+# Fix owner on /var/run/spamass/
+PIDDIR=$(dirname $PIDFILE)
+if [ $PIDDIR = "/var/run/spamass" ]; then
+ if [ ! -d $PIDDIR ]; then
+ mkdir $PIDDIR
+ fi
+ chown -h $RUNAS $PIDDIR
+fi
+
+# Exit on error
set -e
case "$1" in
@@ -55,7 +66,7 @@
if [ ! -d $(basename $SOCKET) ]; then
mkdir -p $(basename $SOCKET);
fi;
- start-stop-daemon --start -p $PIDFILE --exec $DAEMON -- -P $PIDFILE -f
-p $SOCKET $OPTIONS
+ start-stop-daemon --start --chuid $RUNAS -p $PIDFILE --exec $DAEMON --
-P $PIDFILE -f -p $SOCKET $OPTIONS
echo "${DAEMON}"
;;
@@ -74,7 +85,7 @@
start-stop-daemon --stop -p $PIDFILE --signal 3 --exec $DAEMON
/bin/sleep 5s
/bin/rm -f $SOCKET
- start-stop-daemon --start -p $PIDFILE --exec $DAEMON -- -P $PIDFILE -f
-p $SOCKET $OPTIONS
+ start-stop-daemon --start --chuid $RUNAS -p $PIDFILE --exec $DAEMON --
-P $PIDFILE -f -p $SOCKET $OPTIONS
echo "${DAEMON}"
--- End Message ---
--- Begin Message ---
Version: 0.3.1-3
On Mon, 21 Apr 2008, Sebastien Koechlin wrote:
> Package: spamass-milter
> Version: 0.3.1-2
> Severity: wishlist
> Tags: patch
>
> Thoses patch improve /etc/default/spamass-milter to allow to choose an
> alternative socket and to choose an user to run as.
>
> /etc/init.d/spamass-milter is also improved to create a /var/run/spamass
> subdirectory and to launch spamass-milter as specified user.
These patches are alread superfluous as of 0.3.1-3.
Don Armstrong
--
Cheop's Law: Nothing ever gets built on schedule or within budget.
-- Robert Heinlein _Time Enough For Love_ p242
http://www.donarmstrong.com http://rzlab.ucr.edu
--- End Message ---