<?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>Marco Ziesing &#187; server</title>
	<atom:link href="http://marco-ziesing.de/archives/tag/server-2/feed" rel="self" type="application/rss+xml" />
	<link>http://marco-ziesing.de</link>
	<description>Development &#38; System Administration</description>
	<lastBuildDate>Sun, 20 Nov 2011 21:58:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel='hub' href='http://marco-ziesing.de/?pushpress=hub'/>
		<item>
		<title>Blacklists für Spamassassin per Cronjob aktualisieren</title>
		<link>http://marco-ziesing.de/archives/7-blacklists-fur-spamassassin-per-cronjob-aktualisieren.html</link>
		<comments>http://marco-ziesing.de/archives/7-blacklists-fur-spamassassin-per-cronjob-aktualisieren.html#comments</comments>
		<pubDate>Thu, 10 May 2007 15:42:00 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://marco-ziesing.de/wordpress/?p=7</guid>
		<description><![CDATA[Für alle deren Rechner bzw. Server über ausreichend Speicher verfügt, habe ich hier ein nettes Shell-Script geschrieben, welches die Blacklists für Spamassassin von Stearns.org lädt. #!/bin/sh cd /etc/mail/spamassassin # Connection check URL_check=&#8221;http://www.sa-blacklist.stearns.org/sa-blacklist/&#8221; wget -t 1 -O check.html &#8220;$URL_check&#8221; -o check.log # Run only if no &#8216;ERROR&#8217; or &#8216;Giving up&#8217; found in check.log err=`grep -i &#8216;Giving [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Für alle deren Rechner bzw. Server über ausreichend Speicher verfügt, habe ich hier ein nettes Shell-Script geschrieben, welches die <a href="http://www.sa-blacklist.stearns.org/sa-blacklist/">Blacklists für Spamassassin von Stearns.org</a> lädt.</p>
<blockquote><p>#!/bin/sh</p>
<p>cd /etc/mail/spamassassin</p>
<p># Connection check<br />
URL_check=&#8221;http://www.sa-blacklist.stearns.org/sa-blacklist/&#8221;<br />
wget -t 1 -O check.html &#8220;$URL_check&#8221; -o check.log</p>
<p># Run only if no &#8216;ERROR&#8217; or &#8216;Giving up&#8217; found in check.log<br />
err=`grep -i &#8216;Giving up&#8217; check.log | wc -l`<br />
err2=`grep -i ERROR check.log | wc -l`</p>
<p>if [ $err == 0 ] &amp;&amp; [ $err2 == 0 ]; then</p>
<p># Sender Domains<br />
URL1=&#8221;http://www.sa-blacklist.stearns.org/sa-blacklist/sa-blacklist.current.cf&#8221;<br />
wget -O sa-blacklist.current.cf &#8220;$URL1&#8243;</p>
<p># URLs in the messages<br />
URL2=&#8221;http://www.sa-blacklist.stearns.org/sa-blacklist/sa-blacklist.current.uri.cf&#8221;<br />
wget -O sa-blacklist.current.uri.cf &#8220;$URL2&#8243;</p>
<p># Forgotten Tags<br />
URL3=&#8221;http://www.sa-blacklist.stearns.org/sa-blacklist/random.current.cf&#8221;<br />
wget -O random.current.cf &#8220;$URL3&#8243;</p>
<p># Restart Spamassassin<br />
/etc/init.d/spamassassin restart</p>
<p>fi</p></blockquote>
<p>Das ganze in eine Textdatei, z.B. get-blacklists.sh, speichern und mit <em>chmod +x get-blacklists.sh</em> Rechte zum Ausführen vergeben. Dann noch mit <em>crontab -e</em> folgende Zeile einfügen</p>
<blockquote><p>5 1 * * * /pfad/zum/script.sh</p></blockquote>
<p>um das Skript jede Nacht um 1:05 Uhr ausführen zu lassen und das Ganze mit <em>:wq</em> sichern.</p>
<div class="shr-publisher-7"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --> <p><a href="http://marco-ziesing.de/?flattrss_redirect&amp;id=7&amp;md5=4f283a77600268fa9733a9f88acaf003" title="Flattr" target="_blank"><img src="https://marco-ziesing.de/wp-content/plugins/flattrss/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://marco-ziesing.de/archives/7-blacklists-fur-spamassassin-per-cronjob-aktualisieren.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=28852&amp;popout=1&amp;url=http%3A%2F%2Fmarco-ziesing.de%2Farchives%2F7-blacklists-fur-spamassassin-per-cronjob-aktualisieren.html&amp;language=de_DE&amp;category=text&amp;title=Blacklists+f%C3%BCr+Spamassassin+per+Cronjob+aktualisieren&amp;description=F%C3%BCr+alle+deren+Rechner+bzw.+Server+%C3%BCber+ausreichend+Speicher+verf%C3%BCgt%2C+habe+ich+hier+ein+nettes+Shell-Script+geschrieben%2C+welches+die+Blacklists+f%C3%BCr+Spamassassin+von+Stearns.org+l%C3%A4dt.+%23%21%2Fbin%2Fsh+cd+%2Fetc%2Fmail%2Fspamassassin+%23+Connection...&amp;tags=linux%2Cserver%2Cspam%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

