LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-15-2014, 07:55 AM   #1
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
Exclamation postfix dovecot mysql auth error


Hi everybody,
I run debian wheezy and i followeb the howto on workaround dot org on how to setup a mail provider with postfix dovecot mysql rouncube etc.
The setup looks allright looking at postfix/mysql side all the postmap queries were positive but i have issues on authentication from abroad using thunderbird client ,the local one also was positive .I show you some logs first dovecot imapd side: (sorry for the debug enabled)

Code:
Sep 15 07:24:43 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Sep 15 07:24:43 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Sep 15 07:24:43 auth: Debug: auth client connected (pid=19816)
Sep 15 14:42:45 auth: Debug: auth client connected (pid=20283)
Sep 15 14:42:47 auth: Debug: client in: AUTH	1	PLAIN	service=imap	secured	session=dNbU+BkD1QCwCmTl	lip=1.2.3.4	rip=5.6.7.8	lport=993	rport=52693
Sep 15 14:42:47 auth: Debug: client out: CONT	1	
Sep 15 14:42:47 auth: Debug: client in: CONT	1	AGFkbWluAHVyZTNGVjJaNGt5RDRrN0c3S0RB
Sep 15 14:42:47 auth-worker(20284): Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Sep 15 14:42:47 auth-worker(20284): Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Sep 15 14:42:47 auth-worker(20284): Debug: sql(admin,5.6.7.8): query: SELECT email as user, password FROM virtual_users WHERE email='admin';
Sep 15 14:42:49 auth: Debug: client out: FAIL	1	user=admin
Sep 15 14:42:49 auth: Debug: client in: AUTH	2	LOGIN	service=imap	secured	session=dNbU+BkD1QCwCmTl	lip=1.2.3.4	rip=5.6.7.8	lport=993	rport=52693
Sep 15 14:42:53 auth: Debug: client out: CONT	2	VXNlcm5hbWU6
Sep 15 14:42:54 auth: Debug: client in: CONT	2	YWRtaW4=
Sep 15 14:42:54 auth: Debug: client out: CONT	2	UGFzc3dvcmQ6
Sep 15 14:42:54 auth: Debug: client in: CONT	2	dXJlM0ZWMlo0a3lENGs3RzdLREE=
Sep 15 14:42:54 auth-worker(20284): Debug: sql(admin,5.6.7.8): query: SELECT email as user, password FROM virtual_users WHERE email='admin';
Sep 15 14:42:56 auth: Debug: client out: FAIL	2	user=admin
Sep 15 14:42:57 auth: Debug: client in: AUTH	3	PLAIN	service=imap	secured	session=dNbU+BkD1QCwCmTl	lip=1.2.3.4	rip=5.6.7.8	lport=993	rport=52693	resp=AGFkbWluAHVyZTNGVjJaNGt5RDRrN0c3S0RB
Sep 15 14:43:01 auth-worker(20284): Debug: sql(admin,5.6.7.8): query: SELECT email as user, password FROM virtual_users WHERE email='admin';
Sep 15 14:43:03 auth: Debug: client out: FAIL	3	user=admin
these are logs from /var/log/mail.log:

Code:
Sep 15 14:47:22 myserver dovecot: auth-worker(20305): mysql(127.0.0.1): Connected to database mailserver
Sep 15 14:47:22 myserver dovecot: auth-worker(20305): sql(admin,5.6.7.8): unknown user
Sep 15 14:47:28 myserver dovecot: auth-worker(20305): sql(admin,5.6.7.8): unknown user
Sep 15 14:47:35 myserver dovecot: auth-worker(20305): sql(admin,5.6.7.8): unknown user
Sep 15 14:47:41 myserver dovecot: imap-login: Disconnected (auth failed, 3 attempts in 19 secs): user=<admin>, method=PLAIN, rip=5.6.7.8, lip=1.2.3.4, TLS, session=<pD04CRoDkwCwCmTl>
My suspect is how mysql reconizes users, if just by user names or by usernames and @domain .If you need and other infos to help me let me know.
Regards
Gab

Last edited by gabsik; 09-15-2014 at 07:57 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Postfix+Dovecot+MySQL+SASL/TLS] lost connection after AUTH from localhost[127.0.0.1] AMA Linux - Server 2 07-02-2013 02:34 PM
[SOLVED] postfix and dovecot auth backend matiasar Linux - Server 2 02-13-2013 05:36 AM
dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user karsel Linux - Newbie 0 12-11-2012 07:44 AM
Postfix - Dovecot - SASL auth bittus Linux - Software 4 07-14-2010 09:08 AM
Postfix/Dovecot not querying virtual aliases with smtp-auth coolster Linux - Software 0 05-26-2009 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration