<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Unable to login in roundcube (Solved)]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4017.xml" />
	<updated>2012-10-14T15:00:53Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4017-unable-to-login-in-roundcube-solved.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18619.html#p18619" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ngiamol]]></name>
				<uri>http://www.iredmail.org/forum/user1067.html</uri>
			</author>
			<updated>2012-10-14T15:00:53Z</updated>
			<id>http://www.iredmail.org/forum/post18619.html#p18619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18618.html#p18618" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ngiamol]]></name>
				<uri>http://www.iredmail.org/forum/user1067.html</uri>
			</author>
			<updated>2012-10-14T14:48:44Z</updated>
			<id>http://www.iredmail.org/forum/post18618.html#p18618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18617.html#p18617" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-14T14:43:21Z</updated>
			<id>http://www.iredmail.org/forum/post18617.html#p18617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18616.html#p18616" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ngiamol]]></name>
				<uri>http://www.iredmail.org/forum/user1067.html</uri>
			</author>
			<updated>2012-10-14T14:40:12Z</updated>
			<id>http://www.iredmail.org/forum/post18616.html#p18616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18615.html#p18615" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-14T14:37:42Z</updated>
			<id>http://www.iredmail.org/forum/post18615.html#p18615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18613.html#p18613" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ngiamol]]></name>
				<uri>http://www.iredmail.org/forum/user1067.html</uri>
			</author>
			<updated>2012-10-14T14:13:59Z</updated>
			<id>http://www.iredmail.org/forum/post18613.html#p18613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18608.html#p18608" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-14T13:59:46Z</updated>
			<id>http://www.iredmail.org/forum/post18608.html#p18608</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unable to login in roundcube (Solved)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18600.html#p18600" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ngiamol]]></name>
				<uri>http://www.iredmail.org/forum/user1067.html</uri>
			</author>
			<updated>2012-10-13T14:47:21Z</updated>
			<id>http://www.iredmail.org/forum/post18600.html#p18600</id>
		</entry>
</feed>
