Your message dated Tue, 19 Aug 2025 14:02:11 -0700
with message-id <6409986.1B3tZ46Xf9@soren-desktop>
and subject line courier-authdaemon: Postfix - SASL authentication failure
has caused the Debian Bug report #729900,
regarding courier-authdaemon: Postfix - SASL authentication failure
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.)


-- 
729900: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729900
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: courier-authdaemon
Version: 0.63.0-6+b1
Severity: minor
Tags: patch

Dear Maintainer,

with updating system from Debian 6.0.8 to 7.2 the Postfix
authentication don't work. courier-authdaemon authenticate 
the system's users that are used to send email from external
on SMTP connections.
The postfix logs reporting:

postfix/smtpd[]: warning: SASL authentication failure: cannot connect to 
Courier authdaemond: Connection refused
postfix/smtpd[]: warning: X[Y.Z.J.K]: SASL LOGIN authentication failed: generic 
failure

The solution is:

rm -r /var/run/courier/authdaemon
ln -s /var/spool/postfix/var/run/courier/authdaemon /var/run/courier

because postfix, in the standard installation, is in a chroot environment.
I propose a solution that make the job automagically.
Modify the courier-authdaemon start up script in the following manner:

~# diff -c /etc/init.d/courier-authdaemon  /etc/init.d/courier-authdaemon_orig 
*** /etc/init.d/courier-authdaemon      2013-11-18 18:48:58.868867113 +0100
--- /etc/init.d/courier-authdaemon_orig 2012-06-09 18:45:14.000000000 +0200
***************
*** 35,50 ****
          # set file context for SELinux (#668564)
          [ -x /sbin/restorecon ] && /sbin/restorecon $rundir_courier
        fi
- #== Postfix chroot ==#
- if _PFIX=/etc/postfix/master.cf && [ -s $_PFIX ] &&
-      [ "$(/usr/bin/awk '$1~/^smtp$/ && $8~/smtpd/ {print $5}
-                        ' $_PFIX)" != "n" ] &&
-      _PFIX=/etc/postfix/sasl/smtpd.conf && 
-      [ ! -L $rundir ]
- then
-   /bin/ln -s /var/spool/postfix/$rundir $rundir_courier
- fi
- #-- Postfix chroot --#
        if [ ! -d "$rundir" ]; then
                mkdir -m 0750 $rundir 
                chown daemon:daemon $rundir
--- 35,40 ----

Thank you, Guido.

-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages courier-authdaemon depends on:
ii  courier-authlib  0.63.0-6+b1
ii  lsb-base         4.1+Debian8+deb7u1

courier-authdaemon recommends no packages.

courier-authdaemon suggests no packages.

-- Configuration Files:
/etc/courier/authdaemonrc [Errno 13] Permesso negato: 
u'/etc/courier/authdaemonrc'
/etc/init.d/courier-authdaemon changed:
prefix="/usr"
exec_prefix=${prefix}
sysconfdir="/etc/courier"
sbindir="${exec_prefix}/sbin"
daemonscript="${sbindir}/authdaemond"
rundir_courier="/var/run/courier"
rundir="/var/run/courier/authdaemon"
pidfile="${rundir}/pid"
. /lib/lsb/init-functions
if [ ! -x $daemonscript ]; then
        exit 0
fi
case "$1" in
start)
        # Start daemon.
        cd /
        log_daemon_msg "Starting Courier authentication services" "authdaemond"
        if [ ! -d "$rundir_courier" ]; then
                mkdir -m 0775 $rundir_courier
                chown daemon:daemon $rundir_courier
        # set file context for SELinux (#668564)
        [ -x /sbin/restorecon ] && /sbin/restorecon $rundir_courier
        fi
if _PFIX=/etc/postfix/master.cf && [ -s $_PFIX ] &&
     [ "$(/usr/bin/awk '$1~/^smtp$/ && $8~/smtpd/ {print $5}
                       ' $_PFIX)" != "n" ] &&
     _PFIX=/etc/postfix/sasl/smtpd.conf && 
     [ ! -L $rundir ]
then
  /bin/ln -s /var/spool/postfix/$rundir $rundir_courier
fi
        if [ ! -d "$rundir" ]; then
                mkdir -m 0750 $rundir 
                chown daemon:daemon $rundir
        # set file context for SELinux (#668564)
        [ -x /sbin/restorecon ] && /sbin/restorecon $rundir
        fi
        $daemonscript start
        log_end_msg 0
        ;;
stop)
        # Stop daemon.
        cd /
        log_daemon_msg "Stopping Courier authentication services" "authdaemond"
        $daemonscript stop
        log_end_msg 0
    ;;
restart|force-reload)
        $0 stop
        $0 start
    ;;
status)
        status_of_proc -p "$pidfile" "" "authdaemond" && exit 0 || exit $?
    ;;
*)
        echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
        exit 2
        ;;
esac
exit 0


-- no debconf information

--- End Message ---
--- Begin Message ---
As there was no response to my previous email, I am going to close this bug 
report.  I assume the problem has already been fixed sometime during the 
intervening years.  If anyone is still having this issue they should feel free 
to reopen this bug report.

-- 
Soren Stoutner
[email protected]

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply via email to