<?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>(christian.)samsel.name &#187; Rootserver</title>
	<atom:link href="http://christian.samsel.name/category/rootserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://christian.samsel.name</link>
	<description>Studium, Linux und was mich sonst noch so bewegt »</description>
	<lastBuildDate>Mon, 21 Jun 2010 18:13:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>spam. revisited</title>
		<link>http://christian.samsel.name/2008/02/spam-revisited/</link>
		<comments>http://christian.samsel.name/2008/02/spam-revisited/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 20:01:44 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[OpenSource / Linux]]></category>
		<category><![CDATA[Rootserver]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2008/02/spam-revisited/</guid>
		<description><![CDATA[cd /var/amavis/quarantine rm spam-* /bin/rm: Argument list too long. Huch? ls &#124; wc -l 128926 Ui. time nice -n 19 find /var/amavis/quarantine/ -name &#34;spam-*.gz&#34; &#124; xargs zcat &#62;&#62; /var/spam-mbox-2006-2007 &#160; real 23m50.562s user 0m17.353s sys 0m15.173s &#160; ls -lah /var/spam-mbox -rw-r--r-- 1 root root 627M Feb 15 20:18 /var/spam-mbox-2006-2007 &#160; ls /var/amavis/quarantine/spam-* &#124; xargs rm [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>amavis<span style="color: #000000; font-weight: bold;">/</span>quarantine
<span style="color: #c20cb9; font-weight: bold;">rm</span> spam-<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">rm</span>: Argument list too long.</pre></div></div>

<p>Huch?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-l</span>
<span style="color: #000000;">128926</span></pre></div></div>

<p>Ui.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">nice</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">19</span> <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>amavis<span style="color: #000000; font-weight: bold;">/</span>quarantine<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;spam-*.gz&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">zcat</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spam-mbox-<span style="color: #000000;">2006</span>-<span style="color: #000000;">2007</span>
&nbsp;
real    23m50.562s
user    0m17.353s
sys     0m15.173s
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lah</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spam-mbox
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root 627M Feb <span style="color: #000000;">15</span> <span style="color: #000000;">20</span>:<span style="color: #000000;">18</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>spam-mbox-<span style="color: #000000;">2006</span>-<span style="color: #000000;">2007</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>amavis<span style="color: #000000; font-weight: bold;">/</span>quarantine<span style="color: #000000; font-weight: bold;">/</span>spam-<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span></pre></div></div>

<p>Tschö.</p>
<p>Also wenn mal jemand was Futter für sa-learn braucht&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2008/02/spam-revisited/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Geschützt: E-Technik für RZ-Betreiber</title>
		<link>http://christian.samsel.name/2007/10/e-technik-fur-rzler/</link>
		<comments>http://christian.samsel.name/2007/10/e-technik-fur-rzler/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 12:19:42 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>
		<category><![CDATA[ipx]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2007/10/e-technik-fur-dummies/</guid>
		<description><![CDATA[Es gibt keine Kurzfassung, da dies ein geschützter Artikel ist.]]></description>
			<content:encoded><![CDATA[<form action="http://christian.samsel.name/wp-pass.php" method="post">
<p>Dieser Artikel ist durch ein Passwort geschützt. <br />Um ihn anzusehen, trage es bitte hier ein:</p>
<p><label for="pwbox-115">Passwort:<br />
<input name="post_password" id="pwbox-115" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Senden" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2007/10/e-technik-fur-rzler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>p0f für amavisd-new unter Gentoo (Teil 2)</title>
		<link>http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo-teil-2/</link>
		<comments>http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo-teil-2/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 10:33:59 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>
		<category><![CDATA[amavisd-new]]></category>
		<category><![CDATA[p0f]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo-teil-2/</guid>
		<description><![CDATA[So. Nach ein paar Tagen wollte ich dann auch mal den Erfolg von P0F überprüfen. Dazu habe ich logwatch benutzt. Mit folgendem Befehl bekommt man z.B. eine schöne Übersicht über amavisd-new: emerge -u logwatch logwatch.pl --detail High --service amavis --range '-3 days' Interessant ist in diesem Fall die Auflistung der Regeln, hier mal die P0F [...]]]></description>
			<content:encoded><![CDATA[<p>So. Nach ein paar Tagen wollte ich dann auch mal den Erfolg von P0F überprüfen. Dazu habe ich logwatch benutzt. Mit folgendem Befehl bekommt man z.B. eine schöne Übersicht über amavisd-new:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">emerge <span style="color: #660033;">-u</span> logwatch
logwatch.pl <span style="color: #660033;">--detail</span> High <span style="color: #660033;">--service</span> amavis <span style="color: #660033;">--range</span> <span style="color: #ff0000;">'-3 days'</span></pre></div></div>

<p>Interessant ist in diesem Fall die Auflistung der Regeln, hier mal die P0F Regeln ausgeschnitten:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> Rank     Hits    <span style="color: #000000; font-weight: bold;">%</span> Msgs   <span style="color: #000000; font-weight: bold;">%</span> Spam    <span style="color: #000000; font-weight: bold;">%</span> Ham     Rule
 <span style="color: #660033;">----</span>     <span style="color: #660033;">----</span>    <span style="color: #660033;">------</span>   <span style="color: #660033;">------</span>    <span style="color: #660033;">-----</span>     <span style="color: #660033;">----</span>
    <span style="color: #000000;">7</span>      <span style="color: #000000;">508</span>    <span style="color: #000000;">88.81</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">123.90</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">8.64</span><span style="color: #000000; font-weight: bold;">%</span>     L_P0F_OS_WINDOWS_OTHER
   <span style="color: #000000;">16</span>      <span style="color: #000000;">196</span>    <span style="color: #000000;">34.27</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">47.80</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">35.80</span><span style="color: #000000; font-weight: bold;">%</span>     L_P0F_OS_UNKOWN
   <span style="color: #000000;">22</span>      <span style="color: #000000;">104</span>    <span style="color: #000000;">18.18</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">25.37</span><span style="color: #000000; font-weight: bold;">%</span>    <span style="color: #000000;">0.00</span><span style="color: #000000; font-weight: bold;">%</span>     L_P0F_OS_WINDOWSXP
   <span style="color: #000000;">27</span>       <span style="color: #000000;">84</span>    <span style="color: #000000;">14.69</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">20.49</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">11.11</span><span style="color: #000000; font-weight: bold;">%</span>     L_P0F_D_7_9
   <span style="color: #000000;">96</span>       <span style="color: #000000;">12</span>     <span style="color: #000000;">2.10</span><span style="color: #000000; font-weight: bold;">%</span>    <span style="color: #000000;">2.93</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">19.75</span><span style="color: #000000; font-weight: bold;">%</span>     L_P0F_OS_LINUX
  <span style="color: #000000;">138</span>        <span style="color: #000000;">4</span>     <span style="color: #000000;">0.70</span><span style="color: #000000; font-weight: bold;">%</span>    <span style="color: #000000;">0.98</span><span style="color: #000000; font-weight: bold;">%</span>   <span style="color: #000000;">12.35</span><span style="color: #000000; font-weight: bold;">%</span>     L_P0F_D_5_6</pre></div></div>

<p><span id="more-112"></span><br />
Nach diesen Zahlen habe ich die Regeln wie folgt angepasst:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">header L_P0F_OS_WINDOWSXP   X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^Windows XP<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_WINDOWSXP   <span style="color: #000000;">3.5</span>
header L_P0F_OS_WINDOWS_OTHER X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^Windows<span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span> XP<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_WINDOWS_OTHER <span style="color: #000000;">2.5</span>
header L_P0F_OS_UNKOWN  X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^UNKNOWN<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_UNKOWN  <span style="color: #000000;">0.2</span>
header L_P0F_OS_LINUX  X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^Linux<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_LINUX  -<span style="color: #000000;">0.5</span>
header L_P0F_OS_UNIX  X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>Free<span style="color: #000000; font-weight: bold;">|</span>Open<span style="color: #000000; font-weight: bold;">|</span>Net<span style="color: #7a0874; font-weight: bold;">&#41;</span>BSD<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">|</span>Solaris<span style="color: #000000; font-weight: bold;">|</span>HP-UX<span style="color: #000000; font-weight: bold;">|</span>Tru64<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_UNIX  -<span style="color: #000000;">1.0</span>
&nbsp;
header L_P0F_D_1_4 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
header L_P0F_D_5_7 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">5</span>-<span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
header L_P0F_D_8_10 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">10</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
header L_P0F_D_10_20 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">11</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">13</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">14</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">15</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">17</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">18</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">19</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">20</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
score  L_P0F_D_1_4 -<span style="color: #000000;">0.7</span>
score  L_P0F_D_5_7 -<span style="color: #000000;">0.5</span>
score  L_P0F_D_8_10 <span style="color: #000000;">0.3</span>
score  L_P0F_D_10_20 <span style="color: #000000;">0.5</span></pre></div></div>

<p>Ich habe die Scores angepasst und auch die Distance Intervalle. [5-6] und [7-9] war wohl nicht optimal gewählt. Eigentlich müsste man die Windowsversionen genauer unterscheiden.  Leider ist das anhand des P0F outputs kaum möglich. </p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo-teil-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>p0f für amavisd-new unter Gentoo</title>
		<link>http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo/</link>
		<comments>http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 23:05:46 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>
		<category><![CDATA[amavisd-new]]></category>
		<category><![CDATA[p0f]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo/</guid>
		<description><![CDATA[p0f ist ein Programm das passiv bei einer TCP-Verbindung das Betriebsystem des anderen Rechners erkennt. Es besteht offensichtlich ein Zusammenhang zwischen Betriebsystem des Rechners der eMails einliefert und der Spamwahrscheinlichkeit. amavisd-new kann sich dies mit Hilfe von p0f zu nutze machen. Hier eine Anleitung zur Einrichtung unter Gentoo. Ich geh davon aus, dass amavisd-new bereits [...]]]></description>
			<content:encoded><![CDATA[<p>p0f ist ein Programm das passiv bei einer TCP-Verbindung das Betriebsystem des anderen Rechners erkennt. Es besteht offensichtlich ein Zusammenhang zwischen Betriebsystem des Rechners der eMails einliefert und der Spamwahrscheinlichkeit. amavisd-new kann sich dies mit Hilfe von p0f zu nutze machen.<br />
Hier eine Anleitung zur Einrichtung unter Gentoo. Ich geh davon aus, dass amavisd-new bereits komplett eingerichtet ist.</p>
<p>Erstmal braucht man die aktuelleste amavisd-new Version und p0f (stable reicht):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;mail-filter/amavisd-new ~x86&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage<span style="color: #000000; font-weight: bold;">/</span>package.keywords
emerge <span style="color: #660033;">-u</span> net-analyzer<span style="color: #000000; font-weight: bold;">/</span>p0f  mail-filter<span style="color: #000000; font-weight: bold;">/</span>amavisd-new</pre></div></div>

<p><span id="more-111"></span><br />
Sobald beides installiert ist, startet man p0f-analyzer:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">p0f <span style="color: #660033;">-l</span> <span style="color: #ff0000;">'tcp dst port 25'</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> p0f-analyzer.pl <span style="color: #000000;">2345</span> <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

<p>Jetzt muss p0f in der /etc/amavisd.conf aktiviert werden, dazu folgende Zeile auskommentieren (Zeile ~115):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$os_fingerprint_method</span> = <span style="color: #ff0000;">'p0f:127.0.0.1:2345'</span>;  <span style="color: #666666; font-style: italic;"># query p0f-analyzer.pl</span></pre></div></div>

<p>Jetzt fehlt nur noch ein Regelsatz für SpamAssassin. Einfach eine Datei /etc/spamasassin/p0f.cf mit folgendem Inhalt erstellen und bei Bedarf anpassen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">header L_P0F_OS_WINDOWSXP   X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^Windows XP<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_WINDOWSXP   <span style="color: #000000;">3.5</span>
header L_P0F_OS_WINDOWS_OTHER X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^Windows<span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span> XP<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_WINDOWS_OTHER <span style="color: #000000;">1.7</span>
header L_P0F_OS_UNKOWN  X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^UNKNOWN<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_UNKOWN  <span style="color: #000000;">0.8</span>
header L_P0F_OS_LINUX  X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^Linux<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_LINUX  -<span style="color: #000000;">0.3</span>
header L_P0F_OS_UNIX  X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>^<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>Free<span style="color: #000000; font-weight: bold;">|</span>Open<span style="color: #000000; font-weight: bold;">|</span>Net<span style="color: #7a0874; font-weight: bold;">&#41;</span>BSD<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">|</span>Solaris<span style="color: #000000; font-weight: bold;">|</span>HP-UX<span style="color: #000000; font-weight: bold;">|</span>Tru64<span style="color: #000000; font-weight: bold;">/</span>
score  L_P0F_OS_UNIX  -<span style="color: #000000;">1.0</span>
&nbsp;
header L_P0F_D_1_4 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
header L_P0F_D_5_6 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">5</span>-<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
header L_P0F_D_7_9 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">7</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
header L_P0F_D_15_25 X-Amavis-OS-Fingerprint =~ <span style="color: #000000; font-weight: bold;">/</span>\bdistance <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">15</span>-<span style="color: #000000;">25</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>?<span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
score  L_P0F_D_1_4 -<span style="color: #000000;">0.7</span>
score  L_P0F_D_5_6 -<span style="color: #000000;">0.5</span>
score  L_P0F_D_7_9 -<span style="color: #000000;">0.3</span>
score  L_P0F_D_15_25 <span style="color: #000000;">0.3</span></pre></div></div>

<p>Der erste Block vergibt Punkte anhand des Betriebsystems, der zweite Block anhand der &#8220;Entfernung&#8221; sprich der Hops zum einliefernden Host.</p>
<p>Quelle:<a href="http://mail-archives.apache.org/mod_mbox/spamassassin-users/200604.mbox/%3C200604121239.22708.Mark.Martinec+sa@ijs.si%3E">http://mail-archives.apache.org/m&#8230;.Mark.Martinec+sa@ijs.si%3E</a><br />
Weitere Infos: <a href="http://lcamtuf.coredump.cx/p0f.shtml">http://lcamtuf.coredump.cx/p0f.shtml</a>, <a href="http://www.ijs.si/software/amavisd/">http://www.ijs.si/software/amavisd/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2007/10/p0f-fur-amavisd-new-unter-gentoo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Horde Absenderadressen aus Confixx auslesen</title>
		<link>http://christian.samsel.name/2007/09/horde-absenderadressen-aus-confixx-auslesen/</link>
		<comments>http://christian.samsel.name/2007/09/horde-absenderadressen-aus-confixx-auslesen/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 15:15:19 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>
		<category><![CDATA[confixx]]></category>
		<category><![CDATA[horde]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2007/09/horde-absenderadressen-aus-confixx-auslesen/</guid>
		<description><![CDATA[Der Horde Framework bzw. Horde/IMP ist ein sehr mächtiger Webmailer. Standardmäßig können Benutzer in den persönlichen Einstellungen eine beliebige Absenderadressen für ihre eMails einstellen. Das ist in einer Shared-Hosting Umgebung natürlich nicht sinnvoll. Jedoch kann man bei Horde für fast alle Einstellungen und Optionen sogenannte Hooks einstellen die die entsprechenden Felder ausfüllen. In diesem Fall [...]]]></description>
			<content:encoded><![CDATA[<p>Der Horde Framework bzw. Horde/IMP ist ein sehr mächtiger Webmailer. Standardmäßig können Benutzer in den persönlichen Einstellungen eine beliebige Absenderadressen für ihre eMails einstellen. Das ist in einer Shared-Hosting Umgebung natürlich nicht sinnvoll. Jedoch kann man bei Horde für fast alle Einstellungen und Optionen sogenannte Hooks einstellen die die entsprechenden Felder ausfüllen. In diesem Fall soll die Absenderadresse aus der Confixxdatenbank anhand des POP3/IMAP Kontos gehohlt werden.<br />
Eine funktionsfähige Horde/IMP Installation setzte ich mal Vorraus. Die Anleitung bezieht sich auf Horde 3.1.4 und IMP 4.1.4.<br />
<span id="more-109"></span><br />
Zuerst wird folgende Funktion in die Datei <em>horde/hooks.php</em> eingefügt:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_prefs_hook_from_addr'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">function</span> _prefs_hook_from_addr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #666666; font-style: italic;">// Confixx Datenbank Passwort ändern</span>
     <span style="color: #000088;">$dbserver</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">;</span> <span style="color: #000088;">$dbuser</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'confixx'</span><span style="color: #339933;">;</span> <span style="color: #000088;">$passw</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ABCDE'</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dbserver</span><span style="color: #339933;">,</span><span style="color: #000088;">$dbuser</span><span style="color: #339933;">,</span><span style="color: #000088;">$passw</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'confixx'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$query_from</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT prefix,domain FROM email_forward INNER JOIN email on email_forward.email_ident = email.ident WHERE `pop3` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$user</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_from</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;*&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$from_email</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;catchall@&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$from_email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;@&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$from_email</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mail-admin@&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #990000;">mysql_free_result</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$from_email</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$user</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$from_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Jetzt muss der Hook noch aktiviert werden. Dazu muss in der Datei <em>horde/prefs.php</em> der Block für from_addr so aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$_prefs</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'from_addr'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'value'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'locked'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'shared'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'hook'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'desc'</span> <span style="color: #339933;">=&gt;</span>  _<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Your From: address:&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Damit wird der Hook aktiviert (&#8216;hook&#8217; => true) und die Veränderung der Variable verhindert (&#8216;locked&#8217; => true).<br />
Viel Spaß</p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2007/09/horde-absenderadressen-aus-confixx-auslesen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Confixx &lt;= PRO 3.3.1 Remote File Inclusion Vulnerability</title>
		<link>http://christian.samsel.name/2007/07/confixxpro-331-remote-file-inclusion-vulnerability/</link>
		<comments>http://christian.samsel.name/2007/07/confixxpro-331-remote-file-inclusion-vulnerability/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 17:04:39 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>
		<category><![CDATA[confixx]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2007/07/confixx/</guid>
		<description><![CDATA[zu lesen unter: http://xpkzxc.com/exploits/confixx.txt. Die Lücke lässt sich aber leicht schließen. z.B. mit folgender /var/www/confixx/html/admin/business_inc/.htaccess (Pfad muss möglicherweise angepasst werden): deny from all Außerdem verwendet Confixx folgende PHP Einstellungen für seinen VHost: php_admin_value allow_url_fopen off php_admin_value open_basedir /var/www/confixx damit ist die Gefahr nicht sonderlich groß. Apropos Confixx: Falls ihr Probleme bei hinzufügen von SSL Zertifikaten [...]]]></description>
			<content:encoded><![CDATA[<p>zu lesen unter: <a href="http://xpkzxc.com/exploits/confixx.txt">http://xpkzxc.com/exploits/confixx.txt</a>.  </p>
<p>Die Lücke lässt sich aber leicht schließen. z.B. mit folgender <em>/var/www/confixx/html/admin/business_inc/.htaccess</em> (Pfad muss möglicherweise angepasst werden):</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span></pre></div></div>

<p><span id="more-107"></span><br />
Außerdem verwendet Confixx folgende PHP Einstellungen für seinen VHost:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">php_admin_value</span> allow_url_fopen <span style="color: #0000ff;">off</span> 
<span style="color: #00007f;">php_admin_value</span> open_basedir /var/www/confixx</pre></div></div>

<p>damit ist die Gefahr nicht sonderlich groß.</p>
<p>Apropos Confixx: Falls ihr Probleme bei hinzufügen von SSL Zertifikaten habt: <a href="http://forum.swsoft.com/showthread.php?s=&#038;threadid=45385">http://forum.swsoft.com/showthread.php?s=&#038;threadid=45385</a>.</p>
<p>UPDATE: Jetzt auch auf <a href="http://www.heise.de/newsticker/meldung/93627">heise.de</a></p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2007/07/confixxpro-331-remote-file-inclusion-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neuer Server (Neuigkeiten Part 2)</title>
		<link>http://christian.samsel.name/2006/10/neuer-server/</link>
		<comments>http://christian.samsel.name/2006/10/neuer-server/#comments</comments>
		<pubDate>Sat, 28 Oct 2006 15:33:15 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2006/10/neuer-server/</guid>
		<description><![CDATA[Als das es nicht genug gewesen wäre, dass mein Notebook kaputt gegangen ist, nein. Alturo, der Betreiber meines RootServers, macht dicht. Jetzt habe ich eine Server bei IPX, dieser ist war leider deutlich teuer, jedoch habe ich hier den Traffic frei. Mal sehen, was ich damit so anstelle&#8230;. Der Umzug war kein Problem. Ich habe [...]]]></description>
			<content:encoded><![CDATA[<p>Als das es nicht genug gewesen wäre, dass mein Notebook kaputt gegangen ist, nein. Alturo, der Betreiber meines RootServers, macht dicht. Jetzt habe ich eine Server bei IPX, dieser ist war leider deutlich teuer, jedoch habe ich hier den Traffic frei. Mal sehen, was ich damit so anstelle&#8230;. Der Umzug war kein Problem. Ich habe den neuen Server übers Rescue System neu partitioniert und dann einfach per rsync den alten Server auf den neuen geklont. Nach ein paar kleinen Änderungen am kernel (andere Netzwerk und IDE Treiber) und der Netzwerkkonfiguration lief der Server dann auch schon. Allerdings musste ich Confixx neuinstallieren, weil sich die Lizenz nicht hat aktivieren lasssen. Alles in allem aber nur wenige Stunden Arbeit. </p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2006/10/neuer-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>poweroff</title>
		<link>http://christian.samsel.name/2006/07/poweroff/</link>
		<comments>http://christian.samsel.name/2006/07/poweroff/#comments</comments>
		<pubDate>Mon, 10 Jul 2006 18:31:53 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Rootserver]]></category>

		<guid isPermaLink="false">http://christian.samsel.name/2006/07/poweroff/</guid>
		<description><![CDATA[Notiz an mich selbst: Ausführung von poweroff, halt, shutdown auf entfernten Rechnern verhindern&#8230;.]]></description>
			<content:encoded><![CDATA[<p>Notiz an mich selbst: Ausführung von <em>poweroff</em>, <em>halt</em>, <em>shutdown</em> auf entfernten Rechnern verhindern&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://christian.samsel.name/2006/07/poweroff/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
