+if [ -e /etc/mail/sendmail.cf ] && egrep -q 'X.+S=local:/var/run/sendmail/spamass\.sock' /etc/mail/sendmail.cf; then
+ SOCKET=/var/run/sendmail/spamass.sock
+ SOCKETMODE=""
+ SOCKETOWNER=""
+ RUNAS=""
+ echo "WARNING: You are using the old location of spamass.sock. Change your input filter to use";
+ echo "/var/run/spamass/spamass.sock so spamass-milter can run as nobody";
+fi;
+
+# If /usr/sbin/postfix exists, set up the defaults for a postfix install
+# These can be overridden in /etc/default/spamass-milter
+if [ -x /usr/sbin/postfix ]; then
+ SOCKET="/var/spool/postfix/spamass/spamass.sock"
+ PIDFILE="/var/spool/postfix/spamass/spamass.pid"
+ SOCKETOWNER="postfix:postfix"
+ SOCKETMODE="0660"
+fi;
+