<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
		<link>http://www.iredmail.org/forum/topic9-adding-users-with-createmailusermysqlsh-trouble.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic9.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding Users with create_mail_user_MySQL.sh trouble...??????????.]]></description>
		<lastBuildDate>Thu, 23 Jul 2009 05:56:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post726.html#p726</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>dovecot: Jul 22 09:51:07 Info: auth-worker(default): sql(jason.d@ofinnigans.com,127.0.0.1): Password mismatch</p></blockquote></div><p>Did you see this log entry?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 23 Jul 2009 05:56:24 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post726.html#p726</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post725.html#p725</link>
			<description><![CDATA[<p>Here is my log from dovecot</p><br /><p>dovecot: Jul 22 09:51:07 Info: auth(default): client in: AUTH&nbsp; &nbsp;1&nbsp; &nbsp; &nbsp; &nbsp;PLAIN&nbsp; service=imap&nbsp; &nbsp; &nbsp;secured lip=127.0.0.1&nbsp; &nbsp;rip=127.0.0.1&nbsp; &nbsp;lport=143&nbsp; &nbsp; &nbsp; &nbsp;rport=48937&nbsp; &nbsp; &nbsp;resp=AGphc29uLmRAb2Zpbm5pZ2Fucy5jb20Ad3d3NGlyaXNo<br />dovecot: Jul 22 09:51:07 Info: auth-worker(default): sql(jason.d@ofinnigans.com,127.0.0.1): query: SELECT password FROM mailbox WHERE username=&#039;jason.d@ofinnigans.com&#039; AND active=&#039;1&#039; AND expired &gt;= NOW()<br />dovecot: Jul 22 09:51:07 Info: auth-worker(default): sql(jason.d@ofinnigans.com,127.0.0.1): Password mismatch<br />dovecot: Jul 22 09:51:07 Info: auth-worker(default): sql(jason.d@ofinnigans.com,127.0.0.1): CRYPT(www4irish) != &#039;$1$ANa.jBCB$20zD0I2MGWi38CYIJgiMN1&#039;<br />dovecot: Jul 22 09:51:07 Info: auth(default): new auth connection: pid=2982<br />dovecot: Jul 22 09:51:09 Info: auth(default): client out: FAIL&nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp;user=jason.d@ofinnigans.com<br />dovecot: Jul 22 09:51:09 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;jason.d@ofinnigans.com&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured</p><br /><p>Here is my DB entry into mailbox</p><p>SQL result</p><p>Host: localhost<br />Database: vmail<br />Generation Time: Jul 22, 2009 at 09:55 AM<br />Generated by: phpMyAdmin 2.11.9.4 / MySQL 5.0.45<br />SQL query: SELECT * FROM `mailbox` where username like &quot;jason.d%&quot; LIMIT 0, 30 ;<br />Rows: 1<br />username &nbsp; &nbsp; password &nbsp; &nbsp; name &nbsp; &nbsp; maildir &nbsp; &nbsp; quota &nbsp; &nbsp; domain &nbsp; &nbsp; department &nbsp; &nbsp; rank &nbsp; &nbsp; enablesmtp &nbsp; &nbsp; enablepop3 &nbsp; &nbsp; enableimap &nbsp; &nbsp; enabledeliver &nbsp; &nbsp; enablesieve &nbsp; &nbsp; created &nbsp; &nbsp; modified &nbsp; &nbsp; expired &nbsp; &nbsp; active<br />jason.d@ofinnigans.com &nbsp; &nbsp; $1$ANa.jBCB$20zD0I2MGWi38CYIJgiMN1 &nbsp; &nbsp; jason.d &nbsp; &nbsp; ofinnigans.com/jason.d/ &nbsp; &nbsp; 100 &nbsp; &nbsp; ofinnigans.com &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; normal &nbsp; &nbsp; 1 &nbsp; &nbsp; 1 &nbsp; &nbsp; 1 &nbsp; &nbsp; 1 &nbsp; &nbsp; 1 &nbsp; &nbsp; 0000-00-00 00:00:00 &nbsp; &nbsp; 0000-00-00 00:00:00 &nbsp; &nbsp; 9999-12-31 00:00:00 &nbsp; &nbsp; 1</p><p>Also DB entry from alias</p><p>SQL result</p><p>Host: localhost<br />Database: vmail<br />Generation Time: Jul 22, 2009 at 09:56 AM<br />Generated by: phpMyAdmin 2.11.9.4 / MySQL 5.0.45<br />SQL query: SELECT * FROM `alias` where address like &#039;jason.d%&#039; LIMIT 0, 30 ;<br />Rows: 1<br />address &nbsp; &nbsp; goto &nbsp; &nbsp; domain &nbsp; &nbsp; created &nbsp; &nbsp; modified &nbsp; &nbsp; expired &nbsp; &nbsp; active<br />jason.d@ofinnigans.com &nbsp; &nbsp; jason.d@ofinnigans.com &nbsp; &nbsp; ofinnigans.com &nbsp; &nbsp; 0000-00-00 00:00:00 &nbsp; &nbsp; 0000-00-00 00:00:00 &nbsp; &nbsp; 9999-12-31 00:00:00 &nbsp; &nbsp; 1</p>]]></description>
			<author><![CDATA[null@example.com (morrisonmd)]]></author>
			<pubDate>Wed, 22 Jul 2009 16:57:20 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post725.html#p725</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post723.html#p723</link>
			<description><![CDATA[<p>Would using phpmyadmin to load the output.sql file be any different than using the command line MySQL?</p>]]></description>
			<author><![CDATA[null@example.com (morrisonmd)]]></author>
			<pubDate>Wed, 22 Jul 2009 16:43:02 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post723.html#p723</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post225.html#p225</link>
			<description><![CDATA[<p>Hi, All!</p><p>There is script that can add user with not-predifined password</p><p>#!/bin/bash</p><br /><p># Usage:<br />#&nbsp; &nbsp;program_name mysql_root_passwd mail_user_name mail_user_passwd<br />if [ $# -lt 4 ]; then<br />&nbsp; &nbsp; echo &quot;Usage: $0 mysql_root_passwd mail_user_name mail_user_passwd mysql_user_domain&quot;<br />exit;<br />fi</p><p>DEFAULT_PASSWD=$3<br />username=$2<br />DOMAIN=$4</p><p># Default mail quota.<br />DEFAULT_QUOTA=&#039;100&#039;&nbsp; &nbsp;# 100 -&gt; 100M</p><p># Cyrpt the password.<br />&nbsp; &nbsp; export CRYPT_PASSWD=&quot;$(openssl passwd -1 ${DEFAULT_PASSWD})&quot;</p><p>&nbsp; &nbsp; maildir=&quot;${DOMAIN}/${username}&quot;</p><p>#sqltext=&quot;use vmail;INSERT INTO mailbox (username, password, name, maildir, quota, domain, active) VALUES (\&#039;${username}@${DOMAIN}\&#039;, \&#039;${CRYPT_PASSWD}\&#039;, \&#039;${username}\&#039;, \&#039;${maildir}\&#039;, \&#039;${DEFAULT_QUOTA}\&#039;, \&#039;${DOMAIN}\&#039;, \&#039;1\&#039;);&quot;<br />sqltext=&quot;use vmail;INSERT INTO mailbox (username, password, name, maildir, quota, domain, active) VALUES (&#039;${username}@${DOMAIN}&#039;, &#039;${CRYPT_PASSWD}&#039;, &#039;${username}&#039;, &#039;${maildir}&#039;, &#039;${DEFAULT_QUOTA}&#039;, &#039;${DOMAIN}&#039;, &#039;1&#039;);&quot;</p><p>#sqltext=&quot;use vmail;SELECT * FROM `mailbox`;&quot;<br />echo $sqltext;</p><p>/usr/bin/mysql -uroot -p$1 -h localhost -e &quot;$sqltext&quot;</p>]]></description>
			<author><![CDATA[null@example.com (kauksi)]]></author>
			<pubDate>Wed, 03 Jun 2009 06:24:31 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post225.html#p225</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post44.html#p44</link>
			<description><![CDATA[<p>I&#039;ve got it. I forgot use command.</p><p># mysql -uroot -p<br />&nbsp; &nbsp; mysql&gt; USE vmail;<br />&nbsp; &nbsp; mysql&gt; SOURCE output.sql;</p><p>Thank for your help.</p>]]></description>
			<author><![CDATA[null@example.com (nothingelse)]]></author>
			<pubDate>Fri, 08 May 2009 15:51:10 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post44.html#p44</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post42.html#p42</link>
			<description><![CDATA[<p>I see lines.</p><p>[root@mx ~]# sh create_mail_user_MySQL.sh example.org user01</p><p>SQL template file was generated successfully, Please import it<br />*MANUALLY* after verify the records:</p><p>&nbsp; &nbsp; - output.sql</p><p>Steps looks like below:</p><p>&nbsp; &nbsp; # mysql -uroot -p<br />&nbsp; &nbsp; mysql&gt; USE vmail;<br />&nbsp; &nbsp; mysql&gt; SOURCE output.sql;</p><p>Please help for me.</p>]]></description>
			<author><![CDATA[null@example.com (nothingelse)]]></author>
			<pubDate>Fri, 08 May 2009 12:19:11 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post42.html#p42</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post41.html#p41</link>
			<description><![CDATA[<p>After you execute create_mail_user_MySQL.sh, it will print some message on the terminal:<br /></p><div class="codebox"><pre><code>SQL template file was generated successfully, Please import it
*MANUALLY* after verify the records:

    - output.sql

Steps looks like below:

    # mysql -uroot -p
    mysql&gt; USE vmail;
    mysql&gt; SOURCE output.sql;</code></pre></div><p>Did you see that?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 08 May 2009 10:26:30 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post41.html#p41</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post40.html#p40</link>
			<description><![CDATA[<p>dovecot: May 07 19:04:10 Info: dovecot v1.1.11 starting up (core dumps disabled)<br />dovecot: May 07 19:04:10 Info: auth-worker(default): mysql: Connected to localhost (vmail)<br />dovecot: May 07 19:04:11 Info: auth(default): new auth connection: pid=12251<br />dovecot: May 07 19:04:11 Info: auth(default): new auth connection: pid=12253<br />dovecot: May 07 19:04:11 Info: auth(default): new auth connection: pid=12252<br />dovecot: May 07 19:04:11 Info: auth(default): new auth connection: pid=12248<br />dovecot: May 07 19:04:11 Info: auth(default): new auth connection: pid=12249<br />dovecot: May 07 19:04:11 Info: auth(default): new auth connection: pid=12250<br />dovecot: May 07 19:04:50 Info: auth(default): client in: AUTH&nbsp; &nbsp; 1&nbsp; &nbsp; PLAIN&nbsp; &nbsp; service=imap&nbsp; &nbsp; secured&nbsp; &nbsp; lip=127.0.0.1&nbsp; &nbsp; rip=127.0.0.1&nbsp; &nbsp; lport=143&nbsp; &nbsp; rport=46435&nbsp; &nbsp; resp=AHVzZXIwMUBleGFtcGxlLm9yZwB1c2VyMDE=<br />dovecot: May 07 19:04:50 Info: auth-worker(default): sql(user01@example.org,127.0.0.1): query: SELECT password FROM mailbox WHERE username=&#039;user01@example.org&#039; AND active=&#039;1&#039; AND expired &gt;= NOW()<br />dovecot: May 07 19:04:50 Info: auth-worker(default): sql(user01@example.org,127.0.0.1): unknown user<br />dovecot: May 07 19:04:51 Info: auth(default): new auth connection: pid=12259<br />dovecot: May 07 19:04:52 Info: auth(default): client out: FAIL&nbsp; &nbsp; 1&nbsp; &nbsp; user=user01@example.org<br />dovecot: May 07 19:04:52 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;user01@example.org&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured<br />dovecot: May 07 19:04:57 Info: auth(default): client in: AUTH&nbsp; &nbsp; 1&nbsp; &nbsp; PLAIN&nbsp; &nbsp; service=imap&nbsp; &nbsp; secured&nbsp; &nbsp; lip=127.0.0.1&nbsp; &nbsp; rip=127.0.0.1&nbsp; &nbsp; lport=143&nbsp; &nbsp; rport=46436&nbsp; &nbsp; resp=AHVzZXIwMUBleGFtcGxlLm9yZwA4ODg4ODg4OA==<br />dovecot: May 07 19:04:57 Info: auth-worker(default): sql(user01@example.org,127.0.0.1): query: SELECT password FROM mailbox WHERE username=&#039;user01@example.org&#039; AND active=&#039;1&#039; AND expired &gt;= NOW()<br />dovecot: May 07 19:04:57 Info: auth-worker(default): sql(user01@example.org,127.0.0.1): unknown user<br />dovecot: May 07 19:04:58 Info: auth(default): new auth connection: pid=12260<br />dovecot: May 07 19:04:59 Info: auth(default): client out: FAIL&nbsp; &nbsp; 1&nbsp; &nbsp; user=user01@example.org<br />dovecot: May 07 19:04:59 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;user01@example.org&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured</p><p>I think sh create_mail_user_MySQL.sh example.org user01. It not create record user01 in vmail.mailbox. I checked database vmail.mailbox. I see user01 not exist.<br />Thank for your help.</p>]]></description>
			<author><![CDATA[null@example.com (nothingelse)]]></author>
			<pubDate>Fri, 08 May 2009 10:16:30 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post40.html#p40</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post39.html#p39</link>
			<description><![CDATA[<div class="quotebox"><cite>nothingelse wrote:</cite><blockquote><p>f<br />dovecot: May 07 18:02:16 Info: imap-login: Disconnected (auth failed, 1 attempts)</p></blockquote></div><p>Enable debug options in /etc/dovecot.conf:<br /></p><div class="codebox"><pre><code>mail_debug = yes
auth_debug = yes
auth_debug_passwords = yes</code></pre></div><p>Restart dovecot service, try again. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 08 May 2009 09:50:24 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post39.html#p39</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post38.html#p38</link>
			<description><![CDATA[<p>file /var/log/dovecot.log</p><p>dovecot: May 07 18:02:16 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;user01@example.org&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured<br />dovecot: May 07 18:05:23 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;user01@example.org&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured<br />dovecot: May 07 18:08:14 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;user01@example.org&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured<br />dovecot: May 07 18:08:19 Info: imap-login: Disconnected (auth failed, 1 attempts): user=&lt;user01@example.org&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured</p><p>I checked in postfixadmin no user01 exist.<br />Thank for your help.</p>]]></description>
			<author><![CDATA[null@example.com (nothingelse)]]></author>
			<pubDate>Fri, 08 May 2009 09:16:38 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post38.html#p38</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post37.html#p37</link>
			<description><![CDATA[<p>Could you please post related IMAP/POP3 login auth log in /var/log/dovecot.log?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 08 May 2009 07:53:21 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post37.html#p37</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post36.html#p36</link>
			<description><![CDATA[<p>I downloaded file create_mail_user_MySQL.sh. I modify like</p><p># ---- Maildir settings ----<br /># Maildir style: hashed, normal.<br /># Hashed maildir style, so that there won&#039;t be many large directories<br /># in your mail storage file system. Better performance in large scale<br /># deployment.<br /># Format: e.g. username@domain.td<br />#&nbsp; &nbsp;hashed&nbsp; -&gt; domain.ltd/u/us/use/username/<br />#&nbsp; &nbsp;normal&nbsp; -&gt; domain.ltd/username/<br /># Default hash level is 3.<br />MAILDIR_STYLE=&#039;normal&#039;&nbsp; &nbsp; &nbsp; # hashed, normal.</p><p>file output.sql</p><p>INSERT INTO mailbox (username, password, name, maildir, quota, domain, active)<br />&nbsp; &nbsp; VALUES (&#039;user01@example.org&#039;, &#039;$1$2XPy.uYI$fasR6Pw/cuB9dlBkmzgqs1&#039;, &#039;user01&#039;, &#039;example.org/user01/&#039;, &#039;100&#039;, &#039;example.org&#039;, &#039;1&#039;);</p><p>but user01 not login.</p><p>Thank for reading.</p>]]></description>
			<author><![CDATA[null@example.com (nothingelse)]]></author>
			<pubDate>Fri, 08 May 2009 07:40:06 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post36.html#p36</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post24.html#p24</link>
			<description><![CDATA[<p>I improved tools/create_mail_user_MySQL.sh in revision 983, it&#039;s easier now:<br /></p><div class="codebox"><pre><code># sh create_mail_user_MySQL.sh domain.ltd newuser [newuser2 newuser3 ...]</code></pre></div><p>Download: <a href="http://iredmail.googlecode.com/svn/trunk/iRedMail/tools/create_mail_user_MySQL.sh">http://iredmail.googlecode.com/svn/trun … r_MySQL.sh</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 07 May 2009 03:33:51 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post24.html#p24</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post18.html#p18</link>
			<description><![CDATA[<p>write :&nbsp; console#sh&nbsp; create_mail_user_MySQL.sh</p><p>or write</p><p>console#./create_mail_user_MySQL.sh</p><p>first edit the .sh file</p>]]></description>
			<author><![CDATA[null@example.com (mauricioarcas)]]></author>
			<pubDate>Wed, 06 May 2009 17:17:59 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18.html#p18</guid>
		</item>
		<item>
			<title><![CDATA[Adding Users with create_mail_user_MySQL.sh trouble...??????????]]></title>
			<link>http://www.iredmail.org/forum/post16.html#p16</link>
			<description><![CDATA[<p>Hi I need help on geting the script to work . when I run it it says:</p><p>Usage: sh create_mail_user_MySQL.sh userlist.txt</p><p>What do I have to do to make this work?? I would Appreciate the help thank you</p>]]></description>
			<author><![CDATA[null@example.com (ccarrasq)]]></author>
			<pubDate>Wed, 06 May 2009 15:59:11 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16.html#p16</guid>
		</item>
	</channel>
</rss>
