Hi I'm using Qmail-Ldap with courier imap-1.03

How can i see through mailog which user is trying to log on:

At this time in mailog i'm getting the always the following lines:

Sep 17 10:54:23 test-mail imapd: LOGIN FAILED, ip=[::ffff:10.0.0.111]
Sep 17 10:54:23 test-mail imapd: DISCONNECTED, ip=[::ffff:10.0.0.111],
headers=0, body=0

i can't understand what is going wrong with the authentication so i would
like to have entries in the mailog like the below:

Sep  8 06:35:34 LearnLinux imapd: Connection, ip=[::ffff:127.0.0.1]
Sep  8 06:35:34 LearnLinux authdaemond.ldap: Nombre de resulat:    1
Sep  8 06:35:34 LearnLinux authdaemond.ldap: DN:
uid=ausman,ou=cubexs,ou=accounts,o=cubenet,c=pk
Sep  8 06:35:34 LearnLinux authdaemond.ldap: after ldap_first_entry
Sep  8 06:35:34 LearnLinux authdaemond.ldap: copy_value
mailMessageStore: /var/qmail/maildirs/ausman/Maildir/
Sep  8 06:35:34 LearnLinux authdaemond.ldap: copy_value
mailMessageStore: /var/qmail/maildirs/ausman/Maildir/
Sep  8 06:35:34 LearnLinux authdaemond.ldap: copy_value cn: Usman
Sep  8 06:35:34 LearnLinux authdaemond.ldap: copy_value userPassword:
{CRYPT}^C@lLoxSB8mmaU
Sep  8 06:35:34 LearnLinux authdaemond.ldap: before callback rc=0
Sep  8 06:35:34 LearnLinux authdaemond.ldap: after callback rc=0
Sep  8 06:35:34 LearnLinux imapd: LOGIN, user=ausman, ip=[::ffff:127.0.0.1]
Sep  8 06:35:34 LearnLinux imapd: LOGOUT, user=ausman, ip=
[::ffff:127.0.0.1], headers=0, body=0

I have /etc/syslog.conf entry like that:
mail.*      /var/log/maillog
daemon.*     /var/log/maillog

but it doesn't work. what i must to get logs like that?

Authentication:

i'm using as username jlazos or even [EMAIL PROTECTED] and
the password is correct.
also the maildir exists and works normally

 i have the following setting in my authldaprc file of the courier imap
 which i'm using.

   LDAP_SERVER             localhost
   LDAP_PORT               389
   LDAP_BASEDN             dc=koutcons,dc=gr
   LDAP_BINDDN             cn=courier,dc=koutcons,dc=gr
   LDAP_BINDPW             couriersecret
   LDAP_TIMEOUT            5
   LDAP_AUTHBIND           0
   LDAP_MAIL               mail
   LDAP_DOMAIN             koutcons.gr
   LDAP_GLOB_UID           vmail
   LDAP_GLOB_GID           vmail
   LDAP_HOMEDIR            mailMessageStore
   LDAP_MAILDIR            mailMessageStore
   LDAP_FULLNAME           cn
   LDAP_CRYPTPW            userPassword

 also the module is authldap in authdaemonrc file.

   authmodulelist="authldap"

Thanx for your time!!!

 Regards,
 John

Reply via email to