<?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>Nickbrown.com.au</title>
	<atom:link href="http://nickbrown.com.au/feed" rel="self" type="application/rss+xml" />
	<link>http://nickbrown.com.au</link>
	<description></description>
	<lastBuildDate>Thu, 06 May 2010 10:07:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WHMCS ANZ eGate Payment Module</title>
		<link>http://nickbrown.com.au/articles/whmcs-anz-egate-payment-module</link>
		<comments>http://nickbrown.com.au/articles/whmcs-anz-egate-payment-module#comments</comments>
		<pubDate>Thu, 06 May 2010 10:07:29 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=21</guid>
		<description><![CDATA[WHMCS ANZ eGate Payment Module An ANZ eGate Credit Card Payment Gateway for WHMCS. Open Source, Free Download and now with 100% Money Collecting Goodness. ]]></description>
			<content:encoded><![CDATA[<p>Version 2 of the ANZ eGate Payment Module for WHMCS is now available. Thankyou to everyone who provided feedback on the first release, especially Haumanto. The following changes have been made;</p>
<p>• Feature: PAY NOW button added to generated invoices within Client Area<br />
• Bug Fix: Update to the rounding used when calculating amount to process<br />
• Bug Fix: Updated validation on data sent to ANZ, specifically checking for spaces in card number<br />
• Bug Fix: Updated validation to ensure the card CCV is within the expected CCV field as opposed to WHMCS &#8220;Card Issue Number&#8221; field</p>
<p><strong>Disclaimer:</strong> Myself, nor anyone else associated with this gateway work for ANZ or WHMCS. I, nor any associated party will be held liable for any data loss, leaked financial data including but not limited to Credit Card numbers or incorrect data being processed by your merchant facility.</p>
<p><strong>Download:</strong><br />
• <a href="../public/whmcs/anzegatewhmcs.tar">Download File Here</a><br />
• Extract tar (tar -xvf anzegatewhmcs.tar)<br />
• Move anzegate.php to your WHMCS payment gateways directory<br />
• Configure your merchant information from the Payment Gateways section of the WHMCS admin area</p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/whmcs-anz-egate-payment-module/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading MailScanner on RPM based Distros</title>
		<link>http://nickbrown.com.au/articles/upgrading-mailscanner-on-rpm-based-distros</link>
		<comments>http://nickbrown.com.au/articles/upgrading-mailscanner-on-rpm-based-distros#comments</comments>
		<pubDate>Thu, 14 May 2009 09:52:02 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=8</guid>
		<description><![CDATA[Very little in the way of official documentation on upgrading MailScanner on RPM based distributions so here is a 30 second tutorial.]]></description>
			<content:encoded><![CDATA[<p>Very little in the way of official documentation on upgrading MailScanner on RPM based distributions so here is a 30 second tutorial.</p>
<p>1.&nbsp;&nbsp;&nbsp; Grab a copy of the package you wish to upgrade to, from mailscanner.info<br />
2.&nbsp;&nbsp;&nbsp; Stop any MailScanner processes<br />
3.&nbsp;&nbsp;&nbsp; Extract the file with &lsquo;<em>tar &ndash;zxvf MailScanner-X.X.X.rpm.tar.gz</em>&rsquo; and enter the directory<br />
4.&nbsp;&nbsp;&nbsp; Start the upgrade by simply running the &lsquo;<em>install</em>&rsquo; script within &ndash; this will take 10 or so minutes<br />
5.&nbsp;&nbsp;&nbsp; Change dir to /etc/MailScanner<br />
6.&nbsp;&nbsp;&nbsp; Run &lsquo;<em>upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.rpmnew &gt; MailScanner.new</em>&rsquo;<br />
7.&nbsp;&nbsp;&nbsp; Optionally view what has been changed with &lsquo;<em>diff -w MailScanner.conf.rpmnew MailScanner.new</em>&rsquo;<br />
8.&nbsp;&nbsp;&nbsp; <em>mv MailScanner.conf MailScanner.old</em><br />
9.&nbsp;&nbsp;&nbsp;<em> mv MailScanner.new MailScanner.conf</em><br />
10.&nbsp; Restart MailScanner<br />
Simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/upgrading-mailscanner-on-rpm-based-distros/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>St George IPG on PHP 5</title>
		<link>http://nickbrown.com.au/articles/st-george-ipg-on-php-5</link>
		<comments>http://nickbrown.com.au/articles/st-george-ipg-on-php-5#comments</comments>
		<pubDate>Thu, 01 May 2008 09:50:34 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=4</guid>
		<description><![CDATA[After the ever-approaching sound of Jared cracking his Work Faster whip behind me, I can confirm the St George Internet Payment Gateway will work on PHP 5.]]></description>
			<content:encoded><![CDATA[<p>After the ever-approaching sound of Jared cracking his Work Faster whip behind me, I can confirm the St George Internet Payment Gateway will work on PHP 5.</p>
<p>Scenario &ndash; CentOS 5, Apache 2.23, PHP 5.1.6, compat-libstdc++-33, PHP-Devel and Zend Optimizer v3.3.3<br />
<strong>Note: The St George IPG will not compile on 64 Bit operating systems, St George have advised that a 64 Bit version is in development.</strong></p>
<ol>
<li>Download, extract and compile SWIG from www.swig.org as per IPG documentation</li>
<li>Extract the IPG webpayPHP tar</li>
<li>Copy libwebpayclient.so to both /usr/lib/ and /usr/lib/php/modules</li>
<li>Within the webpayPHP directory, run make to compile webpay_php.so. The errors I have seen here are all relatively self explanatory, either SWIG didn&rsquo;t compile correctly, your on a 64 bit system, PHP Devel or Zend are unavailable</li>
<li>Copy the newly compiled webpay_php.so to /usr/lib/php/modules/</li>
<li>Either set enable_dl = on within your PHP configuration and then restart Apache (Note that enabling dl() imposes major security risks if you have customers hosted on this server) or statically load libwebpayclient.so &ndash; You will need to update your actual gateway to reflect this change</li>
<li>The following symlinks needed to be created on a clean CentOS 5 install in order for libwebpayclient.so to meet its dependencies</li>
</ol>
<p><em>                    ln -s /lib/libcrypto.so.0.9.8a /lib/libcrypto.so.4<br />
ln -s /lib/libssl.so.0.9.8a /lib/libssl.so.4</em><br />
You should now be able to utilise the St George test scripts (After updating test.php to use your Merchant ID, Password, Certificate and correct server address) to confirm it is working correctly.</p>
<p># php test.php<br />
Starting webpay Transaction<br />
Successfully communicated with the WTS<br />
&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;<br />
&mdash;&mdash;&ndash; TRANSACTION APPROVED &mdash;&mdash;&ndash;<br />
&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;<br />
Transaction Reference     : [2230000001188765]<br />
Result             : [0]<br />
Auth Code         : [585599]<br />
Response Text         : [APPROVED (TEST TRANSACTION ONLY)]<br />
Response Code         : [00]<br />
Error Message         : []<br />
&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;<br />
If you receive an error advising that test.php was unable to open libwebpayclient.so run &lsquo;ldd libwebpayclient.so&rsquo; to ensure any additional dependencies have been met.</p>
<p>I wish you the best of luck should you actually attempt to contact St George for support, their knowledge of how IPG actually works, let alone their understanding of PHP is severely lacking.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/st-george-ipg-on-php-5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>M-Audio USB Audiophile &#8211; How to use SPDIF on OSX</title>
		<link>http://nickbrown.com.au/articles/m-audio-usb-audiophile-how-to-use-spdif-on-osx</link>
		<comments>http://nickbrown.com.au/articles/m-audio-usb-audiophile-how-to-use-spdif-on-osx#comments</comments>
		<pubDate>Sun, 08 Jul 2007 09:54:35 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=12</guid>
		<description><![CDATA[Configuring your M-Audio Audiophile to output via SPDIF in OSX.]]></description>
			<content:encoded><![CDATA[<p class="post-content">I&rsquo;ve recently made the switch to a MacBook Pro running OSX. I also use an M-Audio USB Audiophile (http://www.m-audio.com/products/en_us/AudiophileUSB-main.html) which supports Mac right out of the box. However in applications like iTunes that do not allow you to select which device you would like to output to, if you use SPDIF there will be no audio. The Audiophile drivers for OSX do not provide the option to select an alternate interface from within Audio in System Prefs either.</p>
<p>There was very little documentation however the solution I found was to simply deselect the Analogue Output from the Audiophile config app.</p>
<p>The M-Audio site also advises the following;<br />
<em>The use of USB Audio Devices on the Right-Hand USB Port Is Not Recommended.</em></p>
<p><em>The 15&Prime; MacBook Pro models have 1 USB port on the left side, and one USB port on the right side.<br />
The 17&Prime; MacBook Pro models have 2 USB ports on the left side, and one USB port on the right side.</em></p>
<p><em>Due to the current USB configuration of the MacBook Pro under OS X, use of USB audio devices is supported on the left-hand USB ports only (the port or ports next to the power adapter cable). Use of such devices on the right-hand USB port is not advised because it may cause audio interrupts and/or dropped samples. However, the use of an iLok on the right-hand port has been qualified and is fully supported.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/m-audio-usb-audiophile-how-to-use-spdif-on-osx/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMTP Access when Port 25 is blocked</title>
		<link>http://nickbrown.com.au/articles/smtp-access-when-port-25-is-blocked</link>
		<comments>http://nickbrown.com.au/articles/smtp-access-when-port-25-is-blocked#comments</comments>
		<pubDate>Wed, 30 May 2007 09:57:32 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=14</guid>
		<description><![CDATA[I have noticed an increase lately of customers asking if we can provide SMTP access on a port other than 25, specifically for those who are traveling internationally and their motel will not allow SMTP through. While I want to try and keep this blog as factual as possible, I do not believe that proivders [...]]]></description>
			<content:encoded><![CDATA[<p>I have noticed an increase lately of customers asking if we can provide SMTP access on a port other than 25, specifically for those who are traveling internationally and their motel will not allow SMTP through. While I want to try and keep this blog as factual as possible, I do not believe that proivders should be offering SMTP on any other port with the intention to circumvent these port restrictions.<br />
These restrictions were originally put in place by ISP&rsquo;s to attempt to limit the number of zombie PC&rsquo;s out there acting as either relays or spam senders. Every email provider will acknowledge that spam is a huge problem, however by opening these additional ports we are simply contributing to the problem.<br />
My 2 cents worth.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/smtp-access-when-port-25-is-blocked/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk Anti-Spam Gateway Update</title>
		<link>http://nickbrown.com.au/articles/plesk-anti-spam-gateway-update</link>
		<comments>http://nickbrown.com.au/articles/plesk-anti-spam-gateway-update#comments</comments>
		<pubDate>Fri, 04 May 2007 09:59:51 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=16</guid>
		<description><![CDATA[As promised here is an update to our Anti-Spam gateway since we have gone live. We have successfully been running for over a week now and are receiving positive comments regarding the service.
To monitor the performance of the server and to allow for some pretty spiffy looking reports we are making use of MailWatch. MailWatch [...]]]></description>
			<content:encoded><![CDATA[<p class="post-content">As promised here is an update to our Anti-Spam gateway since we have gone live. We have successfully been running for over a week now and are receiving positive comments regarding the service.</p>
<p>To monitor the performance of the server and to allow for some pretty spiffy looking reports we are making use of <a title="MailWatch" href="http://mailwatch.sourceforge.net/">MailWatch</a>. MailWatch will also form the base of our end user interface which is currently a work in progress.</p>
<p>One important change we have made to the MailScanner configuration is switching to using a ClamAV Perl module to scan email. When utilising the executable ClamAV we found the servers load average to be constantly sitting around 25 and mail delays upto an hour and a half. You can change this within /etc/MailScanner/MailScanner.conf as follows;</p>
<ul>
<li>Virus Scanners = clamavmodule</li>
</ul>
<p>You will need to restart MailScanner for this change to kick in. Providing you used the SA / ClamAV RPM I linked to in the initial article to install ClamAV, this Perl module will already be available to you.</p>
<p>We are now running this solution on a Dell PowerEdge SC1435 AMD Opteron, 2GB Ram and 160GB SATAII Hard Drives in a RAID0 configuration. I believe the hard disks were the primary bottleneck on our initial server and as such the decision was made to run in RAID0. The server stores no customer data so data redundancy is not an issue.</p>
<p>The servers load average now sits around 1.5. On average over the last few days we are processing 100000 emails a day, 47% of being tagged as spam, and another 2% being tagged as virus.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/plesk-anti-spam-gateway-update/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plesk Anti-Spam Gateway</title>
		<link>http://nickbrown.com.au/articles/plesk-anti-spam-gateway</link>
		<comments>http://nickbrown.com.au/articles/plesk-anti-spam-gateway#comments</comments>
		<pubDate>Mon, 23 Apr 2007 10:01:49 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://nickbrown.com.au/?p=18</guid>
		<description><![CDATA[While Plesk includes a distribution of SpamAssassin, when you have multiple servers to maintain and a need to integrate everything seamlessly it becomes apparent that this is not the best solution.
Based on the concept of Project Gamera from Atomic Rocket Turtle we have developed an in house Spam and Virus filtering solution that scales well, [...]]]></description>
			<content:encoded><![CDATA[<p>While Plesk includes a distribution of SpamAssassin, when you have multiple servers to maintain and a need to integrate everything seamlessly it becomes apparent that this is not the best solution.</p>
<p>Based on the concept of Project Gamera from Atomic Rocket Turtle we have developed an in house Spam and Virus filtering solution that scales well, effectively scans and allows the user to manage their own settings.</p>
<p>This server acts as a mail gateway, sitting in front of our Plesk servers. Customers domains have two MX records configured as follows;</p>
<ul>
<li>Priority 10 &ndash; antispam_server.ourdomain.com</li>
<li>Priority 30 &ndash; plesk_server.ourdomain.com</li>
</ul>
<p>Upon scanning the email, it is then passed to the Plesk server the customer is hosted on, based on Relay lists described further on in this guide. The dual MX records allow for the gateway to go offline due to fault or load and customers will still receive their email.</p>
<p>Initial lab testing of this configuration successfully tagged 100% of spam email with zero false positives. During our production environment testing we were seeing close to a 98% success rate with zero false positives.</p>
<p>As described further in, this system is currently offline while we await the installation of new hardware due to performance issues.</p>
<p>From a clean installation of Linux through to a completely working Anti-Spam gateway this guide should have you running within 3-4 hours.</p>
<p>Originally we tested pre built packages including <a title="Project Gamera" href="http://www.atomicrocketturtle.com/Joomla/content/view/77/29/">Project Gamera</a> and <a title="dspam" href="http://dspam.nuclearelephant.com/">dspam</a>. While both packages were fairly straight forward in installation and use it made more sense eventually to take a look at their features and put something together that fits in with what we wanted.</p>
<ul>
<li>A system independent of Plesk that was white label allowing it to be resold also to customers on non PSA servers</li>
<li>A system that would scan for both Spam and Viruses</li>
<li>A system that would eventually allow customers to manage the way their spam is handled on at least a per domain level</li>
<li>A system that could cope with several thousand domains, and at least double that figure in mailboxes, allowing it to easily expand into a second server in the future</li>
</ul>
<p>The complete system utilises Postfix, SpamAssassin, ClamAV, MailScanner and MailScanner-MRTG for graph monitoring. This system was initially configured on CentOS 4.4 on an old Pentium 4 Server with a single 7200RPM 80GB HDD and 1GB of RAM.</p>
<p>The following steps are taken from the installations I completed and should work without fault. This is a summarised version, however is fairly self explanatory. While a huge amount of text follows, if you are familiar with Postfix you can probably skip some detail.</p>
<ol>
<li>I&rsquo;d recommend not running a GUI on this server as it will simply utilise resources that MailScanner could otherwise be using. Complete your distro installation. It is handy to include the standard development tools so you have access to gcc and a handful of other niceties</li>
<li>As sendmail is included by default you will want to stop it, and disable it from starting in the future. You could remove it completely if you so wish. We have no use for it</li>
<li>Being a Red Hat based distro, I utilised yum to install Postfix as we have no need to patch the source. Run <strong>yum install postfix</strong></li>
<li>We need to put Postfix into a chroot jail. There is a handy shell script called LINUX2 that takes all the work out of this for us. It is included with the source, or you can grab a copy from <a title="LINUX2" href="http://www.nickbrown.com.au/linux/LINUX2">here</a>. Chmod the script so it has execute permissions and run it as root. Unless Postfix is running when LINUX2 is run, the script will fail. When the script has completed you should be able to see &lsquo;etc&rsquo; &lsquo;usr&rsquo; and &lsquo;lib&rsquo; directories in /var/spool/postfix</li>
<li>Now we start on the initial Postfix configuration. The Postfix configurations are well commented and its worth flipping through them, even if its to just get an understanding of how everything works. First we need to edit /etc/postfix/main.cf</li>
<li>I kept the initial configuration files however you may like to clean them up. A such any of the following directives we add may already exist and just need to be edited or uncommented so search for them first.</li>
<li>Add / Edit the following (main.cf)</li>
</ol>
<ul>
<li><strong>header_checks = regexp:/etc/postfix/header_checks</strong></li>
<li><strong>myhostname = server.yourdomain.com</strong></li>
<li><strong>mydomain = yourdomain.com</strong></li>
<li><strong>mynetworks = 202.X.X.X/24</strong></li>
<li><strong>inet_interfaces = all</strong></li>
<li><strong>relay_recipient_maps = hash:/etc/postfix/relay_recipients</strong></li>
<li><strong>transport_maps = hash:/etc/postfix/transport</strong></li>
<li><strong>relay_domains = $transport_maps<br />
    </strong></li>
</ul>
<p>Save and exit main.cf.</p>
<p>Create the file /etc/postfix/header_checks and enter the following into it</p>
<ul>
<li>/^Received:/ HOLD</li>
</ul>
<p>This tells Postfix to move all inbound email to the Hold queue for processing by MailScanner.<br />
Note that the next time you reload Postfix your server will open Port 25 to the outside world. Its important that you don&rsquo;t put * records into your transport or relay_recipient files as this will result in you acting as an open relay and getting blacklisted. Being blacklisted is a horrible experience and you only make this mistake once.</p>
<p>Now we configure the destination of mail. This is achieved by editing /etc/postfix/transport and /etc/postfix/relay_recipients. This is fairly easy process. These fies simply say which domains we accept mail for, and once we have scanned said mail where do we send it.</p>
<p>relay_recipients lists the domains we are in control of. It must be in the format of</p>
<ul>
<li>@domain.com dummy</li>
<li>@domain2.com dummy</li>
</ul>
<p>As these are converted to Hash files each entry must be in a name/pair combination hence the word &lsquo;dummy&rsquo;. For all Postfix cares you could put &lsquo;panda&rsquo; in there. As long as its a single word.<br />
The transport file is a little more complex however follows the same format. It should look as follows;</p>
<ul>
<li>domain.com smtp:[10.0.0.1]</li>
<li>domain2.com smtp:[10.0.0.2]</li>
</ul>
<p>Where 10.0.0.1 and .2 is the IP of the destination mailserver. It is very important you leave the square brackets [ ] in place. I originally made this mistake and spent hours wondering why mail was bouncing, complaining about a loop. These square brackets tell Postfix to not attempt a MX lookup and to instead just send mail straight on.</p>
<p>After updating these files you have to feed them to Postfix manually by running <strong>postmap transport </strong>and <strong>postmap relay_recipients</strong>.</p>
<p>As we run this server in front of multiple Plesk servers that have domains added and removed daily we have scripted this process. In simple terms, we pull the list of domains from the PSA database on each server, note which server the list came from and then build these files. The list is checked for duplicates and we are emailed in the event it finds any. The two postmap commands are then run to refresh Postfix. This runs every 10 minutes.</p>
<p>Now we move onto the installation of MailScanner, SpamAssassin and ClamAV. The rest of this guide is much more straight forward, I promise <img class="wp-smiley" alt=":-)" src="http://www.nickbrown.com.au/wp-includes/images/smilies/icon_smile.gif" /></p>
<ol>
<li>Download the latest RPM MailScanner release from the <a title="MailScanner Stable Downloads" href="http://mailscanner.info/downloads.html#stable">MailScanner site here</a>.</li>
<li>Download the latest RPM ClamAV / SpamAssassin release from the <a title="MaiLScanner ClamAV SA Downloads" href="http://mailscanner.info/downloads.html#stable">MailScanner site here</a>.</li>
<li>Extract the tar archives somewhere convenient and execute the included install.sh</li>
<li>Accept all defaults where prompted</li>
<li>You will need to edit your /etc/MailScanner/MailScanner.conf. As per psotfix.conf its probable these directives already exist so search for them first</li>
</ol>
<ul>
<li>Run As User = postfix</li>
<li>Run As Group = postfix</li>
<li>Incoming Queue Dir = /var/spool/postfix/hold</li>
<li>Outgoing Queue Dir = /var/spool/postfix/incoming</li>
<li>MTA = postfix</li>
</ul>
<p>You will also need to ensure Postifx can write to the MailScanner queue directories;</p>
<p><strong>chown postfix.postfix /var/spool/MailScanner/incoming </strong></p>
<p><strong>chown postfix.postfix /var/spool/MailScanner/quarantine </strong></p>
<p>Now would be a very good time to test your configuration and make sure email gets through your Postfix server, through MaiLScanner and to the destination server. Restart Postfix and run <strong>check_MailScanner </strong>to start MailScanner. Using a domain that has been configured in the Postfix relay and transport files and has its MX records configured to pass through your new mail gateway, send a test email. You can view its progress through the mail gateway by watching the mail log <strong>tail -f /var/log/maillog</strong></p>
<p>Congratulations, you should now have a working Anti-Spam Anti-Virus mail gateway. Next we move onto &ldquo;tweaking&rdquo; MailScanner and configuring some graphs so you have some statistical information.</p>
<p>The main configuration file for MailScanner, /etc/MailScanner/MailScanner.conf is commented very well and explains everything in very simple terms. I am only going to point out the configuration options you really need to pay attention to, however I strongly recommend you go through the entire file. Note that all these directives exist in the default file, search for and edit them as required.</p>
<ul>
<li><strong>%org-name% = One_word_company_name</strong></li>
<li><strong>%org-long-name% = Your Company Name</strong></li>
<li><strong>%web-site% = www.youdomain.com</strong></li>
<li><strong>Max Children = 5</strong></li>
<li><strong>Queue Scan Interval = 2</strong></li>
<li><strong>SpamScore Number Instead Of Stars = yes </strong><em>See a number instead of ****</em></li>
</ul>
<p>It is suggested you set Max Children to 5 per CPU. However this will vary greatly depending on your hardware specs, you queue scan interval and you messages per batch directives. Its also important to remember that SpamAssassin settings are controled from within MailScanner.conf and changes directly to SA configs will have no effect.</p>
<p>To restart MailScanner you should run <strong>check_MailScanner</strong>, take not of its process ID&rsquo;s then kill them. To start MailScanner again rerun <strong>check_MailScanner</strong>.</p>
<p>As MailScanner uses a standard SpamAssassin installation I would recommend you take the time to install Pyzor, Razor and DCC. all three are easily installed and there is very simple step by step instructions in the SpamAssassin wiki. I would also recommend you collect any Spam that gets through and run sa-learn on it frequently. ClamAV will require its virus definitions to be updated regularly and you can automate this by adding <strong>/usr/local/bin/freshclam &ndash;quiet &gt;/dev/nul 2&gt;&amp;1</strong> to the crontab. We run ours every 13 hours.</p>
<p>MailScanner-MRTG is a package that automatically generates the configuration to build MRTG graphs for your MailScanner installation, graphing information including total emails, captured spam and spam ratio. These graphs not only please your manager but also help you identify how your gateway is handling the load of emails filtered, if there is a sudden spike in email traffic and how effective SpamAssassin really is.</p>
<p>MailScanner-MRTG requires httpd, net-snmp and net-snmp-utils. You can install this with <strong>yum install httpd net-snmp net-snmp-devel net-snmp-utils</strong>. YUM will take care of your dependency problems for you. MailScanner-MRTG comes in a nice simple to install RPM. A source version is also available. By default the RPM will install the graphs to /var/www/html/mailscanner-mrtg. If you would like to customise this at installation time you will need to use the source. You can find <a title="MailScanner-MRTG Download" href="http://mailscannermrtg.sourceforge.net/">MailScanner-MRTG here</a>.</p>
<p>This is as far as I will go with this guide. I will shortly add a guide on how to allow your customers to manage their own rulesets. We are yet to iron out the bugs in this ourselves.</p>
<p>As a side note the original server we configured did not cope with the load we put on it. I am expecting a replacement server to be put in later today. I will post some performance details when we have some more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickbrown.com.au/articles/plesk-anti-spam-gateway/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
