<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DoK - Where Dreams Come From &#187; qmail</title>
	<atom:link href="http://ansani.it/tag/qmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://ansani.it</link>
	<description>C'è chi vede il bicchiere mezzo pieno e chi lo vede mezzo vuoto... Per me, l'acqua che manca, è traboccata fuori ;)</description>
	<lastBuildDate>Mon, 22 Aug 2011 14:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<image>
<link>http://ansani.it</link>
<url>http://ansani.it/wp-content/plugins/maxblogpress-favicon/icons/favicon-21.ico</url>
<title>DoK - Where Dreams Come From</title>
</image>
		<item>
		<title>Qmailtoaster &amp; Dovecot IMAP</title>
		<link>http://ansani.it/2008/08/14/qmailtoaster-dovecot-imap/</link>
		<comments>http://ansani.it/2008/08/14/qmailtoaster-dovecot-imap/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 07:18:42 +0000</pubDate>
		<dc:creator>Salvatore Ansani</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[dovecot]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://ansani.it/?p=588</guid>
		<description><![CDATA[Hi tech guys After dome days of big bugs from my previous IMAP server (Courier 4.2.x &#8211; AUthlib 0.59.2), I decided to upgrade to last version available (Courier IMAP 4.4.1 &#8211; Authlib 0.61.0). I always installed package from qmail toaster, so I build a new .rpm and .srpm version for courier and authlib mantaining upstream [...]]]></description>
			<content:encoded><![CDATA[<p>Hi tech guys <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> <br />
After dome days of big bugs from my previous IMAP server (Courier 4.2.x &#8211; AUthlib 0.59.2), I decided to upgrade to last version available (Courier IMAP 4.4.1 &#8211; Authlib 0.61.0). I always installed package from qmail toaster, so I build a new .rpm and .srpm version for courier and authlib mantaining upstream qmailtoaster version.</p>
<p>After installation, I noticed something wrong <img src='http://ansani.it/wp-includes/images/smilies/icon_sad.gif' alt="icon sad Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> <br />
I got this strange error: &#8220;libauthvchkpw.so: cannot open shared object file: No such file or directory&#8221;.<br />
Why ?!?!?!? Simply because vpopmail support is&#8217;nt available with authlib 0.61.0 (from 0.60.4) !!!!!<br />
But all my installation support vpopmail !!!!! ARGHHHHHHHHHHHHHHHHHHHHHHHHHHHH !!!</p>
<p>Don&#8217;t worry Salvatore, don&#8217;t worry <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" />  The only file you need is libauthvchpw.so <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> <br />
I copied it from previous installation and all was OK <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> </p>
<p>But&#8230;. bugs are still present&#8230; GRRRRR&#8230; I need another IMAP server&#8230; DOVECOT !!!!!</p>
<p>Installation is very very simple (yum installer help a lot <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" />  ). But now it&#8217;s time to configure and migrate.</p>
<p>First, simple step <img src='http://ansani.it/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" />  Migration is immediate. All you need is to add this commands on /etc/dovecot.conf:</p>

<div class="wp_codebox"><table><tr id="p5884"><td class="code" id="p588code4"><pre class="bash" style="font-family:monospace;">mail_location = maildir:~<span style="color: #000000; font-weight: bold;">/</span>Maildir
mail_uid = <span style="color: #000000;">89</span>
mail_gid = <span style="color: #000000;">89</span>
first_valid_uid = <span style="color: #000000;">89</span>
last_valid_uid = <span style="color: #000000;">89</span>
first_valid_gid = <span style="color: #000000;">89</span>
last_valid_gid = <span style="color: #000000;">89</span></pre></td></tr></table></div>

<p>so you can access previous receveid mail <img src='http://ansani.it/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" />  Remeber, on qmail-toaster vpopmail uid/gid is 89. If you want to known which userid/groupid is assigned to your user, you need to issue from shell:</p>

<div class="wp_codebox"><table><tr id="p5885"><td class="code" id="p588code5"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">id</span> vpopmail</pre></td></tr></table></div>

<p>Ok, now the hard work. Now you need to integrate your vpopmail installation (auth module) with DOVECOT. First of all, you can&#8217;t use SQL access. With qmail-toaster all domains have a separate table. This is&#8217;nt a problem&#8230; Real problem is domain translation !!! You can&#8217;t use %d (DOVECOT variable) because domain is translated. For example, my domain ansani.it is stored like ansani_it.</p>
<p>And now ?!?!?!? Don&#8217;t worry, you can use vchkpw and checkpassword <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> </p>
<p>Yes yes yes yes, on your auth default section, you need to write something like that:</p>

<div class="wp_codebox"><table><tr id="p5886"><td class="code" id="p588code6"><pre class="bash" style="font-family:monospace;">auth default <span style="color: #7a0874; font-weight: bold;">&#123;</span>
mechanisms = plain
&nbsp;
passdb checkpassword <span style="color: #7a0874; font-weight: bold;">&#123;</span>
args = <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vpopmail<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>vchkpw
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
userdb prefetch  <span style="color: #7a0874; font-weight: bold;">&#123;</span>
args = <span style="color: #007800;">uid</span>=<span style="color: #000000;">89</span> <span style="color: #007800;">gid</span>=<span style="color: #000000;">89</span> <span style="color: #007800;">home</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vpopmail<span style="color: #000000; font-weight: bold;">/</span>domains<span style="color: #000000; font-weight: bold;">/%</span>d<span style="color: #000000; font-weight: bold;">/%</span>u
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
count = <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>Remember again, I&#8217;ve installed qmail-toaster and my mails are on /home/vpopmail/domains/MY_EMAIL_DOMAINS/MY_USERNAME_/Maildir.</p>
<p>After this mod, all works ok <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> </p>
<p>Enjoyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy <img src='http://ansani.it/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Qmailtoaster & Dovecot IMAP" class='wp-smiley' title="Qmailtoaster & Dovecot IMAP" /> </p>
<p>Regards,<br />
Salvatore</p>
]]></content:encoded>
			<wfw:commentRss>http://ansani.it/2008/08/14/qmailtoaster-dovecot-imap/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

