5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Can Courier-Imap ...
FromSent OnAttachments
DaeronJul 6, 2001 5:33 pm 
DaeronJul 7, 2001 3:45 pm 
Roland SchneiderJul 8, 2001 12:07 am 
DaeronJul 10, 2001 6:50 pm 
Roland SchneiderJul 11, 2001 5:32 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Can Courier-Imap work on FreeBSD?Actions...
From:Roland Schneider (rol@serv.ch)
Date:Jul 8, 2001 12:07:06 am
List:net.sourceforge.lists.courier-users

--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