<?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>johker's blog &#187; mailclient</title>
	<atom:link href="http://johker.ibutho.de/tag/mailclient/feed/" rel="self" type="application/rss+xml" />
	<link>http://johker.ibutho.de</link>
	<description>stories about me, my life, science and my trips</description>
	<lastBuildDate>Sat, 29 May 2010 10:00:11 +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>Der neue Server: Teil 7 roundcube</title>
		<link>http://johker.ibutho.de/2009/04/04/der-neue-server-teil-7-roundcube/</link>
		<comments>http://johker.ibutho.de/2009/04/04/der-neue-server-teil-7-roundcube/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 10:29:57 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[imapproxy]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[konfiguration]]></category>
		<category><![CDATA[mailclient]]></category>
		<category><![CDATA[mua]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[postfixadmin]]></category>
		<category><![CDATA[postfixadmin bridge]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[rcpfa]]></category>
		<category><![CDATA[rcube]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[sieve]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=199</guid>
		<description><![CDATA[Oft hat man nicht die Möglichkeit mit einen E-Mail Client - wie z.B. Evolution oder Thunderbird - arbeiten zu können, deshalb wird hier darauf eingegangen wie man einen Webmailer - in diesem Fall roundcube - inkl. postfixadmin-Integration und Sieve-Plugin installiert.
imapproxy
Da http ein "stateless"-Protokoll ist, kann es - anders als IMAP-Clients - keine Verbindungen offen halten [...]]]></description>
			<content:encoded><![CDATA[<p>Oft hat man nicht die Möglichkeit mit einen E-Mail Client - wie z.B. Evolution oder Thunderbird - arbeiten zu können, deshalb wird hier darauf eingegangen wie man einen Webmailer - in diesem Fall <em><a href="http://roundcube.net/" target="_blank">roundcube</a></em> - inkl. <em>postfixadmin</em>-Integration und Sieve-Plugin installiert.</p>
<h1>imapproxy</h1>
<p>Da http ein "stateless"-Protokoll ist, kann es - anders als IMAP-Clients - keine Verbindungen offen halten und stellt deshalb sehr viele unnötige "LOGIN"-Anfragen. Um dies zu verhindern wird ein imapproxy installiert. Dieser wird dem Webmailer vorgeschaltet und hält die Verbindungen geöffnet. Stellt der Webmailer nun eine Anfrage an den Proxy, sucht dieser die Verbindung raus und benutzt die bestehende Verbindung anstatt eine neue aufzubauen. Der Proxy hält die Verbindung nicht für eine unbestimmte Zeit offen, sondern schließt sie nachdem ein Timeout abgelaufen ist.</p>
<p>Installation:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> imapproxy</pre></div></div>

<p>Konfiguration:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">listen_address 127.0.0.1</pre></div></div>

<p>Wir ändern nur die oben genannte Zeile, den Rest belassen wir wie er ist. Da der IMAP-Proxy auf dem gleichen System wie der Mailserver läuft, lassen wir nur lokale Verbindungen zu.<br />
Wenn nun ein Programm/Skript den IMAP-Proxy nutzen soll, gibt man Port 1143 an, anstatt Port 143.</p>
<h1>roundcube</h1>
<p>Für <em>roundcube</em> brauchen wir zunächst einen vHost. Im Weiteren wird davon ausgegangen, dass <em>roundcube</em> unter <em>https://webmail.domain.tld/</em> verfügbar ist.<br />
Zunächst muss die neueste <em>roundcube</em> Version von <a href="http://roundcube.net/" target="_blank">http://roundcube.net/</a> heruntergeladen und in den vHost entpackt werden, damit es über <em>https://webmail.domain.tld/</em> verfügbar ist.<br />
Nun legen wir eine Datenbank inkl. Benutzer für <em>roundcube</em> an und importieren das postgres-Schema:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">su</span> - postgres
psql template1
CREATE USER roundcube WITH PASSWORD <span style="color: #ff0000;">'password'</span>;
CREATE DATABASE roundcube WITH OWNER roundcube ENCODING <span style="color: #ff0000;">'UNICODE'</span>;
\c - roundcube
\i <span style="color: #000000; font-weight: bold;">/</span>PFAD<span style="color: #000000; font-weight: bold;">/</span>ZU<span style="color: #000000; font-weight: bold;">/</span>ROUNDCUBE<span style="color: #000000; font-weight: bold;">/</span>SQL<span style="color: #000000; font-weight: bold;">/</span>postgres.initial.sql
\q</pre></div></div>

<p>Nun rufen wir im Browser roundcube auf, hängen der URL aber noch "<em>/installer</em>" an und folgen danach den Anweisungen. Nachden wir die Konfigurationsdateien kopiert und am aufgeforderten Ort gespeichert haben, können wir <em>roundcube</em> über den Browser aufrufen und uns mit unserem IMAP-Benutzernamen und -passwort anmelden. <strong>Jedoch</strong> sollte man damit noch warten, bis <em>postfixadmin-bridge</em> installiert ist, denn dann wird automatisch der vollständige Name aus den <em>postfixadmin</em>-Tabellen übernommen.</p>
<h2>postfixadmin-bridge</h2>
<p>Zur Installation von <em><a href="http://nejc.skoberne.net/projects/rcpfa/" target="_blank">rcpfa</a></em> (= <em>postfixadmin-bridge</em>) wird <em>patch</em> benötigt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">patch</span></pre></div></div>

<p>Danach entpackt man <em>rcpfa</em> in den <em>roundcube</em> Ordner, wechselt in das neue Unterverzeichnis und führt folgenden Befehl aus:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span> INSTALL.TXT</pre></div></div>

<p>Sollten während des Patch-Vorgangs Probleme auftreten, kann man sich die *.rej-Dateien anschauen und die Probleme ggf. händisch lösen. Nach der Installation muss noch die <em>roundcube</em>-Konfiguration angepasst werden (beim Patchen wurden neue Variablen in der Konfiguration hinzugefügt) und danach kann man im Einstellungs-Tab von <em>roundcube</em> Einstellungen aus <em>postfixadmin</em> ändern.</p>
<h2>sieve rules</h2>
<p>Das sieve-Plugin für roundcube kann man hier herunterladen: <a href="http://www.tehinterweb.co.uk/roundcube/#ptsieverules" target="_blank">http://www.tehinterweb.co.uk/roundcube/#ptsieverules</a> und anschließend mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-ul</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>PFAD<span style="color: #000000; font-weight: bold;">/</span>ZU<span style="color: #000000; font-weight: bold;">/</span>ROUNDCUBE<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-p1</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>PFAD<span style="color: #000000; font-weight: bold;">/</span>ZUM<span style="color: #000000; font-weight: bold;">/</span>PATCH</pre></div></div>

<p>installieren.<br />
Die parallele Installation von <em>rcpfa</em> und <em>sieve rules</em> ist problematisch, da der Patch-Vorgang sehr wahrscheinlich an einer Stelle fehlschlägt und man selbst Hand anlegen muss.<br />
Auch dieses Plugin hat Variablen zur <em>roundcube</em>-Konfiguration hinzugefügt, die angepasst werden müssen, bevor das Plugin benutzt werden kann.</p>
<h1>mutt</h1>
<p>Um auch über die Konsole auf E-Mails zugreifen kann, installieren wir zusätzlich noch <em>mutt</em>. Manche Leute fragen sich vielleicht, wozu man einen Konsolenmailer braucht, bzw. brauchen könnte. Ein interessanter Punkt ist, dass <em>mutt</em> einen weitaus größeren Funktionsumfang als ein Webmailer bietet und außerdem sieht es auch schick aus, wenn man seine Mails auf der Konsole liest.</p>
<p>Installation:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mutt</pre></div></div>

<p>Eine einfache Konfiguration ("<em>~/.muttrc</em>"):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">folder</span>=<span style="color: #ff0000;">&quot;imap://localhost&quot;</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">spoolfile</span>=<span style="color: #ff0000;">&quot;imap://localhost/INBOX&quot;</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">imap_authenticators</span>=<span style="color: #ff0000;">&quot;LOGIN&quot;</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">imap_user</span>=<span style="color: #ff0000;">&quot;username&quot;</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">imap_pass</span>=<span style="color: #ff0000;">&quot;password&quot;</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">move</span>=no
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">editor</span>=<span style="color: #ff0000;">'vim -c &quot;set t_Co=8&quot; -c &quot;syntax on&quot; -c &quot;/^$&quot; -c &quot;set tw=72&quot; -c &quot;set number&quot;'</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">header_cache</span>=~<span style="color: #000000; font-weight: bold;">/</span>.mutt_header</pre></div></div>

<p>Die <em>mutt</em>-Konfiguration ist sehr rudimentär und sollte zusätzlich noch an die eigenen Bedürfnisse angepasst werden, z.B. Sent-Ordner definieren, GPG-Schlüssel definieren, ...</p>
<p>Quellen:</p>
<p>http://roundcube.net/</p>
<p>http://nejc.skoberne.net/projects/rcpfa/</p>
<p>http://www.tehinterweb.co.uk/roundcube/#ptsieverules</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2009/04/04/der-neue-server-teil-7-roundcube/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
