<?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>Sebastian Mogilowskis Blog &#187; filter</title>
	<atom:link href="http://www.mogilowski.net/lang/de-de/tag/filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mogilowski.net</link>
	<description>Just another blog about administration, linux and other stuff</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:26:33 +0000</lastBuildDate>
	<language>de-de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Postfix with Spamassassin filter your mails</title>
		<link>http://www.mogilowski.net/lang/de-de/2008/09/22/postfix-with-spamassassin-filter-your-mails</link>
		<comments>http://www.mogilowski.net/lang/de-de/2008/09/22/postfix-with-spamassassin-filter-your-mails#comments</comments>
		<pubDate>Mon, 22 Sep 2008 09:33:27 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systemadministration]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=55&amp;lang=de-de</guid>
		<description><![CDATA[Dieser Artikel beschreibt, wie man Spam E-Mails mit Spamassassin filtern und automatisch in ein eigenes Postfach zustellen lässt. Außerdem soll ein Skript diese Mails automatisch nach 7 Tagen löschen. Ich benutze dazu einen Postfix Mailserver unter Debian Etch sowie Amavis und Spamassasin. Zuerst soll nur wirklicher Spam verschoben werden, normalerweise bekommen echte Mails niemals einen [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="de-de">Dieser Artikel beschreibt, wie man Spam E-Mails mit Spamassassin filtern und automatisch in ein eigenes Postfach zustellen lässt. Außerdem soll ein Skript diese Mails automatisch nach 7 Tagen löschen.</span></p>
<p><span lang="de-de">Ich benutze dazu einen Postfix Mailserver unter Debian Etch sowie Amavis und Spamassasin.</span></p>
<p><span lang="de-de">Zuerst soll nur wirklicher Spam verschoben werden, normalerweise bekommen echte Mails niemals einen Spamscore über 7 Punkte. Deshalb passt man zuerst die Spamassassinkonfiguration an:</span></p>
<pre>vim /etc/spamassassin/local.cf</pre>
<pre>required_hits 7.0</pre>
<p><span lang="de-de">Danch muss noch das automatische Verschieben in das Spampostfach eingerichtet werden:</span></p>
<pre>vim /etc/postfix/main.cf</pre>
<pre>
# Spam Forward
header_checks = regexp:/etc/postfix/header_checks
</pre>
<pre>
vim /etc/postfix/header_checks
</pre>
<pre>
/^X-Spam-Flag: YES/ REDIRECT spam@yourdomain.com
</pre>
<pre>/etc/init.d/postfix reload</pre>
<p><span lang="de-de">Nun werden alle Mails mit dem Spam-Flag=Yes automatisch in das Postfach von spam@yourdomain.com geleitet. Wenn man eine wichtige E-Mail vermisst, dann kann man in diesem Postfach nachsehen.</span></p>
<p><span lang="de-de">Zuletzt soll noch ein Skript angelegt werden, welches die Mails nach 7 Tagen löscht.</span></p>
<pre>vim /usr/local/bin/deleteOldSpam.sh</pre>
<pre>
#!/bin/bash
find /path/to/your/mailhome/cur -type f -mtime +7 -exec rm {} \;
</pre>
<p>After that create an cronjob for this script:</p>
<pre>crontab -e</pre>
<pre>
0  1 * * * /usr/local/bin/deleteOldSpam.sh # Delete old Spammails
</pre>
<p><span lang="de-de">Jetzt werden jeden Tag um 01:00 Uhr alle Mails im Postfach des Spam-Accounts automatisch gelöscht.</span></p>
<p><span lang="de-de">Nicht vergessen den Pfad /path/to/your/mailhome/cur anzupassen, wo die Mails des Spam Users gespeichert werden. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/de-de/2008/09/22/postfix-with-spamassassin-filter-your-mails/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
