<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Unable to login in roundcube (Solved)]]></title>
		<link>http://www.iredmail.org/forum/topic4017-unable-to-login-in-roundcube-solved.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic4017.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Unable to login in roundcube (Solved).]]></description>
		<lastBuildDate>Sun, 14 Oct 2012 15:00:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18619.html#p18619</link>
			<description><![CDATA[<div class="quotebox"><cite>ngiamol wrote:</cite><blockquote><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>You forgot my another question in previous post:</p><p>Does this command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;user@domain.gr&#039; AND mailbox.domain=&#039;domain.gr&#039; AND mailbox.enableimapsecured=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1;</code></pre></div></blockquote></div><p>Ohh sorry,</p><p>if i replace the backupmx from 0 to 1 i get this</p><p>+----------------------------------------------------------------------+--------------------+<br />| home&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| quota_rule&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />+----------------------------------------------------------------------+--------------------+<br />| /var/vmail/vmail1/domain.gr/u/s/e/user-2012.06.13.15.13.29/ | *:bytes=1073741824 |<br />+----------------------------------------------------------------------+--------------------+<br />1 row in set (0.00 sec)</p><p>This machine planed to be a backup mx</p></blockquote></div><p>Bleh, broblem solved. It was too simple but it took me almost 2 days <img src="http://www.iredmail.org/forum/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>solution.<br />at dovecot.conf-mysql.conf the &quot;AND domain.backupmx=0&quot; turned to &quot;AND domain.backupmx=1&quot; because planed as backup mx.<br />restarted dovecot and worked.</p><p>Thank you very much for your realy precious help <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ngiamol)]]></author>
			<pubDate>Sun, 14 Oct 2012 15:00:53 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18619.html#p18619</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18618.html#p18618</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>You forgot my another question in previous post:</p><p>Does this command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;user@domain.gr&#039; AND mailbox.domain=&#039;domain.gr&#039; AND mailbox.enableimapsecured=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1;</code></pre></div></blockquote></div><p>Ohh sorry,</p><p>if i replace the backupmx from 0 to 1 i get this</p><p>+----------------------------------------------------------------------+--------------------+<br />| home&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| quota_rule&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />+----------------------------------------------------------------------+--------------------+<br />| /var/vmail/vmail1/domain.gr/u/s/e/user-2012.06.13.15.13.29/ | *:bytes=1073741824 |<br />+----------------------------------------------------------------------+--------------------+<br />1 row in set (0.00 sec)</p><p>This machine planed to be a backup mx</p>]]></description>
			<author><![CDATA[null@example.com (ngiamol)]]></author>
			<pubDate>Sun, 14 Oct 2012 14:48:44 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18618.html#p18618</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18617.html#p18617</link>
			<description><![CDATA[<p>You forgot my another question in previous post:</p><p>Does this command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;user@domain.gr&#039; AND mailbox.domain=&#039;domain.gr&#039; AND mailbox.enableimapsecured=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 14 Oct 2012 14:43:21 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18617.html#p18617</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18616.html#p18616</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Does this command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;user@domain.gr&#039; AND mailbox.domain=&#039;domain.gr&#039; AND mailbox.enableimapsecured=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1;</code></pre></div><p>Could you please show me whole file of /etc/dovecot/dovecot-mysql.conf? Remove password before pasting.</p></blockquote></div><p>The dovecot-mysql.conf is located in /etc/dovecot-mysql.conf</p><p>driver = mysql<br />default_pass_scheme = CRYPT<br />connect = host=127.0.0.1 dbname=vmail user=vmail password=xxxxxxxxx<br />password_query = SELECT password FROM mailbox WHERE username=&#039;%u&#039; AND active=&#039;1&#039;<br />user_query = SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;%u&#039; AND mailbox.domain=&#039;%d&#039; AND mailbox.enable%Ls%Lc=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1</p>]]></description>
			<author><![CDATA[null@example.com (ngiamol)]]></author>
			<pubDate>Sun, 14 Oct 2012 14:40:12 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18616.html#p18616</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18615.html#p18615</link>
			<description><![CDATA[<p>Does this command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;user@domain.gr&#039; AND mailbox.domain=&#039;domain.gr&#039; AND mailbox.enableimapsecured=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1;</code></pre></div><p>Could you please show me whole file of /etc/dovecot/dovecot-mysql.conf? Remove password before pasting.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 14 Oct 2012 14:37:42 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18615.html#p18615</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18613.html#p18613</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>ngiamol wrote:</cite><blockquote><p>-ERR [IN-USE] Internal login failure. Refer to server log for more information</p></blockquote></div><p>Any related log in /var/log/dovecot.log?</p><p>Also, does this SQL command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT password FROM mailbox WHERE username=&#039;user@website.com&#039; AND active=&#039;1&#039;;</code></pre></div></blockquote></div><p>dovecot.log</p><p>Oct 14 14:58:28 auth-worker(default): Info: sql(user@domain.gr,127.0.0.1): SELECT CONCAT(mailbox.storagebasedirectory, &#039;/&#039;, mailbox.storagenode, &#039;/&#039;, mailbox.maildir) AS home, CONCAT(&#039;*:bytes=&#039;, mailbox.quota*1048576) AS quota_rule FROM mailbox,domain WHERE mailbox.username=&#039;user@domain.gr&#039; AND mailbox.domain=&#039;domain.gr&#039; AND mailbox.enableimapsecured=1 AND mailbox.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND mailbox.active=1<br />Oct 14 14:58:28 auth-worker(default): Info: sql(user@domain.gr,127.0.0.1): Unknown user<br />Oct 14 14:58:28 auth(default): Error: userdb(user@domain.gr,127.0.0.1): user not found from userdb sql<br />Oct 14 14:58:28 auth(default): Info: master out: NOTFOUND&nbsp; &nbsp; 3</p><p>the sql command gives</p><p>+------------------------------------+<br />| password&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br />+------------------------------------+<br />| xxxxxxxxxxxxxxxxxxxxxx. |<br />+------------------------------------+<br />1 row in set (0.00 sec)</p><p>im not any guru but, the user mailbox is is working because then the setup was done i was able to login (before several months) and it contains 2 mails (test mails).<br />The &quot;(user@domain.gr,127.0.0.1): Unknown user&quot; tells me that it looks in a wrong place to find the login user, or bad credentials.<br />If i try to use a wrong passwd it gives me &quot;login failed&quot; but when i use the right one it gives me &quot;connection to imap server failed&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (ngiamol)]]></author>
			<pubDate>Sun, 14 Oct 2012 14:13:59 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18613.html#p18613</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18608.html#p18608</link>
			<description><![CDATA[<div class="quotebox"><cite>ngiamol wrote:</cite><blockquote><p>-ERR [IN-USE] Internal login failure. Refer to server log for more information</p></blockquote></div><p>Any related log in /var/log/dovecot.log?</p><p>Also, does this SQL command return some records?<br /></p><div class="codebox"><pre><code>mysql&gt; USE vmail;
mysql&gt; SELECT password FROM mailbox WHERE username=&#039;user@website.com&#039; AND active=&#039;1&#039;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 14 Oct 2012 13:59:46 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18608.html#p18608</guid>
		</item>
		<item>
			<title><![CDATA[Unable to login in roundcube (Solved)]]></title>
			<link>http://www.iredmail.org/forum/post18600.html#p18600</link>
			<description><![CDATA[<p>==== Required information ====<br />- iRedMail version: 0.7.3<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql<br />- Linux/BSD distribution name and version: centos 5.8<br />==== <br />Good evening all</p><p>Before several months i installed iredmail 0.7.3 for backup mx. the setup and the first tests was fine and machine unpluged.<br />Today i reconnected the machine to my network but i cannot log in from web. the message i got is login failed.<br />For several hours trying to find an answer on web but no luck yet.<br />ill post 2 lines from log.</p><p>auth-worker(default): Info: sql(user@website.com,127.0.0.1): query: SELECT password FROM mailbox WHERE username=&#039;user@website.com&#039; AND active=&#039;1&#039;<br />Oct 13 15:39:55 auth-worker(default): Info: sql(user@website.com,127.0.0.1): unknown user</p><p>Oct 13 14:59:27 mx2 roundcube: IMAP Error: Login failed for user2@website.com from 192.168.0.49. AUTHENTICATE PLAIN: * BYE Internal login failure. Refer to server log for more information. in /var/www/roundcubemail-0.5.4/program/include/rcube_imap.php on line 192 (POST /webmail/?_task=login&amp;_action=login)</p><p>when trying to log via telnet i got the following error.<br />telnet localhost pop3<br />Connected to localhost.localdomain (127.0.0.1).<br />+OK Dovecot ready.<br />user user2<br />+OK<br />pass password<br />-ERR [IN-USE] Internal login failure. Refer to server log for more information</p><p>While trying to telnet port 2000, connection refused.<br />telnet 127.0.0.1 2000<br />Trying 127.0.0.1...<br />telnet: connect to address 127.0.0.1: Connection refused</p><br /><p>Any ideas?</p><p>Thanks in advance</p>]]></description>
			<author><![CDATA[null@example.com (ngiamol)]]></author>
			<pubDate>Sat, 13 Oct 2012 14:47:21 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18600.html#p18600</guid>
		</item>
	</channel>
</rss>
