<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Cyconet Blog &#187; spam</title>
	<atom:link href="http://blog.waja.info/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.waja.info</link>
	<description>Just a place to be!</description>
	<lastBuildDate>Fri, 07 Oct 2011 07:45:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
		<item>
		<title>Conditional greylisting (with postfix, policyd-weight and postgrey)</title>
		<link>http://blog.waja.info/2007/08/03/conditional-greylisting/</link>
		<comments>http://blog.waja.info/2007/08/03/conditional-greylisting/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 08:02:46 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[policyd-weight]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/08/03/conditional-greylisting-with-postfix-policyd-weight-and-postgrey/</guid>
		<description><![CDATA[In case you think that greylisting might have some disadvantages but give you also some benefits, you probably have thought about to use greylisting with some conditions. For example if you checked some parameters of the mail and you (or better your mailsystem) guess it may be spam, greylisting could be very usefull. Until now, [...]]]></description>
			<content:encoded><![CDATA[<p>In case you think that greylisting might have some disadvantages but give you also some benefits, you probably have thought about to use greylisting with some conditions. For example if you checked some parameters of the mail and you (or better your mailsystem) guess it may be spam, greylisting could be very usefull.<br />
Until now, I was using plain <a href="/2006/12/15/reduce-spam-significant/">policyd-weight</a>. But mails with $REJECTLEVEL &lt;= score &lt;= $DEFER_LEVEL where in some conditions defered (see policyd-weight default) and if they come back with the same conditions, they will be defered twice. So it makes sence to me to greylist them and if they return within $DEFER_LEVEL, they will pass cause the greylist will allow them.<br />
At first let&#8217;s create a restriction class which we can call from <a target="new" href="http://www.policyd-weight.org/">policyd-weight</a> within main.cf of postfix:</p>
<p class=code>
# restriction class for use with polw (DEFER_ACTION)<br />
smtpd_restriction_classes = greylist<br />
greylist = check_policy_service inet:127.0.0.1:60000
</p>
<p>To call postgrey for $REJECTLEVEL &lt;= score &lt;= $DEFER_LEVEL you need to make use of the restriction class &#8220;greylist&#8221; and let $DEFER_STRING match all defer strings, to get them all greylisted:</p>
<p class="code">
# echo &#8220;\$DEFER_STRING   = &#8216;NOT&#8217;;&#8221; >> /etc/policyd-weight.conf<br />
# echo &#8220;\$DEFER_ACTION   = &#8216;rc:greylist&#8217;;&#8221; >> /etc/policyd-weight.conf<br />
# /etc/init.d/postgrey restart</p>
<p>Also you may have a look into <a target="new" href="http://countries.nerd.dk/more.html">The DNSBL countries.nerd.dk</a>. This might be a way to score connections comming from well known spamming countries. But keep in mind, that there may also legitim mails comming from those! ;)
</p>
<p></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/08/03/conditional-greylisting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>performancing.com and privacy</title>
		<link>http://blog.waja.info/2007/06/28/performancingcom-and-privacy/</link>
		<comments>http://blog.waja.info/2007/06/28/performancingcom-and-privacy/#comments</comments>
		<pubDate>Thu, 28 Jun 2007 20:41:07 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2007/06/28/performancingcom-and-privacy/</guid>
		<description><![CDATA[Today I was crawling through my mail logs for various reasons. I was really surprised, that I saw a mail to a dedicated mailaddress which I&#8217;m using for communication with performancing.com. I was short checking, if this mailaddress is anywhere published at performancing.com, but couldn&#8217;t find anything. A one liner over the last week of [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was crawling through my mail logs for various reasons.<br />
I was really surprised, that I saw a mail to a dedicated mailaddress which I&#8217;m using for communication with <a target="new" href="http://performancing.com">performancing.com</a>. I was short checking, if this mailaddress is anywhere published at performancing.com, but couldn&#8217;t find anything.</p>
<p>A one liner over the last week of mail logs:</p>
<p class="code">
# zgrep performancing /var/log/mail.info* | grep clam | wc -l<br />
26
</p>
<p>For a address only used for communicating with one organisation (used as contact mail address) this seems a bit too much traffic and this are only the mails, which was accepted by the MTA. So the questions comes to my mind &#8230;. what happens with the addresses at performancing.com? Maybe I missed something?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2007/06/28/performancingcom-and-privacy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Reduce spam significant</title>
		<link>http://blog.waja.info/2006/12/15/reduce-spam-significant/</link>
		<comments>http://blog.waja.info/2006/12/15/reduce-spam-significant/#comments</comments>
		<pubDate>Fri, 15 Dec 2006 22:51:18 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[backports]]></category>
		<category><![CDATA[bpo]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[policyd-weight]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/12/15/reduce-spam-significant/</guid>
		<description><![CDATA[With policyd-weight you are able to reject mails before the body is received by your MTA, here postfix. No bounce mails, less wasted bandwidth and cpu time. policyd-weight scores characteristics of the mail positive or negative, is a defined value reached, it got rejected. The scores are currently: &#8211; DNSBLs/RHSBLs &#8211; HELO argument &#8211; MAIL [...]]]></description>
			<content:encoded><![CDATA[<p>With <a target="new" href="http://policyd-weight.org/">policyd-weight</a> you are able to reject mails before the body is received by your MTA, here <a target="new" href="http://www.postfix.org">postfix</a>. No bounce mails, less wasted bandwidth and cpu time. policyd-weight scores characteristics of the mail positive or negative, is a defined value reached, it got rejected. The scores are currently:</p>
<blockquote><p>
    &#8211; DNSBLs/RHSBLs<br />
    &#8211; HELO argument<br />
    &#8211; MAIL FROM: argument<br />
    &#8211; Client IP address<br />
    &#8211; DNS client/HELO/FROM entries (A/16 A/24 A/32), PTR/FQDN and Parent Domains (MX/16 MX/24 MX/32) for their correctness respectively whether they match.
</p></blockquote>
<p><span id="more-111"></span><br />
It&#8217;s available in etch and <a target="new" href="http://backports.org">bpo</a>, installation is really easy:</p>
<p class="code">
# aptitude install [-t sarge-backports] policyd-weight
</p>
<p class="alert">
<font size="-1">Remove unnecessary reject_rbl_client and reject_rhsbl_client checks from main.cf and insert the check_policy_service:</font>
</p>
<blockquote><pre>
smtpd_recipient_restrictions =
        permit_mynetworks,
        ...
        reject_unauth_destination,
        check_policy_service inet:127.0.0.1:12525
        ...
</pre>
</blockquote>
<p>You can create a &#8220;/etc/policyd-weight.conf&#8221; if you would like to adjusting scores or other policyd-weight parameters. You can get the defaults with &#8220;policyd-weight defaults&#8221;. For more informations have a look at &#8220;/usr/share/doc/policyd-weight/documentation.txt.gz&#8221; or <a target="new" href="http://policyd-weight.org">http://policyd-weight.org</a>.</p>
<p>A normal day on a backup MX with ~500 domain:</p>
<p class="code">
backup:~# zgrep -e &#8220;postfix.*: connect from&#8221; &#92<br />
      /var/log/mail.info.0 | wc -l<br />
29936<br />
backup:~# zgrep -e &#8220;policyd-weight.*decided action=5&#8243; &#92<br />
      /var/log/mail.info.0 | wc -l<br />
22738<br />
backup:~# zgrep -e &#8220;postfix.*status=sent&#8221; &#92<br />
      /var/log/mail.info.0 | wc -l<br />
5570</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/12/15/reduce-spam-significant/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Different Postfix Access Policy Delegation</title>
		<link>http://blog.waja.info/2006/09/20/different-postfix-access-policy-delegation/</link>
		<comments>http://blog.waja.info/2006/09/20/different-postfix-access-policy-delegation/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 12:21:37 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/09/20/different-postfix-access-policy-delegation/</guid>
		<description><![CDATA[Today I got some hints how to use different Access Policy Delegation with postfix. This it opens the possibility to use diffrent check_policy_service in dependency on sender address, client ip &#8230; and so on. Create aliases for groups of access restrictions in /etc/postfix/main.cf: smtpd_restriction_classes = policy1, policy2, policy1 = check_policy_service inet:127.0.0.1:12525 policy2 = check_policy_service inet:127.0.0.1:12526 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got some hints how to use different <a target="new" href="http://www.postfix.org/SMTPD_POLICY_README.html">Access Policy Delegation</a> with <a href="http://www.postfix.org">postfix</a>. This it opens the possibility to use diffrent <a target="new" href="http://www.postfix.org/SMTPD_POLICY_README.html">check_policy_service</a> in dependency on sender address, client ip &#8230; and so on.</p>
<p><span id="more-102"></span></p>
<p>Create aliases for groups of access restrictions in /etc/postfix/main.cf:</p>
<blockquote><pre>
smtpd_restriction_classes = policy1,
                            policy2,
policy1 = check_policy_service inet:127.0.0.1:12525
policy2 = check_policy_service inet:127.0.0.1:12526
</pre>
</blockquote>
<p>Create &#8220;/etc/postfix/ip_rules.cidr&#8221;:
</p>
<p class="code">
# echo &#8220;127.0.0.1 policy1&#8243; > /etc/postfix/ip_rules.cidr<br />
# echo &#8220;127.0.0.2 policy1&#8243; >> /etc/postfix/ip_rules.cidr<br />
# echo &#8220;0.0.0.0/0 policy2&#8243; >> /etc/postfix/ip_rules.cidr
</p>
<p>Add &#8220;check_client_access cidr:/etc/postfix/ip_rules.cidr&#8221; at the end of &#8220;smtpd_recipient_restrictions&#8221; in /etc/postfix/main.cf</p>
<p>In this scenario you can have different access policies based on the client ip. It is also possible to base it on client reverse dns with help of <a target="new" href="http://www.postfix.org/pcre_table.5.html">pcre maps</a> and recipient/sender address and <a target="new" href="http://www.postfix.org/DATABASE_README.html">hash maps</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/09/20/different-postfix-access-policy-delegation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>FuzzyOcr on Debian sarge</title>
		<link>http://blog.waja.info/2006/09/19/fuzzyocr-on-debian-sarge/</link>
		<comments>http://blog.waja.info/2006/09/19/fuzzyocr-on-debian-sarge/#comments</comments>
		<pubDate>Tue, 19 Sep 2006 09:29:13 +0000</pubDate>
		<dc:creator>cyco</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.waja.info/2006/09/19/fuzzyocr-on-debian-sarge/</guid>
		<description><![CDATA[This article covers the installation of FuzzyOcr on Debian sarge including update to packages from backports.org. For informations how to install packages from bpo see here! Update spamassassin: # aptitude -t sarge-backports install spamassassin Keep in mind, that there are essential changes in configuration, so you need to check it to match your needs! Install [...]]]></description>
			<content:encoded><![CDATA[<p>This article covers the installation of FuzzyOcr on Debian sarge including update to packages from <a target="new" href="http://backports.org">backports.org</a>. For informations how to install packages from bpo see <a target="new"href="http://www.backports.org/dokuwiki/doku.php?id=instructions">here</a>!</p>
<p><span id="more-100"></span></p>
<p>Update spamassassin:
</p>
<p class="code">
# aptitude -t sarge-backports install spamassassin
</p>
<p>Keep in mind, that there are essential changes in configuration, so you need to check it to match your needs!</p>
<p>Install other required packages:
</p>
<p class="code">
# aptitude -t sarge-backports install gocr libungif-bin &#92;<br />
libimage-exif-perl libimage-exiftool-perl libstring-approx-perl &#92;<br />
imagemagick netpbm
</p>
<p>Install and patch FuzzyOrc:
</p>
<p class="code">
# cd /usr/local/src/<br />
# wget &#92;</p>
<p>http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-2.3b.tar.gz</p>
<p># tar xzvf fuzzyocr-2.3b.tar.gz<br />
# wget &#92;</p>
<p>http://www200.pair.com/mecham/spam/fuzzyocr-23b-hashdb-poison.patch</p>
<p># cd FuzzyOcr-2.3b<br />
# patch FuzzyOcr.pm < ../fuzzyocr-23b-hashdb-poison.patch<br />
# cp FuzzyOcr.pm /usr/share/perl5/Mail/SpamAssassin/Plugin/<br />
# cp FuzzyOcr.cf /etc/spamassassin/<br />
# cp FuzzyOcr.words.sample /etc/spamassassin/FuzzyOcr.words
</p>
</p>
<p>Configure FuzzyOcr:
</p>
<p class="code">
# echo &#8220;loadplugin FuzzyOcr /usr/share/perl5/Mail/SpamAssassin/Plugin/FuzzyOcr.pm&#8221; &#92;<br />
 >> /etc/spamassassin/v310.pre<br />
# sed -i &#92;<br />
&#8220;s/^loadplugin\ FuzzyOcr\ FuzzyOcr.pm/#loadplugin\ FuzzyOcr\ FuzzyOcr.pm/&#8221; &#92;<br />
 /etc/spamassassin/FuzzyOcr.cf<br />
# sed -i &#92;<br />
&#8220;s/^#focr_base_score&#92; 4/focr_base_score&#92; 2/&#8221; &#92;<br />
/etc/spamassassin/FuzzyOcr.cf<br />
# sed -i &#92;<br />
&#8220;s/^focr_logfile&#92; &#92;/etc&#92;/mail&#92;/spamassassin/focr_logfile&#92; &#92;/var&#92;/log&#8221; &#92;<br />
 /etc/spamassassin/FuzzyOcr.cf
</p>
<p>For SpamAssassin less than 3.1.4:</p>
<p class="code">
# sed -i &#8220;s/^focr_pre314\ 0.0/focr_pre314\ 1.0/&#8221; &#92;<br />
/etc/spamassassin/FuzzyOcr.cf
</p>
<p>Create Logfile:
</p>
<p class="code">
# touch /var/log/FuzzyOcr.log<br />
# chown nobody:nogroup /var/log/FuzzyOcr.log<br />
# chmod 600 /var/log/FuzzyOcr.log
</p>
<p>Verify Spamassassin config:
</p>
<p class="code">
# spamassassin &#8211;lint
</p>
<p><font size="-2">see also http://www200.pair.com/mecham/spam/image_spam.html</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waja.info/2006/09/19/fuzzyocr-on-debian-sarge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
