#
# Settings for saslauthd daemon
+# Please read /usr/share/doc/sasl2-bin/README.Debian for details.
#
# Should saslauthd run automatically on startup? (default: no)
START=yes
+# Description of this saslauthd instance. Recommended.
+# (suggestion: SASL Authentication Daemon)
+DESC="SASL Authentication Daemon"
+
+# Short name of this saslauthd instance. Strongly recommended.
+# (suggestion: saslauthd)
+NAME="saslauthd"
+
# Which authentication mechanisms should saslauthd use? (default: pam)
#
# Available options in this Debian package:
# A value of 0 will fork a new process for each connection.
THREADS=5
-# Other options (default: -c)
-# See the saslauthd man page for information about these options.
+# Other options (default: -c -m /var/run/saslauthd)
+# Note: You MUST specify the -m option or saslauthd won't run!
+#
+# WARNING: DO NOT SPECIFY THE -d OPTION.
+# The -d option will cause saslauthd to run in the foreground instead of as
+# a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
+# to run saslauthd in debug mode, please run it by hand to be safe.
+#
+# See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
+# See the saslauthd man page and the output of 'saslauthd -h' for general
+# information about these options.
#
# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
-# Note: See /usr/share/doc/sasl2-bin/README.Debian
-OPTIONS="-c"
-PARAMS="-m /var/spool/postfix/var/run/saslauthd"
-PIDFILE="/var/spool/postfix/var/run/saslauthd/saslauthd.pid"
-PWDIR="/var/spool/postfix/var/run/saslauthd"
+OPTIONS="-c -m /var/run/saslauthd"
+OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
[ ! -L /var/run/saslauthd -a -d /var/spool/postfix/var/run/saslauthd -a ! -d /var/run/saslauthd ] && ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd || true