<?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>SpamAssasin Archives - Vavai&#039;s Personal Notes</title>
	<atom:link href="https://www.vavai.net/tag/spamassasin/feed/" rel="self" type="application/rss+xml" />
	<link>https://vavai.net/tag/spamassasin/</link>
	<description>Life is our precious gift</description>
	<lastBuildDate>Mon, 21 Dec 2009 22:02:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Improving Zimbra Anti Spam on openSUSE</title>
		<link>https://www.vavai.net/improving-zimbra-anti-spam-on-opensuse/</link>
					<comments>https://www.vavai.net/improving-zimbra-anti-spam-on-opensuse/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Mon, 21 Dec 2009 22:02:27 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Anti Spam]]></category>
		<category><![CDATA[SpamAssasin]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<category><![CDATA[Zimbra]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=828</guid>

					<description><![CDATA[<p>Beside another attack, spam would become top enemy in the mail server world. To prevent the spam and virus attack, Zimbra has a built-in anti spam and anti virus plugins. The plugins installed by default. The Zimbra anti spam using popular anti spam software : SpamAssasin for fighting spam andÂ  ClamAV as default anti virus...</p>
<p>The post <a href="https://www.vavai.net/improving-zimbra-anti-spam-on-opensuse/">Improving Zimbra Anti Spam on openSUSE</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="http://54.254.121.108/wp-content/uploads/2009/12/opensuse-zimbra1.jpg"><img decoding="async" class="alignright size-full wp-image-841" style="margin: 5px;" title="opensuse-zimbra" src="http://54.254.121.108/wp-content/uploads/2009/12/opensuse-zimbra1.jpg" alt="" width="150" height="150" /></a>Beside another attack, spam would become top enemy in the mail server world. To prevent the spam and virus attack, Zimbra has a built-in anti spam and anti virus plugins. The plugins installed by default. The Zimbra anti spam using popular anti spam software : SpamAssasin for fighting spam andÂ  ClamAV as default anti virus software.<br />
Although SpamAssasin has smart enough to kill spam, Zimbra bundled it with a poor capability to preventÂ  a spam hit attack. We should improve it before launching the Zimbra mail server as fully production mail server.<br />
We can improve the Zimbra anti spam by improving SpamAssasin capability, adding some plugins and change some configuration to meet with our requirement. Let&#8217;s improve Zimbra anti spam with the following task :</p>
<ol>
<li><strong>Edit the spam percentage threshold in Zimbra Admin</strong> | Global Setting | AS/AV. The standard percentage threshold (33% for tagging a spam message and 75% for killing spam message. The percentage using standard SpamAssasin score : 100% are equal with score 20, so the default score are 6.6 for tagging and 15 for killing) looks too permissive for fighting the spam.<br />
`<br />
The best way toÂ  setting up the correct percentage threshold that meets with your criteria are investigating the message source of some spam message. Take a look on spam identification score on the header of message source and compare it with others message. In my case, the tagging percentage threshold looks pretty good to identified the spam but the killing percentage seems to be less-restrictive, so I setting up the lower percentage, 50% that equivalent with score 10. Please be-aware to set up the killing percent in a lower percentage step by step to prevent any message loss caused by too restrictive setting.</li>
<li><strong>Installing SPF plugins</strong>. Mail::SPF is an object-oriented implementation of Sender Policy Framework (SPF). See <a href="http://www.openspf.org">http://www.openspf.org</a> for more information about SPF. Install the plugins using the package built on <a href="http://software.opensuse.org/search">openSUSE Build Service</a>. Just typing SPF or Perl-Mail-SPF on the search text box. I found it from perl repository : <a href="http://download.opensuse.org/repositories/devel:/languages:/perl/">http://download.opensuse.org/repositories/devel:/languages:/perl/</a>.</li>
<li><strong>Installing Pyzor Plugins</strong>. Pyzor is a collaborative, networked system to detect and block spam using identifying digests of messages. Install the Pyzor plugins from openSUSE Build Service and then run the following command to configuring Pyzor :<br />
`<br />
as root :<br />
[code language=&#8217;cpp&#8217;]<br />
mkdir /opt/zimbra/amavisd/.pyzor; chown zimbra:zimbra /opt/zimbra/amavisd/.pyzor<br />
[/code]<br />
then open your firewall ports for pyzor (UDP/24441 outgoing) and finally activating the Pyzor by running the following command using Zimbra user :<br />
[code language=&#8217;cpp&#8217;]<br />
su &#8211; zimbra<br />
pyzor &#8211;homedir /opt/zimbra/amavisd/.pyzor discover<br />
[/code]</li>
<li><strong>Installing Razor Plugin. </strong><br />
<blockquote><p>Vipul&#8217;s Razor is a distributed, collaborative, spam detection and filtering network. Razor establishes a distributed and constantly updating catalogue of spam in propagation. This catalogue is used by clients to filter out known spam. On receiving a spam, a Razor Reporting Agent (run by an end-user or a troll box) calculates and<br />
submits a 20-character unique identification of the spam (a SHA Digest) to its closest Razor Catalogue Server. The Catalogue Server echos this signature to other trusted servers after storing it in its database. Prior to manual processing or transport-level reception, Razor Filtering Agents (end-users and MTAs) check their incoming mail against a Catalogue Server and filter out or deny transport in case of a signature match. Catalogued spam, once identified and reported by a Reporting Agent, can be blocked out by the rest of the Filtering Agents on the network.</p></blockquote>
<p>Install Razor Agent and Perl-Razor-Agent from openSUSE Build Service and then configuring Razor with the following task :</p>
<ul>
<li>Open your firewall ports for razor2 (TCP/2703 outgoing).</li>
<li>Run the following command as root :<br />
[code language=&#8217;cpp&#8217;]<br />
mkdir /opt/zimbra/amavisd/.razor; chown -Rf zimbra:zimbra /opt/zimbra/amavisd/.razor<br />
[/code]<br />
and then activating Razor by running the following command using Zimbra user :<br />
[code language=&#8217;cpp&#8217;]<br />
su &#8211; zimbra<br />
razor-admin -home=/opt/zimbra/amavisd/.razor -create<br />
razor-admin -home=/opt/zimbra/amavisd/.razor -discover<br />
razor-admin -home=/opt/zimbra/amavisd/.razor -register<br />
[/code]</li>
<li>Enable razor. Edit /opt/zimbra/conf/spamassassin/v310.pre and uncomment line<br />
loadplugin Mail::SpamAssassin::Plugin::Razor2</li>
</ul>
</li>
<li>Install DCC plugins. he DCC or Distributed Checksum Clearinghouse is an anti-spam content filter that runs on a variety of operating systems. Install DCC from openSUSE Build Service and then edit /etc/dcc/dcc_conf, set DCCUID=zimbraÂ  and DCCD_ENABLE=off and then edit /opt/zimbra/conf/spamassassin/v310.pre, enable DCC line :<br />
[code language=&#8217;cpp&#8217;]<br />
loadplugin Mail::SpamAssassin::Plugin::DCC<br />
[/code]</li>
<li>Enable SPF+Pyzor+Razor on the SpamAssasin configuration. Edit /opt/zimbra/conf/spamassassin/local.cf and add the following rules (modify it to meet your environment) at the end of configuration :<br />
[code language=&#8217;cpp&#8217;]<br />
ok_languages en es id<br />
ok_locales en es id<br />
trusted_networks 127. 192.168.<br />
use_bayes 1<br />
skip_rbl_checks 0<br />
use_razor2 1<br />
use_dcc 1<br />
use_pyzor 1<br />
dns_available yes<br />
## Optional Score Increases<br />
## Choose your preferred values&#8230;<br />
score DCC_CHECK 4.000<br />
score SPF_FAIL 10.000<br />
score SPF_HELO_FAIL 10.000<br />
score RAZOR2_CHECK 2.500<br />
score PYZOR_CHECK 2.500<br />
score BAYES_99 4.300<br />
score BAYES_90 3.500<br />
score BAYES_80 3.000<br />
bayes_ignore_header Received: from mail.vavai.net<br />
bayes_ignore_header Received: from localhost<br />
[/code]</li>
<li>Activating Domain, User and Content Whitelist &amp; Blacklist. Please refer to Zimbra Wiki <a href="http://wiki.zimbra.com/index.php?title=Improving_Anti-spam_system#Implementing_Whitelist.2FBlacklist">here</a> and <a href="http://wiki.zimbra.com/index.php?title=Improving_Anti-spam_system#salocal.cf.in">here</a> to see a complete configuration.</li>
<li>Slow down the Simultaneous Connection Throttling to prevent spam attack.Â  I got this problem while setting up Zimbra in a government office in Jakarta. Spammer open up a large number of simultaneous connection and then send too many message. The message are fake and likely to be blocked by Zimbra but the message still hit the MTA and fill the queue. We could prevent this attack by setting a lower limit to simultaneous connection with the following command :<br />
[code language=&#8217;cpp&#8217;]<br />
su &#8211; zimbra<br />
postconf -e &#8216;smtpd_hard_error_limit = 3&#8217;<br />
postconf -e &#8216;smtpd_soft_error_limit = 2&#8217;<br />
exit<br />
cd /opt/zimbra/postfix/sbin<br />
./postfix stop<br />
./postfix start<br />
[/code]<br />
More info about Postfix Configuration Parameter regarding error limit, <a href="http://www.postfix.org/postconf.5.html#smtpd_soft_error_limit">here</a>.</li>
<li>Adding RBL list to block the blacklisted SMTP IP. I&#8217;m currently using b.barracudacentral.org, zen.spamhaus.org, dnsbl.njabl.org, dnsbl.ahbl.org, cbl.abuseat.org and bl.spamcop.net. Daftar tersebut dimasukkan melalui menu <strong>Zimbra</strong> Admin | Global Setting | MTA<br />
`<br />
<a href="http://v2.vavai.net/wp-content/uploads/2009/12/rbls-check.jpeg"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-839" title="rbls-check" src="http://v2.vavai.net/wp-content/uploads/2009/12/rbls-check.jpeg" alt="" width="466" height="297" /></a></li>
</ol>
<p>The above configuration should improve Zimbra anti spam capability to block all incoming spam. Below is a screenshot of anti spam image on my client after improving the spam capability.<br />
<a href="http://v2.vavai.net/wp-content/uploads/2009/12/spam-statistic.jpeg"><img decoding="async" class="alignnone size-full wp-image-840" title="spam-statistic" src="http://v2.vavai.net/wp-content/uploads/2009/12/spam-statistic.jpeg" alt="" width="535" height="409" /></a><br />
Please remember that the well-restrictive spam would impact our Zimbra mail server performance. It&#8217;s a trade-off between Zimbra performance and the anti spam capability. Adding more anti spam plugins means an increasing number of task for Zimbra anti spam. You may need to increase your hardware specification or separate the anti spam on another machine.<br />
Note : The above configuration has been tested on Zimbra 5.0.21 on openSUSE 11.1</p>
<p>The post <a href="https://www.vavai.net/improving-zimbra-anti-spam-on-opensuse/">Improving Zimbra Anti Spam on openSUSE</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/improving-zimbra-anti-spam-on-opensuse/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 28/44 objects using Disk
Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: d3b35uem336dgh.cloudfront.net
Lazy Loading (feed)
Minified using Disk
Database Caching 3/31 queries in 0.012 seconds using Disk

Served from: www.vavai.net @ 2026-10-29 06:10:51 by W3 Total Cache
-->