<?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>tom's blog &#187; exim</title>
	<atom:link href="http://tom.knaupp.com/tag/exim/feed/" rel="self" type="application/rss+xml" />
	<link>http://tom.knaupp.com</link>
	<description>free software, security and a bunch of my strange thoughts</description>
	<lastBuildDate>Fri, 21 Jan 2011 00:13:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>exim graphs</title>
		<link>http://tom.knaupp.com/2009/02/25/exim-graphs/</link>
		<comments>http://tom.knaupp.com/2009/02/25/exim-graphs/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 21:21:27 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Mailserver]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[statistic]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=186</guid>
		<description><![CDATA[Because I did not found a tool to create graphs (the way I want it) from exim logs, I wrote a little bash script that suits my needs. &#160; Example graph: &#160; &#160; Download: exim_rrd-0.9.5.1 (updated 2009-03-07 [bugfix]) &#160; I&#8217;m not a programmer, so the script can be improved &#8211; no question : ) If [...]]]></description>
			<content:encoded><![CDATA[<p>Because I did not found a tool to create graphs (the way I want it)<br />
from exim logs, I wrote a little bash script that suits my needs.<br />
&nbsp;<br />
Example graph:<br />
&nbsp;<br />
<img class="alignnone size-full wp-image-185" title="mailfilter graph" src="http://tom.knaupp.com/wp-content/uploads/mailfilter-1week.png" alt="mailfilter graph" width="617" height="307" /><br />
&nbsp;<br />
Download: <a href="http://tom.knaupp.com/wp-content/uploads/exim_rrd-0.9.5">exim_rrd-0.9.5.1</a> (updated 2009-03-07 [bugfix])<br />
&nbsp;<br />
I&#8217;m not a programmer, so the script can be improved &#8211; no question : )<br />
If you have any hints, please tell me.<br />
&nbsp;<br />
&nbsp;<br />
Usage: run as cronjob, i.e.<br />
<code># mail statistic<br />
*/5 * * * * /usr/local/bin/exim_rrd > /dev/null 2> /dev/null</code><br />
&nbsp;<br />
&nbsp;<br />
dependencies:<br />
rrdtool [ <a href="http://oss.oetiker.ch/rrdtool/">http://oss.oetiker.ch/rrdtool/</a> ]  ^ thanks to Tobias Oetiker<br />
(e)grep<br />
- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -<br />
tested with:<br />
rrdtool 1.2.23, rrdtool 1.2.27<br />
openSUSE 10.3 (i586), exim 4.69 main log<br />
openSUSE 11.0 (i586), exim 4.69 main log</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2009/02/25/exim-graphs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>exim / implementing greylisting without db</title>
		<link>http://tom.knaupp.com/2007/03/28/exim-implementing-greylisting-without-db/</link>
		<comments>http://tom.knaupp.com/2007/03/28/exim-implementing-greylisting-without-db/#comments</comments>
		<pubDate>Wed, 28 Mar 2007 16:03:36 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Mailserver]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[greylisting]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=31</guid>
		<description><![CDATA[I had greylisting running for a while with a little perl script, that only worked with ip-addresses. As spam is growing an growing, I wanted to use the whole triplet (ip/sender/recipient) for the filter. As I did not want to use a database backend, the decision led to greylistd &#8211; an easy configurable daemon. I [...]]]></description>
			<content:encoded><![CDATA[<p>I had <a href="http://en.wikipedia.org/wiki/Greylisting" title="Wikipedia Article about Greylisting" target="_blank">greylisting</a> running for a while with a little perl script, that only worked with ip-addresses. As spam is growing an growing, I wanted to use the whole triplet (ip/sender/recipient) for the filter.<br />
<br />
As I did not want to use a database backend, the decision led to <a href="http://packages.qa.debian.org/g/greylistd.html" title="Debian page of greylistd" target="_blank">greylistd</a> &#8211; an easy configurable daemon. I needed the packages for (open)SuSE, that can be found in openSuSE&#8217;s <a href="http://software.opensuse.org/download/server:/mail/" title="openSuSE mail software repository">software repository</a>.<br />
<br />
After installing it and checking the basics at /etc/greylistd/config, you have to add a little code to your acls in exim.conf, i.e.:<br />
<br />
<code>defer message = greylisted $sender_host_address. please try again later<br />
condition = ${readsocket{/var/run/greylistd/socket}\<br />
{--grey $sender_host_address $sender_address $local_part@$domain} {5s}{}{false}}</code><br />
<br />
That was all I had to do to get it working. It&#8217;s advisable to add some hosts, that are known for problems with greylisting, not to be checked. Therefor you have to extend your acl:<br />
<br />
<code>defer message = greylisted $sender_host_address. please try again later<br />
!hosts = : ${if exists {/etc/greylistd/whitelist-hosts}\<br />
{/etc/greylistd/whitelist-hosts}{}} : \<br />
${if exists {/var/lib/greylistd/whitelist-hosts}\<br />
{/var/lib/greylistd/whitelist-hosts}{}}<br />
condition = ${readsocket{/var/run/greylistd/socket}\<br />
{--grey $sender_host_address $sender_address $local_part@$domain} {5s}{}{false}}</code><br />
<br />
Many thanks for the documentations from <a href="http://www.schirmacher.de/display/INFO/SPAM+filtern+mit+Greylisting?focusedCommentId=396" target="_blank" title="German Docu howto filter spam with exim">Arne Schirmacher</a> and <a href="http://spod.cx/blog/greylisting_with_exim_spamassassin.shtml" title="Greylisting with Exim 4 and Spamassassin" target="_blank">Ben Charlton</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2007/03/28/exim-implementing-greylisting-without-db/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>exim / remove (all) frozen messages from queue</title>
		<link>http://tom.knaupp.com/2007/03/22/exim-remove-all-frozen-messages/</link>
		<comments>http://tom.knaupp.com/2007/03/22/exim-remove-all-frozen-messages/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 18:03:35 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Mailserver]]></category>
		<category><![CDATA[Memento]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[queue]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=30</guid>
		<description><![CDATA[Just a quick &#38; dirty hack to delete frozen messages for a single / some recipient(s)&#8230; #!/bin/bash # # what are we searching for? # (part of the email-address) SEARCH="anyrecipient.tld" # # exim-bin EXIM=`which exim` # # execute (frozen messages only).. $EXIM -Mrm $(mailq &#124; grep $SEARCH -B1 &#124; grep frozen &#124;cut -c 11-27) Thanks [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick &amp; dirty hack to delete frozen messages for a single / some recipient(s)&#8230;<br />
<br />
<code>#!/bin/bash<br />
#<br />
# what are we searching for?<br />
# (part of the email-address)<br />
SEARCH="anyrecipient.tld"<br />
#<br />
# exim-bin<br />
EXIM=`which exim`<br />
#<br />
# execute (frozen messages only)..<br />
$EXIM -Mrm $(mailq | grep $SEARCH -B1 | grep frozen |cut -c 11-27)</code><br />
<br />
Thanks to <a href="http://tom.knaupp.com/?p=30#comment-5">Mark</a> -&gt; this can be done a lot of easier if you want to kill <strong>all</strong> frozen messages:<br />
<br />
<code>exiqgrep -z -i | xargs exim -Mrm</code><br />
<br />
If you want to do this only <strong>for some</strong> domains / email-addresses, use the first example.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2007/03/22/exim-remove-all-frozen-messages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

