]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/commitdiff
move the socket location around slightly and drop in a compatibility symlink
authordon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Tue, 2 Jan 2007 14:42:40 +0000 (14:42 +0000)
committerdon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Tue, 2 Jan 2007 14:42:40 +0000 (14:42 +0000)
debian/README.Debian
debian/spamass-milter.init

index 7933fbba238d7c2734d6fcd7dd483076547389bc..b58575130ae9bb3d95c66187bded745e6247d003 100644 (file)
@@ -11,7 +11,7 @@ something like:
 
  # spamassassin settings
  INPUT_MAIL_FILTER(`spamassassin',
-         `S=local:/var/run/sendmail/spamass.sock, F=,
+         `S=local:/var/run/spamass/spamass.sock, F=,
          T=S:4m;R:4m;E:10m')dnl
 
 Briefly, the F=, tells sendmail to just pass the connection through if
@@ -42,7 +42,7 @@ You need to edit /etc/postfix/main.cf and configure smptpd_milters so
 that postfix connects to the spamass-milter socket. Something like:
 
   # spamass-milter configuration
-  smtpd_milters = unix:/var/run/postfix/spamass.sock
+  smtpd_milters = unix:/var/spool/postfix/spamass/spamass.sock
 
 should work. See http://www.postfix.org/MILTER_README.html or
 /usr/share/doc/postfix/MILTER_README.gz (in postfix-doc) for
@@ -90,4 +90,4 @@ q
 
 and send the results along with your bug report using reportbug.
 
- -- Don Armstrong <don@debian.org>, Fri, 13 Oct 2006 01:03:04 -0700
+ -- Don Armstrong <don@debian.org>, Tue,  2 Jan 2007 06:40:24 -0800
index 63aea5938be35a86aec980a794a661c25f1d60ab..7993a972464f3b337977e47754960b3fb3b49e36 100644 (file)
@@ -33,7 +33,7 @@
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/spamass-milter
-SOCKET=/var/run/sendmail/spamass.sock
+SOCKET=/var/run/spamass/spamass.sock
 PIDFILE=/var/run/spamass/spamass.pid
 DESC="Sendmail milter plugin for SpamAssassin"
 
@@ -77,6 +77,12 @@ start() {
            chown "$RUNAS" $(dirname $PIDFILE);
        fi;
     fi;
+    # Drop in a compatibility symlink for the old sendmail socket location
+    if [ -d /var/run/sendmail ] && [ -n "$RUNAS" ] && 
+       [ "$SOCKET" == "/var/run/spamass/spamass.sock" ] && 
+       ! [ -e /var/run/sendmail/spamass.sock ]; then
+       ln $SOCKET /var/run/sendmail/spamass.sock;
+    fi;
     /bin/rm -f $SOCKET
     start-stop-daemon --start -p $PIDFILE $CHUID --exec $DAEMON -- -P $PIDFILE -f -p $SOCKET $OPTIONS
     if [ -n "$SOCKETMODE" ]; then