this is what is written in /var/qmail/control/conf-smtpd: # In /etc/courier-imap/authdaemonrc add the next line to the end: #authmodulelist="${authmodulelist} relay-ctrl-allow" # Then in /etc/courier-imap/{imapd,imapd-ssl,pop3d,pop3d-ssl} # Add this at the end #PRERUN="${PRERUN} envdir /etc/relay-ctrl relay-ctrl-chdir" PRERUN="blablabla" must be set _only_ in imap and pop3d because imap-ssl and pop-ssl does not need it (being only an extension of imap/pop3d). You also need to put AUTHMODULES="authdaemon relay-ctrl-allow" in /etc/courier-imap/imap and in /etc/courier-imap/pop3d After that the system will happily work. Reproducible: Always Steps to Reproduce: 1. 2. 3. emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25) ================================================================= System uname: 2.4.25 i686 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://gentoo.localsipal ftp://sunsite.cnlab-switch.ch/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/build" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo.localsipal/gentoo-portage" USE="apache2 clearpasswd crypt gd gdbm imap jpeg ldap nls oci8 pam pdflib png samba sse ssl tiff x86 xml xml2 zlib"
forget it :-) i forgot to restart authdaemon.... your instructions are corrected sorry Matteo