--On Sonntag, 8. Juli 2001 08:46 +1000 Daeron <dae...@optushome.com.au>
wrote:
2) MySQL, this would be the best solution for me but I found that when a
mail client connected or I telnet in to the pop3 server that it didn't
even attempt a mysql lookup of any kind! I only got a "LOGIN FAILED" in
the logs and to the clients, so there's _no_ way to debug its behaviour
without more meaningful feedback.
(anyone able to use couriers mysql module on FreeBSD ? -
Yes, both authuserdb and authmysqld work great on FreeBSD if you get
it to work :)
I had the same problem, authdaemond never contacted mySQL and changed
pop3d/imapd and of course courieresmtpd back to authuserdb only.
After changing the config-files manually to authdaemond/authmysql again
everything started working and has never failed since then...
Check this:
- use only one auth-module (authmysqld in this case), edit pop3/imapd/
esmtpd/authmodulelist to use authdaemond only.
Edit authdaemond to use authmysqld only
- check where your mysql.sock is located or use tcp, and verify again
in authmysqlrc and the mysql-table.
- compile only with gnu, avoid the FreeBSD'ish make and cc.
- check if authdaemond is running, use authtest.
Some flags for configure and gmake:
export CC="/usr/bin/gcc"
export CPPFLAGS="$CPPFLAGS -L/mysql/include"
export LDFLAGS="$LDFLAGS -L/mysql/lib -lmysqlclient"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH /mysql/lib"
umask 022
./configure --prefix=$PREFIX --disable-root-check \
--with-authuserdb --with-authmysql --with-dyn-mysql=/mysql \
--with-authdaemon --with-etcdir=$ETCDIR \
[...]
Roland