5 messages in net.sourceforge.lists.courier-usersRE: [courier-users] courier+mysql pro...
FromSent OnAttachments
Adrian CanevaFeb 12, 2002 7:01 am 
Roland SchneiderFeb 12, 2002 11:02 am 
Adrian CanevaFeb 12, 2002 11:57 am 
Roland SchneiderFeb 13, 2002 12:59 am 
Adrian CanevaFeb 14, 2002 8: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] courier+mysql problemActions...
From:Adrian Caneva (acan@nexttech.com.ar)
Date:Feb 12, 2002 11:57:40 am
List:net.sourceforge.lists.courier-users

Hi Ronald,

The mysql-query-log would log each connect and query.

The strange thing is that mysql.log is not showing any connection nor query from courier daemons.

Utilities authtest and authinfo that you mentioned seem not to be included in Debian packages. Is there a way to compile only those tools ?

If yes I'd start with commenting out MYSQL_SOCKET (libmysqlclient will

provide the default) or even use tcp instead of a socket. I commented out, but it's the same.

Thank you very much for your help, Adrian

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Roland Schneider Sent: Martes, 12 de Febrero de 2002 03:52 p.m. To: cour@lists.sourceforge.net Subject: Re: [courier-users] courier+mysql problem

--Adrian Caneva wrote on 12.02.2002 12:02 -0300:

Hi, I'm trying to move courier authentication to a mysql backend database. I installed Debian packages described forward, did the configuration and the only log message I receive is at mail.log=LOGIN FAILED. mysql.log is empty so I think authdaemon->authmysql is not even reaching the database.

The mysql-query-log would log each connect and query.

Check with autinfo (from the source) if authdaemon/authmysql is really compiled into your package.

If yes I'd start with commenting out MYSQL_SOCKET (libmysqlclient will provide the default) or even use tcp instead of a socket.

And do a `killall -v -m "authdaemond\..*"` between just in case `authdaemond stop` leaves some ghosts behind.

If all fails recompile --without-authdaemon --with-mysql and strace authmysql:

/usr/local/bin/strace -ffrTv -a 128 -s 128 ./authtest testuser

The utility authtest will check if a user is found in the db, without need for a password, its even useful without strace.

[...]

# Dumping data for table 'aliases'

INSERT INTO aliases VALUES

('testuser','test',101,102,'/var/spool/postfix/virtual/virtual_domain/testus

er/','/','test@virtual_domain');

$HOME of your testuser is set to /. This directory belongs to someone else and you really dont want to do that anyway.