Deutsch| English
  #1  
Alt 21.06.2011, 06:36
Neuer Benutzer
 
Registriert seit: 13.06.2011
Beiträge: 20
Standard Problem mit authdaemonrc

Moin, ich habe ein Prob mit maillogin bzw. Abfrage des PW, durch courier, in der mySQL Datenbank.

Ich bekomme diese Fehlermeldungen (habe debuglevel 2 beim authdaemonrc gesetzt:
Code:
Jun 21 04:42:31 robo46 imapd: Connection, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 04:42:31 robo46 authdaemond: received auth request, service=imap, authtype=login
Jun 21 04:42:31 robo46 authdaemond: authmysql: trying this module
Jun 21 04:42:31 robo46 authdaemond: authmysqllib: connected. Versions: header 50149, client 50157, server 50157
Jun 21 04:42:31 robo46 authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/mailusers", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", name, "" FROM virtual_users WHERE email = 'name_des_benutzers@example2.com'
Jun 21 04:42:31 robo46 authdaemond: mysql_query failed, reconnecting: Unknown column 'name' in 'field list'
Jun 21 04:42:31 robo46 authdaemond: authmysqllib: connected. Versions: header 50149, client 50157, server 50157
Jun 21 04:42:32 robo46 authdaemond: mysql_query failed second time, giving up: Unknown column 'name' in 'field list'
Jun 21 04:42:32 robo46 authdaemond: authmysql: TEMPFAIL - no more modules will be tried
Jun 21 04:42:32 robo46 imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 04:42:32 robo46 imapd: authentication error: Input/output error
Meine authmysqlrc sieht so aus:
Code:
MYSQL_SERVER            127.0.0.1
MYSQL_USERNAME          vmailuser
MYSQL_PASSWORD          *******
MYSQL_PORT              3306
MYSQL_OPT               0
MYSQL_DATABASE          vmserver
MYSQL_USER_TABLE        vusers
MYSQL_CRYPT_PWFIELD     password
MYSQL_UID_FIELD         5000
MYSQL_GID_FIELD         5000
MYSQL_LOGIN_FIELD       email
MYSQL_HOME_FIELD        "/home/vmailusers"
MYSQL_NAME_FIELD        name
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
Eine Kolumne "name" gibt es in meiner mysql datenbank nicht.

Und die authdaemonrc:
Code:
authmodulelist="authmysql"
authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom authpipe"
daemons=5
authdaemonvar=/var/run/courier/authdaemon
DEBUG_LOGIN=2
DEFAULTOPTIONS=""
LOGGEROPTS=""

Geändert von fLuffy (21.06.2011 um 06:46 Uhr).
Mit Zitat antworten
  #2  
Alt 21.06.2011, 08:16
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

Ändere mal in der authmysqlrc die Zeile:

MYSQL_NAME_FIELD name

in

MYSQL_NAME_FIELD email

und start dann then authdaemon neu. Oder aber Du fügst eine Spalte "name" in der mysql DB hinzu.
Mit Zitat antworten
  #3  
Alt 21.06.2011, 08:27
Neuer Benutzer
 
Registriert seit: 13.06.2011
Beiträge: 20
Standard

Gemacht. Jetzt kriege ich sowas hier:
Code:
Jun 21 08:23:32 robo46 imapd: Connection, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 08:23:32 robo46 authdaemond: received auth request, service=imap, authtype=login
Jun 21 08:23:32 robo46 authdaemond: authmysql: trying this module
Jun 21 08:23:32 robo46 authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmailusers", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", email, "" FROM vusers WHERE email = 'dummy'
Jun 21 08:23:32 robo46 authdaemond: zero rows returned
Jun 21 08:23:32 robo46 authdaemond: no password available to compare
Jun 21 08:23:32 robo46 authdaemond: authmysql: REJECT - try next module
Jun 21 08:23:32 robo46 authdaemond: FAIL, all modules rejected
Jun 21 08:23:32 robo46 imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 08:23:38 robo46 authdaemond: received auth request, service=imap, authtype=login
Jun 21 08:23:38 robo46 authdaemond: authmysql: trying this module
Jun 21 08:23:38 robo46 authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmailusers", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", email, "" FROM vusers WHERE email = 'dummy'
Jun 21 08:23:38 robo46 authdaemond: zero rows returned
Jun 21 08:23:38 robo46 authdaemond: no password available to compare
Jun 21 08:23:38 robo46 authdaemond: authmysql: REJECT - try next module
Jun 21 08:23:38 robo46 authdaemond: FAIL, all modules rejected
Jun 21 08:23:38 robo46 imapd: LOGIN FAILED, user=dummy, ip=[::ffff:xx.xxx.xxx.22]
Mit Zitat antworten
  #4  
Alt 21.06.2011, 09:45
Neuer Benutzer
 
Registriert seit: 13.06.2011
Beiträge: 20
Standard

Ich habe festgestellt, daß ich mich falsch einloggte. Mit "dummy" statt "dummy@example1.com". Wenn ich mich mit "dummy@example1.com" anmelde, dann kommt aber dieses hier:
Code:
Jun 21 09:34:18 robo46 imapd: Connection, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 09:34:18 robo46 authdaemond: received auth request, service=imap, authtype=login
Jun 21 09:34:18 robo46 authdaemond: authmysql: trying this module
Jun 21 09:34:18 robo46 authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmailusers", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", email, "" FROM vusers WHERE email = 'dummy@example1.com'
Jun 21 09:34:18 robo46 authdaemond: password matches successfully
Jun 21 09:34:18 robo46 authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 09:34:18 robo46 authdaemond: authmysql: clearpasswd=<null>, passwd=**************
Jun 21 09:34:18 robo46 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 09:34:18 robo46 authdaemond: Authenticated: clearpasswd=dummypassword, passwd=**************
Jun 21 09:34:18 robo46 imapd: chdir example1.com/dummy/: No such file or directory
Jun 21 09:34:18 robo46 imapd: dummy@example1.com: No such file or directory
Jun 21 09:34:18 robo46 imapd: Connection, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 09:34:19 robo46 authdaemond: received auth request, service=imap, authtype=login
Jun 21 09:34:19 robo46 authdaemond: authmysql: trying this module
Jun 21 09:34:19 robo46 authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmailusers", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", email, "" FROM vusers WHERE email = 'dummy@example1.com'
Jun 21 09:34:19 robo46 authdaemond: password matches successfully
Jun 21 09:34:19 robo46 authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 09:34:19 robo46 authdaemond: authmysql: clearpasswd=<null>, passwd=**************
Jun 21 09:34:19 robo46 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 09:34:19 robo46 authdaemond: Authenticated: clearpasswd=dummypassword, passwd=**************
Jun 21 09:34:19 robo46 imapd: chdir example1.com/dummy/: No such file or directory
Jun 21 09:34:19 robo46 imapd: dummy@example1.com: No such file or directory
Das scheint irgendein imapd fehler zu sein.

In der imapd steht:
Code:
ADDRESS=0
PORT=143
MAXDAEMONS=40
MAXPERIP=20
PIDFILE=/var/run/courier/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
IMAP_KEYWORDS=1
IMAP_ACL=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
IMAP_PROXY=0
IMAP_PROXY_FOREIGN=0
IMAP_IDLE_TIMEOUT=60
IMAP_MAILBOX_SANITY_CHECK=1
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_UMASK=022
IMAP_ULIMITD=131072
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/etc/courier/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=YES
MAILDIRPATH=/home/vmailusers/Maildir
AUTHMODULES="authdaemon"

Geändert von fLuffy (21.06.2011 um 10:12 Uhr).
Mit Zitat antworten
  #5  
Alt 21.06.2011, 09:55
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

Du musst erstmal eine Email an den Account senden, bevor Du Dich per imap einloggen kannst. Denn sonst existiert das maildir nicht.
Mit Zitat antworten
  #6  
Alt 21.06.2011, 10:08
Neuer Benutzer
 
Registriert seit: 13.06.2011
Beiträge: 20
Standard

Habs gemacht, aber keine Verbesserung. Naja, eine schon - der meldet sich offenbar schon an und das pw wird akzeptiert, aber irgendwas mit den directory stimmt nicht:
Code:
Jun 21 10:01:53 robo46 imapd: dummy@example1.com: No such file or directory
Jun 21 10:01:53 robo46 imapd: Connection, ip=[::ffff:xx.xxx.xxx.22]
Jun 21 10:01:53 robo46 authdaemond: received auth request, service=imap, authtype=login
Jun 21 10:01:53 robo46 authdaemond: authmysql: trying this module
Jun 21 10:01:53 robo46 authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmailusers", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", email, "" FROM vusers WHERE email = 'dummy@example1.com'
Jun 21 10:01:53 robo46 authdaemond: password matches successfully
Jun 21 10:01:53 robo46 authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 10:01:53 robo46 authdaemond: authmysql: clearpasswd=<null>, passwd=*************
Jun 21 10:01:53 robo46 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 10:01:53 robo46 authdaemond: Authenticated: clearpasswd=dummypassword, passwd=*************
Jun 21 10:01:53 robo46 imapd: chdir example1.com/dummy/: No such file or directory
Jun 21 10:01:53 robo46 imapd: dummy@example1.com: No such file or directory
Eigentlich das gleiche wie vorhin...
Mit Zitat antworten
  #7  
Alt 21.06.2011, 10:24
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

Dann wurde das verzeichnis nicht angelegt. Sieh mal im mail log nach, welche Fehler Du beim senden einer Nachricht an das postfach erhältst.
Mit Zitat antworten
  #8  
Alt 21.06.2011, 12:00
Neuer Benutzer
 
Registriert seit: 13.06.2011
Beiträge: 20
Standard

hi, eigentlich nicht viel anders:
Code:
Jun 21 11:57:49 robo46 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 11:57:49 robo46 authdaemond: Authenticated: clearpasswd=dummypassword, passwd=*************
Jun 21 11:57:49 robo46 imapd: chdir example1.com/dummy/: No such file or directory
Jun 21 11:57:49 robo46 imapd: dummy@example1.com: No such file or directory
Jun 21 11:57:50 robo46 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=example1.com/dummy/, quota=<null>, options=<null>
Jun 21 11:57:50 robo46 authdaemond: Authenticated: clearpasswd=dummypassword, passwd=*************
Jun 21 11:57:50 robo46 imapd: chdir example1.com/dummy/: No such file or directory
Jun 21 11:57:50 robo46 imapd: dummy@example1.com: No such file or directory
So sieht das Verzeichnis aus:
Code:
ls -li /home/vmailusers/Maildir/example1.com/dummy/
total 28K
17244331 drwx------ 2 vuser vuser 4.0K May 21 01:12 cur
17244332 drwx------ 2 vuser vuser  20K Jun  6 16:43 new
17244329 drwx------ 2 vuser vuser 4.0K Jun  6 16:43 tmp

Geändert von fLuffy (21.06.2011 um 12:03 Uhr).
Mit Zitat antworten
  #9  
Alt 21.06.2011, 13:09
Administrator
 
Registriert seit: 08.08.2007
Beiträge: 8.823
Standard

versuch mal diese Änderung in der authdaemonrc:

MYSQL_MAILDIR_FIELD CONCAT('/home/vmailusers/',SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
Mit Zitat antworten
  #10  
Alt 21.06.2011, 18:01
Neuer Benutzer
 
Registriert seit: 13.06.2011
Beiträge: 20
Standard

Du meinst in der "authmysqlrc" oder?

Wenn ich das in der "authmysqlrc" ändere, dann verändert sich leider nichts. Es kommt exakt die gleiche Fehlermeldung wie zuletzt.

Code:
Jun 21 18:03:59 robo46 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmailusers, address=dummy@example1.com, fullname=dummy@example1.com, maildir=/home/vmailusers/example1.com/dummy/, quota=<null>, options=<null>
Jun 21 18:03:59 robo46 authdaemond: Authenticated: clearpasswd=dummypassword, passwd=***********
Jun 21 18:03:59 robo46 imapd: chdir /home/vmailusers/example1.com/dummy/: No such file or directory
Jun 21 18:03:59 robo46 imapd: dummy@example1.com: No such file or directory
Mir fällt aber etwas neues auf. In der Fehlermeldung steht jetzt:
Code:
chdir /home/vmailusers/example1.com/dummy/:
Der Pfad ist aber:
Code:
/home/vmailusers/Maildir/example1.com/dummy/

Geändert von fLuffy (21.06.2011 um 18:09 Uhr).
Mit Zitat antworten
Antwort


Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an



Alle Zeitangaben in WEZ +2. Es ist jetzt 22:02 Uhr.


Powered by vBulletin® Version 3.8.1 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0