<?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>Kybernesis &#187; linux</title>
	<atom:link href="http://ronin.kybernesis.net/index.php/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://ronin.kybernesis.net</link>
	<description>The Making of an Indie gamedev company</description>
	<lastBuildDate>Fri, 13 Nov 2009 10:33:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up a postfix mailserver</title>
		<link>http://ronin.kybernesis.net/index.php/2008/01/29/setting-up-a-postfix-mailserver</link>
		<comments>http://ronin.kybernesis.net/index.php/2008/01/29/setting-up-a-postfix-mailserver#comments</comments>
		<pubDate>Tue, 29 Jan 2008 11:58:18 +0000</pubDate>
		<dc:creator>Ronny Anderssen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mailserver]]></category>
		<category><![CDATA[authdaemond]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[courier]]></category>
		<category><![CDATA[courierlogger]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[falko timme]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sarge]]></category>
		<category><![CDATA[sasl]]></category>
		<category><![CDATA[saslauthdaemon]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[squirrelmail]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://ronin.kybernesis.net/index.php/2008/01/29/setting-up-a-postfix-mailserver/</guid>
		<description><![CDATA[<div class="diggthisplugin" style="float: right; width: 42px; padding-right: 10px; margin-left: 10px; margin-bottom: 0px;"><iframe src="http://digg.com/tools/diggthis.php?u=http://ronin.kybernesis.net/index.php/2008/01/29/setting-up-a-postfix-mailserver&t=Setting up a postfix mailserver&k=#FFFFFF" scrolling="no" style="border: none; height: 80px; width: 52px;"></iframe>
		</div><p>So I decided to make a mailserver for kybernesis.com, and went to google-world and searched around some to see what I could find of tutorials/howtos or help for this.</p>
<p>After some&#8230; Errrr.. Rather, A lot! of browsing around and reading tutorials &amp; howtos up and down, I settled on going for a Postfix, courier-imap, clamav, Spamassassin, amavis &amp; TLS build.<br />
And I found a neato tutorial for it too!! Written by the Linux guru, Falko Timme @ <a href="http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch" title="Howtoforge">Howtoforge</a>[<a href="http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch" title="Howtoforge" target="_blank">^</a>].</p>
<p>The howto was incredibly easy to follow, and it was one of the few really updated ones out there, that also told you how to do this with debian packages.<br />
I tried some other howtos too, but they all ended up in me starting over again, with a new one. Till I found this one, which let me set it all up and tweak it to something I was satisfied with, during one evening. I also added squirrelmail which added new challenges, but wasn&#8217;t that hard to get working once I got the hang of it.</p>
<p>I ran into several problems though, but that was not because of Falko&#8217;s howto, but due to me trying other howtos that messed up my system a little&#8230; Most noteworthy here was a bug within saslauthdaemon which made it impossible to start or re-install. So&#8230; I guess I should post the solutions of the problems here in case someone actually read this and have the same problems.</p>
<p><strong>Courier Authdaemon bug</strong><br />
Courier Authdaemon: /usr/lib/<wbr></wbr>courier/courier-<wbr></wbr>authlib/<wbr></wbr>authdaemond: line 31: /usr/sbin/<wbr></wbr>courierlogger: No such file or directory.<br />
This apparently comes from a bug within the Authdaemon package. I searched around a bit to find the solution for this one, but managed to find it @ <a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615" title="Launchpad bug reports">Launchpad</a>[<a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615" title="Launchpad bug reports" target="_blank">^</a>] .<br />
This site mentions 2 possible solution, I recommend trying the first one first, then the second one if that don&#8217;t work for you.</p>
<blockquote><p> <a href="https://bugs.launchpad.net/%7Erblake-gmx">rblake</a>          wrote     <span title="2006-10-22 21:41:27 UTC">on 2006-10-22</span>:          <a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615/comments/10">              (permalink)     </a></p>
<p style="font-family: monospace">This problem caused me quite a headache today as well.</p>
<p>I would advise against editing the installation database, but would suggest the following:</p>
<p>The problem is related to the courier-authdaemon. Instead of removing the knowledge of the install system (security upgrades will be ignored!), manually remove the authdaemon:</p>
<p>sudo dpkg &#8211;force-<wbr></wbr>remove-<wbr></wbr>reinstreq -P courier-authdaemon</p>
<p>Then continue the upgrade as normal, if necesarry selecting the courier packages manually once the upgrade has completed.</p>
<p>Works perfectly now here!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><a href="https://bugs.launchpad.net/%7Eh-aling">HaroldAling</a>          wrote     <span title="2006-10-12 18:35:55 UTC">on 2006-10-12</span>:          <a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615/comments/5">              (permalink)     </a></p>
<p style="font-family: monospace">Ok, this is how I fixed it:</p>
<p>1. backup /var/lib/<wbr></wbr>dpkg/status to a safe location<br />
2. remove all courier entries from /var/lib/<wbr></wbr>dpkg/status (nano it, search=ctrl-w)<br />
3. sudo apt-get upgrade<br />
4. sudo apt-get install courier-imap</p>
<p>I now need to reconfigure courier, but at least it&#8217;s working again!</p></blockquote>
<p>The first option worked for me, the second didn&#8217;t, but I list both here in case one don&#8217;t work for you.</p>
<p><strong>Squirrelmail &#8211; &#8220;Error: <font size="-1">Connection dropped by imap-server&#8221;</font></strong><br />
This error showed up, even though I had checked that the IMAP server was up and running and working properly with Telnet localhost 143.<br />
The solution I found was simply just to send a test email to the address I was trying to login with.<br />
Cause the error comes from the fact that the mail directories on the server weren&#8217;t created yet, since they don&#8217;t get created before you get a mail.<br />
Sending a test mail creates the needed directories though, so that should solve that problem.</p>
<p><strong>Squirrelmail &#8211; &#8220;Unknown user or password incorrect.&#8221;</strong><br />
When setting up an IMAP system with virtual users in a MySQL database, it&#8217;s easy to end up with this error message.<br />
You see, Squirrelmail only handles a few authentication methods, and I was using SASL which is not supported by Squirrelmail.<br />
My solution here, was to keep Authentication from Squirrelmail to Plain login, while I encrypted the password in the DB with Encrypt(which uses the SASL setup).<br />
After I figured this out, all went perfectly well..<br />
It&#8217;s not too secure though, since the password you write to login to Squirrelmail will be logged on the server in plain text.</p>
]]></description>
			<content:encoded><![CDATA[<div class="diggthisplugin" style="float: right; width: 42px; padding-right: 10px; margin-left: 10px; margin-bottom: 0px;"><iframe src="http://digg.com/tools/diggthis.php?u=http://ronin.kybernesis.net/index.php/2008/01/29/setting-up-a-postfix-mailserver&t=Setting up a postfix mailserver&k=#FFFFFF" scrolling="no" style="border: none; height: 80px; width: 52px;"></iframe>
		</div><p>So I decided to make a mailserver for kybernesis.com, and went to google-world and searched around some to see what I could find of tutorials/howtos or help for this.</p>
<p>After some&#8230; Errrr.. Rather, A lot! of browsing around and reading tutorials &amp; howtos up and down, I settled on going for a Postfix, courier-imap, clamav, Spamassassin, amavis &amp; TLS build.<br />
And I found a neato tutorial for it too!! Written by the Linux guru, Falko Timme @ <a href="http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch" title="Howtoforge">Howtoforge</a>[<a href="http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch" title="Howtoforge" target="_blank">^</a>].</p>
<p>The howto was incredibly easy to follow, and it was one of the few really updated ones out there, that also told you how to do this with debian packages.<br />
I tried some other howtos too, but they all ended up in me starting over again, with a new one. Till I found this one, which let me set it all up and tweak it to something I was satisfied with, during one evening. I also added squirrelmail which added new challenges, but wasn&#8217;t that hard to get working once I got the hang of it.</p>
<p>I ran into several problems though, but that was not because of Falko&#8217;s howto, but due to me trying other howtos that messed up my system a little&#8230; Most noteworthy here was a bug within saslauthdaemon which made it impossible to start or re-install. So&#8230; I guess I should post the solutions of the problems here in case someone actually read this and have the same problems.</p>
<p><strong>Courier Authdaemon bug</strong><br />
Courier Authdaemon: /usr/lib/<wbr></wbr>courier/courier-<wbr></wbr>authlib/<wbr></wbr>authdaemond: line 31: /usr/sbin/<wbr></wbr>courierlogger: No such file or directory.<br />
This apparently comes from a bug within the Authdaemon package. I searched around a bit to find the solution for this one, but managed to find it @ <a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615" title="Launchpad bug reports">Launchpad</a>[<a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615" title="Launchpad bug reports" target="_blank">^</a>] .<br />
This site mentions 2 possible solution, I recommend trying the first one first, then the second one if that don&#8217;t work for you.</p>
<blockquote><p> <a href="https://bugs.launchpad.net/%7Erblake-gmx">rblake</a>          wrote     <span title="2006-10-22 21:41:27 UTC">on 2006-10-22</span>:          <a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615/comments/10">              (permalink)     </a></p>
<p style="font-family: monospace">This problem caused me quite a headache today as well.</p>
<p>I would advise against editing the installation database, but would suggest the following:</p>
<p>The problem is related to the courier-authdaemon. Instead of removing the knowledge of the install system (security upgrades will be ignored!), manually remove the authdaemon:</p>
<p>sudo dpkg &#8211;force-<wbr></wbr>remove-<wbr></wbr>reinstreq -P courier-authdaemon</p>
<p>Then continue the upgrade as normal, if necesarry selecting the courier packages manually once the upgrade has completed.</p>
<p>Works perfectly now here!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><a href="https://bugs.launchpad.net/%7Eh-aling">HaroldAling</a>          wrote     <span title="2006-10-12 18:35:55 UTC">on 2006-10-12</span>:          <a href="https://bugs.launchpad.net/ubuntu/+source/courier-authlib/+bug/64615/comments/5">              (permalink)     </a></p>
<p style="font-family: monospace">Ok, this is how I fixed it:</p>
<p>1. backup /var/lib/<wbr></wbr>dpkg/status to a safe location<br />
2. remove all courier entries from /var/lib/<wbr></wbr>dpkg/status (nano it, search=ctrl-w)<br />
3. sudo apt-get upgrade<br />
4. sudo apt-get install courier-imap</p>
<p>I now need to reconfigure courier, but at least it&#8217;s working again!</p></blockquote>
<p>The first option worked for me, the second didn&#8217;t, but I list both here in case one don&#8217;t work for you.</p>
<p><strong>Squirrelmail &#8211; &#8220;Error: <font size="-1">Connection dropped by imap-server&#8221;</font></strong><br />
This error showed up, even though I had checked that the IMAP server was up and running and working properly with Telnet localhost 143.<br />
The solution I found was simply just to send a test email to the address I was trying to login with.<br />
Cause the error comes from the fact that the mail directories on the server weren&#8217;t created yet, since they don&#8217;t get created before you get a mail.<br />
Sending a test mail creates the needed directories though, so that should solve that problem.</p>
<p><strong>Squirrelmail &#8211; &#8220;Unknown user or password incorrect.&#8221;</strong><br />
When setting up an IMAP system with virtual users in a MySQL database, it&#8217;s easy to end up with this error message.<br />
You see, Squirrelmail only handles a few authentication methods, and I was using SASL which is not supported by Squirrelmail.<br />
My solution here, was to keep Authentication from Squirrelmail to Plain login, while I encrypted the password in the DB with Encrypt(which uses the SASL setup).<br />
After I figured this out, all went perfectly well..<br />
It&#8217;s not too secure though, since the password you write to login to Squirrelmail will be logged on the server in plain text.</p>
]]></content:encoded>
			<wfw:commentRss>http://ronin.kybernesis.net/index.php/2008/01/29/setting-up-a-postfix-mailserver/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
