<?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>SysadminSpot.com</title>
	<atom:link href="http://sysadminspot.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysadminspot.com</link>
	<description>The Sysadmin Spot Blog for Linux and Windows System Administrators</description>
	<lastBuildDate>Wed, 09 Nov 2011 11:31:44 +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>Cron to Run on First Tuesday of the Month</title>
		<link>http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/</link>
		<comments>http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 10:24:35 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=372</guid>
		<description><![CDATA[I had a reasonable request come in this week whereby a reporting URL needs to be hit at a scheduled time. The required schedule was the first Tuesday of each <a href="http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I had a reasonable request come in this week whereby a reporting URL needs to be hit at a scheduled time. The required schedule was the first Tuesday of each month. Sounds reasonable right?</p>
<p>So I SSH&#8217;ed onto the box and opened up &#8220;crontab -e -ureportuser&#8221; where we store these kind of things. Then I started to think for a minute how I was going to go about this. I suddenly realised I wasn&#8217;t sure and turned to my trusty friend, Google.</p>
<p>Sigh, I don&#8217;t know what it was but Google was letting me down today. I wanted to find the most effective and neat way of doing this. I didn&#8217;t want to call some hacked up bash script, it had to be neat, easy and maintainable with no overhead calling additional scripts.</p>
<p>Why isn&#8217;t it straight forward? I simply want to run a report via cron on first Tuesday of the month. Darn, it could be a Monday, Wednesday, Thursday or any other day! Windows can do it easily, but who wants to use Windows for this kind of thing! Blah!</p>
<p>The closest I came up to was this:</p>
<blockquote><p>5 9 1-7 * 2 /bin/email-report.sh</p>
<p>5 = minutes 0:05<br />
9 = hour 9am<br />
1-7 = calendar day 1 to 7, as the first Tue has to be in this range<br />
* = month, all<br />
2 = weekday Tue<br />
/bin/email-report.sh = command</p></blockquote>
<p>It looks fine on paper except for one thing. The 2 (Tuesday) weekday setting comes through as an OR and not an AND. So the report was running on every applicable Tuesday and the first seven days of the month. Drat! The client shouldn&#8217;t have gotten that report yet?</p>
<p>A colleague (Gavin &#8211; thanks bro!) however came up with a delightful solution that had me impressed. It&#8217;s neat, tidy, maintainable and no extra scripts &#8211; within all the rules.</p>
<blockquote><p>5 9 * * 2 [ `date +\%d` -le 7 ] &amp;&amp; /bin/email-report.sh</p>
<p>5 = minutes 0:05<br />
9 = hour 9am<br />
* = calendar day, all<br />
* = month, all<br />
2 = weekday Tue<br />
[ `date +\%d` -le 7 ] &amp;&amp; /bin/email-report.sh = command</p></blockquote>
<p>How does this work? [ `date +%d` -le 7 ] &amp;&amp; forms a conditional statement in bash that will return an exit code based on whether the condition is true or false. In the condition is true the report gets run. Note that when we add this to a crontab entry, the % will need to be delimited with a backslash (\).</p>
<p>Broken down, the backquotes or backticks indicate command substitution, meaning the contents will be evaluated in bash. `date +%d` will evaluate into calling of the date command with the attribute +%d &#8211; which will return the current numeric day of the month (e.g. 03).</p>
<p>The remainder of the conditional statement (-le 7) asks if the resulting day of the month is less than or equal than seven. If the result is less than or equal to seven, then it is within the first seven day or week of the month and a true (1) is returned. Otherwise a false (0) exit code is returned and further execution halts.</p>
<p>If this command [ `date +\%d` -le 7 ] &amp;&amp; /bin/email-report.sh is run on every Tuesday of the month, eventually it will run within the first seven days and execute the report!</p>
<p>This command could be easily modified to run on the second, third, forth or fifth specified weekday of the month &#8211; whatever you require.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/" rel="bookmark" title="May 8, 2010">Generic PHP Function Code to Query &#8220;Stop Forum Spam&#8221; API</a></li>
<li><a href="http://sysadminspot.com/linux/synchronize-cpanel-dns-cluster-from-command-line/" rel="bookmark" title="September 26, 2009">Synchronise cPanel DNS Cluster from Command Line</a></li>
<li><a href="http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/" rel="bookmark" title="March 7, 2011">How to Stop sidebar.exe Using Lots of Memory (Edited 14 May 2011)</a></li>
<li><a href="http://sysadminspot.com/server-administration/apf-command-not-found/" rel="bookmark" title="February 27, 2010">apf: command not found</a></li>
<li><a href="http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/" rel="bookmark" title="March 6, 2011">Delete PC Sync Calendar on HTC Desire</a></li>
</ul>
<p><!-- Similar Posts took 31.507 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Stop sidebar.exe Using Lots of Memory (Edited 14 May 2011)</title>
		<link>http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/</link>
		<comments>http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 11:17:31 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Memory Leak]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=354</guid>
		<description><![CDATA[One of my readers, TED has made a suggestion as to a hack fix to the sidebar.exe memory problem (as documented in my blog post Windows sidebar.exe Memory Leak). With <a href="http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>One of my readers, TED has made a suggestion as to a hack fix to the sidebar.exe memory problem (as documented in my blog post <a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/" target="_blank">Windows sidebar.exe Memory Leak</a>). With some spare time at the moment, I&#8217;ve been able to implement his suggestion and confirm it works.</p>
<p>I&#8217;ve written a batch script, and confirmed this works in Windows 7 (should work in Windows Vista too). I created a batch file called restart-sidebar.bat, and stored it in c:\users\brendan &#8211; contents of the file below:</p>
<blockquote><p>@echo off<br />
taskkill /im sidebar.exe /f<br />
echo This script will now sleep momentarily&#8230;<br />
TIMEOUT /T 2<br />
echo Starting sidebar.exe now&#8230;<br />
start sidebar.exe</p></blockquote>
<p>The idea is it will kill the process called / task with the image name of, sidebar.exe, forcefully. It will then wait two seconds before starting the process again.</p>
<p>To complete the setup, create a new scheduled task specifying the  path to your newly created batch file (mine was  c:\users\brendan\restart-sidebar.bat). Run the scheduled task as your own user. I have it scheduled to run once a  day at 5pm. I prefer to have it run when I&#8217;m not using the computer,  more of a scheduled maintenance task that goes on behind the scenes. If  you find that&#8217;s not enough, schedule it to run a few times a day.</p>
<p><strong>For your information</strong> &#8211; I&#8217;ve encountered on only a few occurrences problems in the past when shutting. The sidebar process has stalled the shutdown procedure and Windows has forcefully killed the process. On login again I&#8217;ve lost a few sidebar settings. While I&#8217;ve not encountered this running the above batch script, it&#8217;s possible you may encounter this. If you&#8217;re concerned about it, drop the /f from the taskkill line in the above script (as to not force it) and increase the timeout value from 2, to up to 20 seconds to allow it to safely exit.</p>
<p><del><strong>Downsides / Cons </strong>- I haven&#8217;t been able to find something to force the batch file to run in a minimised window (so it pops up and runs as a black command prompt window). This I&#8217;m a little bit disappointed with &#8211; you could perhaps create a shortcut to the batch file and set the properties on it to start minimised &#8211; however I&#8217;ve not confirmed this works.</del> &#8211; See &#8220;Edit 14 May 2011&#8243; below which overcomes this problem.</p>
<p><strong>Advantages / Pluses </strong>- It&#8217;s a simple and easy fix. Avoids the pain of closing all your programs and restarting / logging off. Runs in seconds and doesn&#8217;t require administrative privileges to run.</p>
<p><strong>Edit 14 May 2011 </strong>- I recently received an interesting <a href="http://sysadminspot.com/contact/" target="_blank">email sent via the contact page</a>. Ray, a fellow sysadmin in the trenches, had come up with a beautiful revision to my own code above. Using the below Windows Script in a vbs file (e.g. restart_sidebar.vbs) run on the same scheduled task as above, it accomplishes the restart of the sidebar without any extra windows or user interaction &#8211; it runs silently in the background (like a ninja). I&#8217;ve tested it for a few days and it runs beautifully. Thanks Ray, and good work!</p>
<blockquote><p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&#8216; Author: Ray Flores (raymond.l.flores@gmail.com)<br />
&#8216; Written May 2011<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br />
WshShell.Run &#8220;C:\Windows\System32\taskkill.exe /im sidebar.exe /f&#8221;, 0, True<br />
WshShell.Run &#8220;C:\Windows\System32\timeout.exe /T 2&#8243;, 0, True<br />
WshShell.Run &#8220;sidebar.exe&#8221;, 0, True</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/" rel="bookmark" title="April 24, 2010">Windows sidebar.exe Memory Leak</a></li>
<li><a href="http://sysadminspot.com/windows/what-is-sidebar-exe/" rel="bookmark" title="March 7, 2011">What is sidebar.exe</a></li>
<li><a href="http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/" rel="bookmark" title="May 8, 2010">Generic PHP Function Code to Query &#8220;Stop Forum Spam&#8221; API</a></li>
<li><a href="http://sysadminspot.com/linux/moving-from-no-control-panel-servers-to-a-cpanel-server/" rel="bookmark" title="February 13, 2010">Moving From No Control Panel Servers to a cPanel Server</a></li>
<li><a href="http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/" rel="bookmark" title="October 25, 2011">Cron to Run on First Tuesday of the Month</a></li>
</ul>
<p><!-- Similar Posts took 36.981 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is sidebar.exe</title>
		<link>http://sysadminspot.com/windows/what-is-sidebar-exe/</link>
		<comments>http://sysadminspot.com/windows/what-is-sidebar-exe/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 10:48:28 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Memory Leak]]></category>
		<category><![CDATA[sidebar.exe]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=341</guid>
		<description><![CDATA[I&#8217;ve seen a lot of feedback about the sidebar.exe process running on Windows. I thought it might be beneficial to add some more information about it. What is sidebar.exe - <a href="http://sysadminspot.com/windows/what-is-sidebar-exe/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a lot of feedback about the sidebar.exe process running on Windows. I thought it might be beneficial to add some more information about it.</p>
<p><strong>What is sidebar.exe </strong>- It&#8217;s a genuine Microsoft process / application seen in Windows Vista and Windows 7. It is not dangerous, a virus or malware orientated.</p>
<p>In Windows Vista: It is responsible for displaying gadgets in a bar, usually docked down one side of the screen or screens, hence the term sidebar.</p>
<p>In Windows 7: Like in Windows Vista, while named the same, gadgets run outside of the &#8220;bar&#8221; and float on the desktop. Gadgets can also be independently docked to the side of a screen or moved around.</p>
<p>Gadgets can have their opacity / transparency adjusted individually (in Windows 7). They can also be set to appear on top &#8211; but don&#8217;t always depending on the other applications running at the time.</p>
<p><strong>Is it safe </strong>- Yes, the process is safe. It is however known to use large amounts of memory at times (especially when using gadgets that interact or feed from the internet). This may slow your computer but it is no way dangerous. To clear memory:</p>
<ul>
<li>Log off and on again</li>
<li>Restart the computer</li>
<li>Kill the process and start again from the Start menu.</li>
</ul>
<p>For more information on the large memory consumption of this process, see my other post on the <a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/" target="_blank">Windows sidebar.exe Memory Leak</a>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/" rel="bookmark" title="April 24, 2010">Windows sidebar.exe Memory Leak</a></li>
<li><a href="http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/" rel="bookmark" title="March 7, 2011">How to Stop sidebar.exe Using Lots of Memory (Edited 14 May 2011)</a></li>
<li><a href="http://sysadminspot.com/linux/find-what-ip-address-cpanel-site-is-using-via-ssh-bash/" rel="bookmark" title="February 13, 2010">Find What IP Address cPanel Site Is Using via Command Line</a></li>
<li><a href="http://sysadminspot.com/entertainment/im-told-the-customer-is-always-right/" rel="bookmark" title="September 28, 2009">I&#8217;m told the customer is always right?</a></li>
<li><a href="http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/" rel="bookmark" title="March 6, 2011">Delete PC Sync Calendar on HTC Desire</a></li>
</ul>
<p><!-- Similar Posts took 16.822 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/windows/what-is-sidebar-exe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete PC Sync Calendar on HTC Desire</title>
		<link>http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/</link>
		<comments>http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 08:46:07 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Phones]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[Desire]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[Sync]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=339</guid>
		<description><![CDATA[How it started - Work saw fit to give me a work mobile/cell phone. I already have an iPhone for personal use, and I&#8217;m no fan boy, so I opted <a href="http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p><strong>How it started </strong>- Work saw fit to give me a work mobile/cell phone. I already have an iPhone for personal use, and I&#8217;m no fan boy, so I opted for a HTC Desire running Android 2.2. I wanted to experience another operating system, try new things, who knows it might be better than what I&#8217;ve got now.</p>
<p><strong>The Problem </strong>- My new HTC is really good at syncing things, too good in fact. I plugged it into my personal computer to play with the HTC Sync program (you know, sync some music for the drives to work). For reasons unbeknown to me, I also told it to sync my personal calendar. The calendar syncs to the HTC Desire to a calendar named &#8220;PC Sync&#8221;. After realising my mistake I sought to delete the calendar &#8211; after all it&#8217;s a personal calendar on a work phone, it&#8217;s reminding me about all my personal appointments and I don&#8217;t like it. So I plug the phone back into my personal computer, open HTC Sync and turn off the calendar syncing. After the lengthy synchronize process completes I check my calendars: Personal Calendar (from Google), PC Sync, Facebook and Exchange. Whaaa? The PC Sync calendar is still there!</p>
<p><strong>The Problem Escalated </strong>- Annoyed, I then open the calendar application on the HTC Desire, press Menu &gt; More &gt; Calendars. It&#8217;s still there! I press Menu &gt; Remove Calendars and the option to delete the PC Sync calendar is not available. I&#8217;m stuck with the calendar with all my personal events on it and no way to remove it &#8211; beyond deleting weeks worth of entries one by one, I&#8217;m a little lost as to what to do next. The outlook is grim.</p>
<p><strong>The Grinding </strong>- Google! My friend! I start running some searches around Google looking for other people experiencing the same problem. There are. But no resolution. All I find are lame responses from know it all people who really know nothing. Some suggests using another Sync program &#8211; a little overkill isn&#8217;t it? I just want to remove a calendar?</p>
<p>I&#8217;d been searching for a good 10 minutes, when I light globe lit up&#8230;</p>
<p><strong>The Solution </strong>- I recall some weeks back deleting some applications after being prompted that my (tiny) SD card was running out of space. I went into Settings,  Applications and then Manage Applications &#8211; and proceeded to start deleting games I&#8217;d downloaded (strictly work related of course). I recalled there was a button on this screen called Clear Data.</p>
<p>With hast, I picked up my HTC Desire mobile phone, unlocked it, tapped Settings &gt; Applications &gt; Manage Applications &gt; &#8220;All&#8221; tab and searched for the word Calender. There were three applications &#8211; Calendar, Calendar Storage and Calendar Sync Adapter. Doesn&#8217;t Calendar Storage sound convenient? I tapped Calendar Storage and then Clear Data. Upon checking my calendars, I&#8217;d lost all my calenders and their data &#8211; all calendar related data was gone.</p>
<p>Work uses Microsoft Exchange (to my disgust) &#8211; so I opened Settings &gt; Accounts &amp; Sync &gt; Exchange ActiveSync &gt; Sync Now which repopulated my calendar with all my work calendar data, appointments and meetings. I&#8217;m pretty sure if I did the same for the Google account I&#8217;d sync that calendar back too &#8211; but since I don&#8217;t use it I didn&#8217;t bother.</p>
<p>All my calendar information is stored elsewhere and synchronised to my phone. All my calendar information (I wanted) could be recovered again.</p>
<p><strong>In Summary </strong>- When syncing your calendars with the HTC Sync program to your HTC phone, it seems that you can&#8217;t un-sync or delete the PC Sync calendar once synched. It seems like such a simple thing to do, but not well thought through by the developers it seems. I found and used a less obvious method of deleting the calendar &#8211; deleting all the calendar data via the application manager. This meant all my calendar data was deleted. This was intentional and I knew I could recover what I needed. Only proceed if you know you can recover your calendar data from another source. A backup beforehand probably wouldn&#8217;t go astray either.</p>
<p>These are the steps I took on my HTC Desire running Android version 2.2 to delete all calendar data, and in turn the PC Sync calendar:</p>
<ol>
<li>On the phone, open Settings &gt; Applications &gt; Manage Applications</li>
<li>Click the &#8220;All&#8221; tab at the top of the screen</li>
<li>Scroll down and tap the Calendar Storage application</li>
<li>Tap the &#8220;Clear data&#8221; button, and confirm you&#8217;d like to proceed.</li>
</ol>
<p>Now all the calendar data is gone from the phone, running your sync processes again to populate only the calendars you want on your phone.</p>
<p>So, if you&#8217;re stuck and need to remove this darn annoying calendar &#8211; I hope my experience here has been able to help.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/" rel="bookmark" title="June 14, 2010">Rant: Google In Trouble Over Collecting Unprotected WiFi Data</a></li>
<li><a href="http://sysadminspot.com/linux/synchronize-cpanel-dns-cluster-from-command-line/" rel="bookmark" title="September 26, 2009">Synchronise cPanel DNS Cluster from Command Line</a></li>
<li><a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/" rel="bookmark" title="July 23, 2010">Firefox Google Search Plugin for Australia (AU)</a></li>
<li><a href="http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/" rel="bookmark" title="February 22, 2010">Emails Not Sending &#8211; defer (111): Connection refused (Exim) and SMTP Tweak</a></li>
<li><a href="http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/" rel="bookmark" title="May 16, 2010">Modifying cPanel Mailbox Quota Errors &#8220;invalid maildirsize file&#8221;</a></li>
</ul>
<p><!-- Similar Posts took 43.100 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Help Kill IE6</title>
		<link>http://sysadminspot.com/security/help-kill-ie6/</link>
		<comments>http://sysadminspot.com/security/help-kill-ie6/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 10:00:49 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=331</guid>
		<description><![CDATA[I was sent an interesting email today containing just the following: http://ie6update.com/ So I took a look and liked what I saw. As the highly educated and brilliant sysadmin you <a href="http://sysadminspot.com/security/help-kill-ie6/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I was sent an interesting email today containing just the following:</p>
<p><a href="http://ie6update.com/" target="_blank">http://ie6update.com/</a> <img src='http://sysadminspot.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So I took a look and liked what I saw.</p>
<p>As the highly educated and brilliant sysadmin you are, I know that you know that Internet Explorer 6 has reached it&#8217;s end of life. Meaning that the developer (Microsoft) is no longer supporting or maintaining the product (code).</p>
<p>It&#8217;s dead. Therefore one can now assume that IE6 is both out of date and insecure. Not only that, it lacks the compatibility of newer technologies and support of newer (and older) web standards that today&#8217;s web community demands.</p>
<p>What is interesting though is a large percentage of the internet still uses it! I have to admit advantages to IE6 include it is really quick and simple. Plus I don&#8217;t get NAGGED by the application to setup/configure the browser with a billion step wizard every time I login to a new workstation!</p>
<p><img class="aligncenter size-full wp-image-336" title="ie6" src="http://sysadminspot.com/wp-content/resources/2010/11/ie6.jpg" alt="" width="540" height="49" /></p>
<p>That aside however, the website attempts to encourage a move from older technology to the new. Being a part of the web community and being a web developer, I think it&#8217;s a brilliant way we can all easily participate in the education of users. As the image above demonstrates, a simple prompt appears for users of IE6 when arriving at your website, encouraging them to upgrade. Clicking takes to the Microsoft IE website. Integration into your website or blog is simple &#8211; download the provided zip from <a href="http://ie6update.com/" target="_blank">http://ie6update.com/</a>, upload the files within the zip package, and finish by adding the code in the example.html file to your webpage. If you use WordPress Blog, it&#8217;s a simple plug-in install.</p>
<p>I&#8217;m in!<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/" rel="bookmark" title="April 24, 2010">Windows sidebar.exe Memory Leak</a></li>
<li><a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/" rel="bookmark" title="July 23, 2010">Firefox Google Search Plugin for Australia (AU)</a></li>
<li><a href="http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/" rel="bookmark" title="June 12, 2010">Simple IP Information / IP to Location (Country) Lookup</a></li>
<li><a href="http://sysadminspot.com/windows/what-is-sidebar-exe/" rel="bookmark" title="March 7, 2011">What is sidebar.exe</a></li>
<li><a href="http://sysadminspot.com/entertainment/im-told-the-customer-is-always-right/" rel="bookmark" title="September 28, 2009">I&#8217;m told the customer is always right?</a></li>
</ul>
<p><!-- Similar Posts took 32.145 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/security/help-kill-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Google Search Plugin for Australia (AU)</title>
		<link>http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/</link>
		<comments>http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 12:55:43 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=327</guid>
		<description><![CDATA[I&#8217;m a big user of Firefox. It&#8217;s my preferred browser for many reasons, but none more than Internet Explorer just right royally annoys me. I&#8217;ve been using a lot more <a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big user of Firefox. It&#8217;s my preferred browser for many reasons, but none more than Internet Explorer just right royally annoys me. I&#8217;ve been using a lot more of Windows these days and every new computer or server I login to wants to welcome me to Internet Explorer and setup all my settings! Go Away! I just want to download something real quick!</p>
<p>Back to the point though &#8211; Firefox &#8211; when you use the Google Search plugin that comes with the default install of Firefox, it goes to some long and unnecessarily complicated URL on the google.com domain. Now I&#8217;m Australian, and proud to be. My preferred domain is google.com.au. While the Google SSL search (<a href="https://encrypted.google.com/" target="_blank">https://encrypted.google.com/</a>) is helpful, you lose a lot of the quick access to Image search, time and&#8230; just useful search options I&#8217;ve come to rely on. Regardless, as users we typically like to use the search for our own country.</p>
<p>Recently in my tinkering with the Firefox config files&#8230; I lost my Google Search plugin. I&#8217;ve been using the Google SSL search instead (which I strongly dislike) or to type google.com.au into the address bar &#8211; so old school.</p>
<p>I found this profoundly awesome page however which lists the Google Search plugins for nearly every nation/country/language Google has a search page for.</p>
<p><a href="http://mycroft.mozdev.org/google-search-plugins.html" target="_blank">http://mycroft.mozdev.org/google-search-plugins.html</a></p>
<p>Just to pick a few out, there&#8217;s Google Search plugins for:</p>
<ul>
<li>Google Australia (google.com.au)</li>
<li>Google AR (google.com.ar)</li>
<li>Google CA (google.ca)</li>
<li>Google DE (google.de)</li>
<li>Google FR (google.fr)</li>
<li>and more!</li>
</ul>
<p>I also want to point out there appears to be a few options to pick from:</p>
<ul>
<li>Google AU &#8211; <strong>pages from </strong>Australia (google.com.au) by Mycroft Project</li>
<li>Google AU &#8211; <strong>the web </strong>(google.com.au) by Mycroft Project</li>
</ul>
<p>The &#8220;pages from&#8221; is like using google.com.au and selecting to only return results from Australia (or whatever country). However &#8220;the web&#8221; (my preference) just uses the .com.au Google domain to search.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/" rel="bookmark" title="June 14, 2010">Rant: Google In Trouble Over Collecting Unprotected WiFi Data</a></li>
<li><a href="http://sysadminspot.com/security/help-kill-ie6/" rel="bookmark" title="November 15, 2010">Help Kill IE6</a></li>
<li><a href="http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/" rel="bookmark" title="June 12, 2010">Simple IP Information / IP to Location (Country) Lookup</a></li>
<li><a href="http://sysadminspot.com/linux/installing-wordpress-via-ssh-command-line/" rel="bookmark" title="September 4, 2009">Installing WordPress via SSH Command Line</a></li>
<li><a href="http://sysadminspot.com/seo/improve-pr-from-parked-domains/" rel="bookmark" title="February 13, 2010">Improve Page Rank from Parked Domains</a></li>
</ul>
<p><!-- Similar Posts took 28.501 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rant: Google In Trouble Over Collecting Unprotected WiFi Data</title>
		<link>http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/</link>
		<comments>http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 09:40:55 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[WiFi]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=248</guid>
		<description><![CDATA[I am utterly sick to death of hearing about "Google breeching privacy" or "spying on private data". If anyone is stupid enough to leave their wireless network unsecured, then they deserve everything coming to them! There is nothing stopping anyone from driving around in a car, collecting wireless data exchanged through the medium we all share (air). People have been doing it for years! Who hasn't done it? I have! Why is Google any different? Why has this event turned into a ridiculous worldwide scandal? <a href="http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<h3>Rant Time</h3>
<p>I am utterly sick to death of hearing about &#8220;Google breeching privacy&#8221; or &#8220;spying on private data&#8221;. If anyone is stupid enough to leave their wireless network unsecured, then they deserve everything coming to them! There is nothing stopping anyone from driving around in a car, collecting wireless data exchanged through the medium we all share (air). People have been doing it for years! Who hasn&#8217;t done it? I have! Why is Google any different? Why has this event turned into a ridiculous worldwide scandal?</p>
<p>The points are, Google stored very small fragments of data that was broadcasting at the time a Google car drove past. If the wireless network was secured (encrypted like all good sysadmins will ensure) then the data was not readable. The scare is, if you were logging into a website at the exact second Google drove past, your information may have been stored.</p>
<p>Lets assume for a second it was&#8230; Who cares!!? As soon as it was discovered, the information was segregated and stored on an encrypted volume. Where a nominated representative for a country was selected, the data was securely deleted and verified by independent source.</p>
<p>But it comes back to one thing &#8211; if any residence or business operates a wireless network that is not &#8220;secured&#8221; then it is common knowledge that any data travelling on that network is publicly accessible. Grow the hell up n00bs, and take some responsibility for your own stupidity.</p>
<p>It&#8217;s similar to saying &#8220;I want cake, but I&#8217;m too lazy to get up and get some. &#8221; If you&#8217;re too lazy to do something about it, then you don&#8217;t get the right to complain about it!</p>
<p>EDIT:</p>
<h3>The Media</h3>
<p>They really aren&#8217;t helping the situation by relaying misleading information to readers, who have no choice but to accept it at face value. Check this news article out by <a href="http://www.theaustralian.com.au/australian-it/google-street-view-cars-may-have-obtained-bank-details/story-e6frgakx-1225876377711" target="_blank">The Australian IT</a>:</p>
<blockquote>
<h2>Google Street View cars may have obtained bank details</h2>
<p><strong>BANK details and other private information of Australians may have been illegally obtained by Google, the federal government says.</strong></p>
<p>Employees of the internet giant are under police investigation for collecting personal information about Australians while they photographed streets for the Google Maps website.</p>
<p>Federal Attorney-General Robert McClelland revealed on Sunday that he had referred the matter to the Australian Federal Police.</p>
<p>Communications Minister Stephen Conroy told a Senate hearing in May that if proven, it would amount to the &#8220;single greatest breach in the history of privacy&#8221;.</p>
<p>&#8220;(If) you were doing a banking transaction, or transmitting personal information, they could have hoover-ed it up, sucked it up into their machine,&#8221; he told ABC Television on Monday.</p>
<p>&#8220;What we want to ensure now is that we get access to the information that&#8217;s been collected.</p>
<p>&#8220;We want to know where it&#8217;s stored, we want to know what the information is, and importantly we want to ensure that Google don&#8217;t destroy this information.&#8221;</p>
<p>It was a reminder that Australians should always be alert to online security, Senator Conroy said, while spruiking Cyber Security Awareness Week.</p>
<p>Up to one third of Australians don&#8217;t always tap into their wireless connections with passwords, making them vulnerable to security attacks, he said.</p>
<p>Senator Conroy said it was up to police to accept Google&#8217;s claim that the collection of personal information was a mistake.</p>
<p>Source: <a href="http://www.theaustralian.com.au/australian-it/google-street-view-cars-may-have-obtained-bank-details/story-e6frgakx-1225876377711" target="_blank">The Australian IT</a><br />
Last Accessed: 14 Jul 2010</p></blockquote>
<p>My response to that:</p>
<blockquote><p>As previously mentioned, it&#8217;s called SSL, Conroy you pathetic excuse for existence. &#8220;What we want to ensure now is that we get access to the information that&#8217;s been collected&#8221; is what I would call the &#8220;single greatest breach in the history of privacy&#8221; &#8211; why does the government need access to this information? I trust Google with it more than Conroy. It&#8217;s not Google&#8217;s fault &#8220;Up to one third of Australians&#8221; are idiots who can&#8217;t secure their wifi connection.</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/" rel="bookmark" title="July 23, 2010">Firefox Google Search Plugin for Australia (AU)</a></li>
<li><a href="http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/" rel="bookmark" title="March 6, 2011">Delete PC Sync Calendar on HTC Desire</a></li>
<li><a href="http://sysadminspot.com/linux/sftp-vs-ftp-vs-scp-advantages/" rel="bookmark" title="September 8, 2009">6 Reason to use SFTP over FTP or SCP</a></li>
<li><a href="http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/" rel="bookmark" title="June 12, 2010">Simple IP Information / IP to Location (Country) Lookup</a></li>
<li><a href="http://sysadminspot.com/security/linux-software-firewalls/" rel="bookmark" title="February 13, 2010">Linux Software Firewalls</a></li>
</ul>
<p><!-- Similar Posts took 61.808 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple IP Information / IP to Location (Country) Lookup</title>
		<link>http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/</link>
		<comments>http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 12:41:47 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[IP Address]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=243</guid>
		<description><![CDATA[IP Facts A colleague of mine recently released a new website, which I thought was brilliant enough to blog about. Simply, the website displays IP Facts, without all the crap <a href="http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<h3>IP Facts</h3>
<p>A colleague of mine recently released a new website, which I thought was brilliant enough to blog about. Simply, the website displays <a href="http://ipfacts.info/" target="_blank">IP Facts</a>, without all the crap and ads we normally have to put up with. Simply put sysadmins, it&#8217;s simple and gets straight to the point &#8211; something hard to come across.</p>
<p>With a little assistance, we also got it to lookup the details of a supplied IP address, <a href="http://ipfacts.info/ip-to-country" target="_blank">IP to Location (Country)</a>, which I find helpful when checking abusive IP addresses.</p>
<p>Get your IP Facts &#8211; <a href="http://ipfacts.info/" target="_blank">http://ipfacts.info/</a><br />
Check an IP&#8217;s Location / Country &#8211; <a href="http://ipfacts.info/ip-to-country" target="_blank">http://ipfacts.info/ip-to-country</a></p>
<h3>Linux / SSH Console Commands</h3>
<p>Of course if you have a console window open, you can typically get most of this information using a few commands.</p>
<p>Find your server&#8217;s interface IP address:</p>
<blockquote><p>ifconfig</p></blockquote>
<p>Check what an IP address resolves to:</p>
<blockquote><p>host iphere<br />
host 122.122.122.122</p></blockquote>
<p>Check what hostname an IP address resolves to:</p>
<blockquote><p>host domain.com<br />
host google.com</p></blockquote>
<p>As for what country an IP belongs to, this isn&#8217;t as easy. You can run a whois and see who the IP is owned by, but that isn&#8217;t always the correct country for international corporations, but even then that&#8217;s no promise you&#8217;ll get any information if any:</p>
<blockquote><p>$ whois 122.122.122.122<br />
[Querying whois.apnic.net]<br />
[Redirected to whois.twnic.net]<br />
[Querying whois.twnic.net]<br />
[whois.twnic.net]<br />
Chunghwa Telecom Data Communication Business Group</p>
<p>Netname: HINET-NET<br />
Netblock: 122.122.0.0/16</p>
<p>Administrator contact:<br />
network-adm@hinet.net</p>
<p>Technical contact:<br />
network-adm@hinet.net</p></blockquote>
<p>In the case of the above, the <a href="http://ipfacts.info/ip-to-country" target="_blank">IP to Country script</a> comes in handy because the database is build from another source.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/linux/find-what-ip-address-cpanel-site-is-using-via-ssh-bash/" rel="bookmark" title="February 13, 2010">Find What IP Address cPanel Site Is Using via Command Line</a></li>
<li><a href="http://sysadminspot.com/linux/moving-from-no-control-panel-servers-to-a-cpanel-server/" rel="bookmark" title="February 13, 2010">Moving From No Control Panel Servers to a cPanel Server</a></li>
<li><a href="http://sysadminspot.com/linux/locking-down-and-secure-ssh-access/" rel="bookmark" title="September 5, 2009">Locking down and securing SSH access to your server</a></li>
<li><a href="http://sysadminspot.com/linux/advantages-cpanel-clustered-dns-and-setup/" rel="bookmark" title="September 7, 2009">Understanding cPanel clustered DNS and Setup</a></li>
<li><a href="http://sysadminspot.com/linux/sftp-vs-ftp-vs-scp-advantages/" rel="bookmark" title="September 8, 2009">6 Reason to use SFTP over FTP or SCP</a></li>
</ul>
<p><!-- Similar Posts took 29.755 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTTP Status Code Drinking Game</title>
		<link>http://sysadminspot.com/entertainment/http-status-code-drinking-game/</link>
		<comments>http://sysadminspot.com/entertainment/http-status-code-drinking-game/#comments</comments>
		<pubDate>Fri, 28 May 2010 12:51:58 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=240</guid>
		<description><![CDATA[I&#8217;ve started working with a new sysadmin the last few weeks (hey Dan if he&#8217;s reading). Like all sysadmins, they bring a new flavour to the game of work. Dan <a href="http://sysadminspot.com/entertainment/http-status-code-drinking-game/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started working with a new sysadmin the last few weeks (hey Dan if he&#8217;s reading). Like all sysadmins, they bring a new flavour to the game of work. Dan shared this with me, which I couldn&#8217;t help but share with everyone else. Welcome to the <a href="http://statuscodedrinkinggame.com/" target="_blank">status code drinking game!</a> If you&#8217;re a techy kind of person, or work in web development, you might get a kick from this.</p>
<p><a href="http://statuscodedrinkinggame.com/">http://statuscodedrinkinggame.com/</a></p>
<p>Some samples for your amusement:</p>
<blockquote><p>404 Not Found<br />
Last person to make a greeting must drink.</p>
<p>416 Request Entity Too Large<br />
Thats what she said! Everyone drinks.</p>
<p>403 Forbidden<br />
Miss a turn, Must drink double on next turn.</p></blockquote>
<p>Check out <a href="http://statuscodedrinkinggame.com/" target="_blank">the website</a> for more.</p>
<p>So at your next departmental party, get all the sysadmins  together and try out this status code drinking game! I&#8217;m looking forward to it.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/" rel="bookmark" title="May 8, 2010">Generic PHP Function Code to Query &#8220;Stop Forum Spam&#8221; API</a></li>
<li><a href="http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/" rel="bookmark" title="May 8, 2010">PHP Code Block Vent In Spite of Spammers</a></li>
<li><a href="http://sysadminspot.com/security/help-kill-ie6/" rel="bookmark" title="November 15, 2010">Help Kill IE6</a></li>
<li><a href="http://sysadminspot.com/seo/improve-pr-from-parked-domains/" rel="bookmark" title="February 13, 2010">Improve Page Rank from Parked Domains</a></li>
<li><a href="http://sysadminspot.com/linux/installing-wordpress-via-ssh-command-line/" rel="bookmark" title="September 4, 2009">Installing WordPress via SSH Command Line</a></li>
</ul>
<p><!-- Similar Posts took 17.148 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/entertainment/http-status-code-drinking-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying cPanel Mailbox Quota Errors &#8220;invalid maildirsize file&#8221;</title>
		<link>http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/</link>
		<comments>http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/#comments</comments>
		<pubDate>Sun, 16 May 2010 12:40:03 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=229</guid>
		<description><![CDATA[My sysadmin email address which server notifications come to started getting emails about a mailbox quota getting close on a cPanel server. I logged into the client&#8217;s control panel to <a href="http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>My sysadmin email address which server notifications come to started getting emails about a mailbox quota getting close on a cPanel server. I logged into the client&#8217;s control panel to increase their mailbox quota, I found the account, doubled the quota and went to save it when I got the following error message:</p>
<blockquote><p>invalid maildirsize file</p></blockquote>
<p>While I didn&#8217;t actually check the size of the user&#8217;s mailbox in file size, which I would have done with:</p>
<blockquote><p>du -sch /home/username/mail/domain.com/john.smith/*</p></blockquote>
<p>I would have found that the actual usage was near zero, while cPanel was reporting the mail box usage was over 200mb.</p>
<p>The cause of the invalid maildirsize file error message is a corruption in the maildirsize file &#8211; as the error might suggest. It is no longer accurately keeping track of the usage properly. The solution is simple, all you need to do is delete the file and it will rebuild itself without a problem (will occur on new activity like a login or modification of quota).</p>
<p>There are two common ways of deleting it. First is to login to your server via SSH. The follow example applies where the email address is john.smith@domain.com, and the account username is &#8220;username&#8221;. Substitute the values in bold.</p>
<blockquote><p>cd /home/<strong>username</strong>/mail/<strong>domain.com</strong>/<strong>john.smith</strong>/<br />
rm -f maildirsize</p></blockquote>
<p>That&#8217;s all there is to it for SSH.</p>
<p>The second method is probably more easier for the laymen, FTP. Login to the account with the primary login details (e.g. username will be the account username [avoid the sub user FTP accounts], and the password the account password). Browse to:</p>
<blockquote><p>/mail/<strong>domain.com</strong>/<strong>john.smith</strong>/<br />
Delete file named maildirsize</p></blockquote>
<p>Problem solved. The disk usage dropped back to zero and I&#8217;ve not received any more annoying emails since, and the quota reset didn&#8217;t give me a invalid maildirsize file error message.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/linux/moving-from-no-control-panel-servers-to-a-cpanel-server/" rel="bookmark" title="February 13, 2010">Moving From No Control Panel Servers to a cPanel Server</a></li>
<li><a href="http://sysadminspot.com/linux/synchronize-cpanel-dns-cluster-from-command-line/" rel="bookmark" title="September 26, 2009">Synchronise cPanel DNS Cluster from Command Line</a></li>
<li><a href="http://sysadminspot.com/linux/find-what-ip-address-cpanel-site-is-using-via-ssh-bash/" rel="bookmark" title="February 13, 2010">Find What IP Address cPanel Site Is Using via Command Line</a></li>
<li><a href="http://sysadminspot.com/linux/advantages-cpanel-clustered-dns-and-setup/" rel="bookmark" title="September 7, 2009">Understanding cPanel clustered DNS and Setup</a></li>
<li><a href="http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/" rel="bookmark" title="February 22, 2010">Emails Not Sending &#8211; defer (111): Connection refused (Exim) and SMTP Tweak</a></li>
</ul>
<p><!-- Similar Posts took 29.072 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Generic PHP Function Code to Query &#8220;Stop Forum Spam&#8221; API</title>
		<link>http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/</link>
		<comments>http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/#comments</comments>
		<pubDate>Fri, 07 May 2010 17:22:09 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=197</guid>
		<description><![CDATA[I&#8217;ve recently been bombarded with an influx of spam on my multiple forums, wordpress blogs and website contact us forms. As a sysadmin I see it a lot, but it&#8217;s <a href="http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been bombarded with an influx of spam on my multiple forums, wordpress blogs and website contact us forms. As a sysadmin I see it a lot, but it&#8217;s getting to the point where it&#8217;s actually annoying me. I see so much of it on the servers.</p>
<p>I found this website called <a href="http://www.stopforumspam.com/" target="_blank">Stop Forum Spam</a> that stores and maintains a database of known details of spammers. So if JohnyGreen at nys@affiliatelist.org with the IP address of 92.113.110.125 tries to interact with your forums, wordpress blog or otherwise, you can do a lookup of the details stored at <a href="http://www.stopforumspam.com/" target="_blank">http://www.stopforumspam.com/</a>. If you do, you&#8217;ll find at the time of writing <a href="http://www.stopforumspam.com/search?q=JohnyGreen" target="_blank">16 results on that username</a> alone. The IP address and email will also flag several results.</p>
<p>From the front page of stopforumspam.com, &#8220;We catch a lot of spammers trying to register on forums. And we post their details here.  We currently have information on 873718 spammers since about December 2006. Here is the last 12 hours worth of spammers caught in our traps.&#8221;</p>
<p>The website also offers <a href="http://www.stopforumspam.com/apis" target="_blank">APIs</a> that you can use to query their database. For example:</p>
<p>http://www.stopforumspam.com/api?ip=71.194.95.244</p>
<p>http://www.stopforumspam.com/api?email=i-m-spammer@domain.cn</p>
<p>http://www.stopforumspam.com/api?username=TestUserNameHere</p>
<p>Based on that, this neat little XML result is returned:</p>
<blockquote><p>&lt;response success=&#8221;true&#8221;&gt;<br />
&lt;type&gt;ip&lt;/type&gt;<br />
&lt;appears&gt;yes&lt;/appears&gt;<br />
&lt;lastseen&gt;2009-10-26 11:55:07&lt;/lastseen&gt;<br />
&lt;frequency&gt;78&lt;/frequency&gt;<br />
&lt;/response&gt;</p></blockquote>
<p>Depending on the platform, there are a lot of plugins/mods developed for your forum or bulletin board. Simply implement them using the instructions of the plugin developer.</p>
<p>Interestingly, I searched the WordPress Plugin database and found a heap of plugins that query the database and block potential attacks or abuse of your blog or website. Check out the <a href="http://wordpress.org/extend/plugins/search.php?q=stopforumspam" target="_blank">plugin results</a>! I currently use the <a href="http://wordpress.org/extend/plugins/wp-nospamuser/" target="_blank">WP-NoSpamUser wordpress plugin</a> on some of my other blogs (it works very well, lots of options to choose from).</p>
<p>The <a href="http://www.stopforumspam.com/downloads/" target="_blank">Stop Forum Spam download page</a> also references code examples by other third party developers. Being a PHP developer, I checked out the work of <a href="http://guildwarsholland.nl/" target="_blank">Smurf_Minions</a> who wrote their <a href="http://guildwarsholland.nl/phphulp/testspambot.php" target="_blank">own code to check for spam bots</a> using the Stop Forum Spam API. They also released their source code! While the developer has done an excellent job, I thought I could improve upon their code a little. So I set out to make something a little more generic and useful to the every day web developer to use.</p>
<p>I rewrote the primary function and added a little bit more internal documentation for anyone who wants to take this and improve on it further, or adapt it to their own custom use. You can pretty much just reference the function below and pass the data you want to check. It will return a Boolean result of true/false or 1/0. The latest version is included below. Monitor the revision number for new versions.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
function CheckIfSpambot($emailAddress, $ipAddress, $userName, $debug = false)
{

// *********************************
// Code originally written by Smurf_Minions (http://guildwarsholland.nl/)
// Original Source: http://guildwarsholland.nl/phphulp/testspambot.php
//
// Modified by Brendan Erskine (http://sysadminspot.com/)
// Last Modified: 8 May 2010
// Revision Number: 2.0
// *********************************

  // Initiate and declare spambot/errorDetected as false - as we're just getting started
  $spambot = false;
  $errorDetected = false;

  // -------------
  // Check email address
  // -------------

  if ($emailAddress != &quot;&quot;)
  {
    $xml_string = file_get_contents(&quot;http://www.stopforumspam.com/api?email=&quot; . urlencode($emailAddress));
    $xml = new SimpleXMLElement($xml_string);

    if ($xml-&gt;appears == &quot;yes&quot;) // Was the result was registered
    {
      $spambot = true; // Check failed. Result indicates dangerous.
    }
    elseif ($xml-&gt;appears == &quot;no&quot;) // Check passed. Result returned safe.
    {
      $spambot = false; // Check passed. Result returned safe.
    }
    else
    {
      $errorDetected = true; // Test returned neither positive or negative result. Service might be down?
    }
  }

  // -------------
  // Check IP Address
  // -------------
  if ($spambot != true &amp;&amp; $ipAddress != &quot;&quot;)
  {
    $xml_string = file_get_contents(&quot;http://www.stopforumspam.com/api?ip=&quot; . urlencode($ipAddress));
    $xml = new SimpleXMLElement($xml_string);

    if ($xml-&gt;appears == &quot;yes&quot;) // Was the result was registered
    {
      $spambot = true; // Check failed. Result indicates dangerous.
    }
    elseif ($xml-&gt;appears == &quot;no&quot;) // Check passed. Result returned safe.
    {
      $spambot = false; // Check passed. Result returned safe.
    }
    else
    {
      $errorDetected = true; // Test returned neither positive or negative result. Service might be down?
    }
  }

  // -------------
  // Check Username
  // -------------
  if ($spambot != true &amp;&amp; $userName != &quot;&quot;)
  {
    $xml_string = file_get_contents(&quot;http://www.stopforumspam.com/api?username=&quot; . urlencode($userName));
    $xml = new SimpleXMLElement($xml_string);

    if ($xml-&gt;appears == &quot;yes&quot;) // Was the result was registered
    {
      $spambot = true; // Check failed. Result indicates dangerous.
    }
    elseif ($xml-&gt;appears == &quot;no&quot;) // Check passed. Result returned safe.
    {
      $spambot = false; // Check passed. Result returned safe.
    }
    else
    {
      $errorDetected = true; // Test returned neither positive or negative result. Service might be down?
    }
  }

  // To debug function, call it with the debug flag as true and instead the function will return whether or not an error was detected, rather than the test result.
  if ($debug == true)
  {
    return $errorDetected; // If enabled, return whether or not an error was detected
  }
  else
  {
    return $spambot; // Return test results as either true/false or 1/0
  }
}
?&gt;
</pre>
<p>If you want to test the above function, put the above code in a file called spambotcheck.php. Then add the following code to insert a form and result handling to the page:</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php
if (isset($_GET[check]))
{
  $result = CheckIfSpambot($_POST[emailAddress], $_POST[ipAddress], $_POST[userName]);

  switch ($result)
  {
    case 0:
		echo &quot;Negative result&quot;;
		break;

	case 1:
		echo &quot;Positive result&quot;;
		break;

	default:
		echo &quot;You broke it!&quot;;
	}
}
?&gt;
&lt;form method=&quot;post&quot; action=&quot;&lt;?php echo $_SERVER[&quot;PHP_SELF&quot;]; ?&gt;?check&quot;&gt;
  &lt;label&gt;Username
  &lt;input type=&quot;text&quot; name=&quot;userName&quot; id=&quot;userName&quot;&gt;
  &lt;/label&gt;
  &lt;label&gt;IP Address
  &lt;input type=&quot;text&quot; name=&quot;ipAddress&quot; id=&quot;ipAddress&quot;&gt;
  &lt;/label&gt;
  &lt;label&gt;Email Address
  &lt;input type=&quot;text&quot; name=&quot;emailAddress&quot; id=&quot;emailAddress&quot;&gt;
  &lt;/label&gt;
  &lt;input type=&quot;submit&quot; name=&quot;button&quot; id=&quot;button&quot; value=&quot;Submit&quot;&gt;
&lt;/form&gt;</pre>
<p>If you want to demo the output, <a href="http://sysadminspot.com/spambotcheck.php" target="_blank">check out my own spambotcheck.php demo</a>.</p>
<p>My tests so far show it works reasonable well. The only way I would improve this further is the debugging ability. The API results return success=&#8221;true&#8221; or success=&#8221;false&#8221; which could be built into the error checking. To use the debugging at the moment, you need to modify your function call to something like this:</p>
<pre class="brush: php; title: ; notranslate">// Add a true flag in the forth parameter
$result = CheckIfSpambot($_POST[emailAddress], $_POST[ipAddress], $_POST[userName], true);

// Or use 1 as the fourth parameter.
$result = CheckIfSpambot($_POST[emailAddress], $_POST[ipAddress], $_POST[userName], 1);
</pre>
<p>It will change the returned value to whether an error was detected (true) or not (false) instead of a spammer detected (true) or not (false). Make sure you reset debugging back to false (or remove the parameter) otherwise you&#8217;ll be getting misleading results back!!<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/" rel="bookmark" title="May 8, 2010">PHP Code Block Vent In Spite of Spammers</a></li>
<li><a href="http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/" rel="bookmark" title="October 25, 2011">Cron to Run on First Tuesday of the Month</a></li>
<li><a href="http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/" rel="bookmark" title="March 7, 2011">How to Stop sidebar.exe Using Lots of Memory (Edited 14 May 2011)</a></li>
<li><a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/" rel="bookmark" title="July 23, 2010">Firefox Google Search Plugin for Australia (AU)</a></li>
<li><a href="http://sysadminspot.com/entertainment/http-status-code-drinking-game/" rel="bookmark" title="May 28, 2010">HTTP Status Code Drinking Game</a></li>
</ul>
<p><!-- Similar Posts took 74.166 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Code Block Vent In Spite of Spammers</title>
		<link>http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/</link>
		<comments>http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/#comments</comments>
		<pubDate>Fri, 07 May 2010 14:50:21 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[vent]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=192</guid>
		<description><![CDATA[Some spammers have been been filling in contact us forms on a lot of my websites of late. Us Linux server administrators have better things to do than process this <a href="http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>Some spammers have been been filling in contact us forms on a lot of my websites of late. Us Linux server administrators have better things to do than process this crap! In protest, I coded this <strong>completely pointless block of code to vent my frustration.</strong> I implemented it knowing fully it will never stop all spam, but if one more of those SEO spam bots submits to it, a little bit of me will cheer inside.</p>
<pre class="brush: php; title: ; notranslate">$bannedPhrases = array(&quot; seo &quot;, &quot;engine optimisation&quot;, &quot;engine optimization&quot;, &quot;increase traffic&quot;);
$bannedMessage = &quot;Hello spammer, please kindly f*** off and die painfully!&quot;;

foreach ($bannedPhrases as $value)
{
  if (strpos($name, $value) || strpos($email, $value) || strpos($message, $value))
  {
    include &quot;header.php&quot;;
    echo &quot;&lt;br /&gt;&lt;p align=center&gt;$bannedMessage&lt;/p&gt;&lt;br /&gt;&quot;;
    include &quot;footer.php&quot;;
    die(); // do not send message
  }
}</pre>
<p>Immature I know, but no harm done.</p>
<p>EDIT: After posting this I realised it was really pointless, more than I realised at first. So I set to finding a better solution and posted it a short time later. See my post called <a href="http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/" target="_blank">Generic PHP Function Code to Query &#8220;Stop Forum Spam&#8221; API</a>. Good luck fellow sysadmin!<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/programming/generic-php-function-code-to-query-stop-forum-spam-api/" rel="bookmark" title="May 8, 2010">Generic PHP Function Code to Query &#8220;Stop Forum Spam&#8221; API</a></li>
<li><a href="http://sysadminspot.com/entertainment/http-status-code-drinking-game/" rel="bookmark" title="May 28, 2010">HTTP Status Code Drinking Game</a></li>
<li><a href="http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/" rel="bookmark" title="June 14, 2010">Rant: Google In Trouble Over Collecting Unprotected WiFi Data</a></li>
<li><a href="http://sysadminspot.com/seo/improve-pr-from-parked-domains/" rel="bookmark" title="February 13, 2010">Improve Page Rank from Parked Domains</a></li>
<li><a href="http://sysadminspot.com/entertainment/im-told-the-customer-is-always-right/" rel="bookmark" title="September 28, 2009">I&#8217;m told the customer is always right?</a></li>
</ul>
<p><!-- Similar Posts took 26.120 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renaming files with –– at the start</title>
		<link>http://sysadminspot.com/linux/rename-files-with-double-hyphen-at-the-start/</link>
		<comments>http://sysadminspot.com/linux/rename-files-with-double-hyphen-at-the-start/#comments</comments>
		<pubDate>Mon, 03 May 2010 07:50:56 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=186</guid>
		<description><![CDATA[I&#8217;m making a post about this because I ran into this today and I couldn&#8217;t remember how to rename a file starting with &#8212; (two or double hyphens) in Linux <a href="http://sysadminspot.com/linux/rename-files-with-double-hyphen-at-the-start/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m making a post about this because I ran into this today and I couldn&#8217;t remember how to rename a file starting with &#8212; (two or double hyphens) in Linux (e.g. &#8211;index.html). The customer has obviously used a Windows FTP client to rename index.html to &#8211;index.html so it is out of their way, and now me, the server administrator or company sysadmin, has come along with my migration script to relocate it and it has fallen over, crashed, and burned!</p>
<p>When you try and rename it the following is given:</p>
<blockquote><p>$ mv ––index.html index.html.renamed<br />
mv: unrecognized option `––index.html&#8217;<br />
Try `mv ––help&#8217; for more information.</p></blockquote>
<p>I also tried delimiting it the normal way, but it wouldn&#8217;t work either:</p>
<blockquote><p>mv \–\–index.html index.html.renamed</p></blockquote>
<p>The correct way to rename it is:</p>
<blockquote><p>mv ./––index.html index.html.renamed</p></blockquote>
<p>Because –– has special meaning, you can&#8217;t delimit it with a simple backslash (\), you have to put a path reference in there to delimit it. So my path working directory (pwd) was /home/user/data/ where the file was located, so I could use ./ to reference the current pwd. The other option is to put the full path in:</p>
<blockquote><p>mv /home/user/data/––index.html index.html.renamed</p></blockquote>
<p>Hopefully this helps out some other Linux server administrator out there who&#8217;s mind it has slipped.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/linux/sftp-vs-ftp-vs-scp-advantages/" rel="bookmark" title="September 8, 2009">6 Reason to use SFTP over FTP or SCP</a></li>
<li><a href="http://sysadminspot.com/server-administration/apf-command-not-found/" rel="bookmark" title="February 27, 2010">apf: command not found</a></li>
<li><a href="http://sysadminspot.com/linux/locking-down-and-secure-ssh-access/" rel="bookmark" title="September 5, 2009">Locking down and securing SSH access to your server</a></li>
<li><a href="http://sysadminspot.com/linux/moving-from-no-control-panel-servers-to-a-cpanel-server/" rel="bookmark" title="February 13, 2010">Moving From No Control Panel Servers to a cPanel Server</a></li>
<li><a href="http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/" rel="bookmark" title="May 16, 2010">Modifying cPanel Mailbox Quota Errors &#8220;invalid maildirsize file&#8221;</a></li>
</ul>
<p><!-- Similar Posts took 22.281 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/linux/rename-files-with-double-hyphen-at-the-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows sidebar.exe Memory Leak</title>
		<link>http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/</link>
		<comments>http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 13:23:31 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Memory Leak]]></category>
		<category><![CDATA[Sidebar]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=179</guid>
		<description><![CDATA[As a sysadmin I like to know what is happening on my computer. Knowing what processes are running and how much memory they&#8217;re using seems to be a common pass <a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>As a sysadmin I like to know what is happening on my computer. Knowing what processes are running and how much memory they&#8217;re using seems to be a common pass time for a lot of people. While I run Linux servers and nothing else, my preferred workstation operating system is Windows. Currently I&#8217;m running Windows 7, but I&#8217;ve noticed this problem also exists in the Windows Vista version as well.</p>
<p>Quite some time back when using Vista, I noticed the sidebar.exe process generally consumes vast/large amounts of memory. My Googling concluded consumption varied depending on degrees of usage, what gadgets are being used and the system uptime. <a href="http://www.edbott.com/weblog/?p=1616" target="_blank">This blogger recorded 1.3Gb of RAM hogged by the sidebar.exe process</a>. I just wanted to make a blog post though and say, if you&#8217;re reading this&#8230; you&#8217;re not alone in your confusion brother.</p>
<p><a href="http://sysadminspot.com/wp-content/resources/2010/04/windows-sidebar-memory.png"><img class="alignleft size-full wp-image-180" style="margin: 15px; border: 1px solid black;" title="Windows Sidebar Memory Usage" src="http://sysadminspot.com/wp-content/resources/2010/04/windows-sidebar-memory.png" alt="" width="398" height="39" /></a>What is this all about? If looking in task manager and running the Windows Sidebar application, you might notice sidebar.exe using lots of memory. There&#8217;s a lot of confusion over why it uses so much memory and what the cause is. When a process eats into available memory and doesn&#8217;t release unused memory to the point of exhaustion &#8211; it is called a <a href="http://en.wikipedia.org/wiki/Memory_leak" target="_blank">memory leak (more at Wikipedia)</a>.</p>
<p>Most people will tell you, just &#8220;restart your computer&#8221;, &#8220;kill the process&#8221;, &#8220;just don&#8217;t use it&#8221; or &#8220;delete the gadget&#8221; and it will fix the problem. Well&#8230; I have to stop right here and have a rant&#8230; Any person with a lick of common sense will tell you it doesn&#8217;t fix the damn problem!! It&#8217;s infuriating to read posts by n00bs who honestly have no idea what they&#8217;re on about, suggesting these dumb ideas. There is a problem! Covering your eyes and saying &#8220;I can&#8217;t see it&#8221; doesn&#8217;t fix it!</p>
<p>Some people (including myself) actually value the easy accessibility of information the side bar can deliver. There are lots of great gadgets out there which will give you cool key information about your system, operating environment and access social networking feeds like Twitter, etc.</p>
<p>So what is the deal with this memory over consumption thing anyway? Well I found this excellent blog post by Mark Russinovich, <a href="http://blogs.technet.com/markrussinovich/archive/2007/10/15/2178879.aspx" target="_blank">&#8220;The Case of the Frozen Clock Gadget&#8221;</a> which takes a detailed look into the problem. He concludes the problem is &#8220;down to a leaky Sidebar API&#8221; &#8211; which doesn&#8217;t seem surprising considering Microsoft.</p>
<p>Being Microsoft, and knowing this problem has prevailed through both Windows Vista and Windows 7 now &#8211; I&#8217;m getting the sense we&#8217;ll be lucky to ever see this sidebar memory leak problem resolved. To think, just a minor tweak or rewrite of a function could potentially spark spontaneous celebration and world peace should it even appear on Microsoft&#8217;s radar. A little bit of me dies each time I think about it &#8211; knowing if Windows was open source, we&#8217;d all have this problem nailed by now.</p>
<p>So what can you do to fix this problem? Nothing it seems. While others have suggested you can simply not use Windows Sidebar, restarting the process (killing and starting again), or restarting the computer will temporarily recover your lost memory, it isn&#8217;t a long term fix. Really though, considering the amount of RAM we&#8217;re running on these days it doesn&#8217;t make that much difference personally to my usage. Even if my overall usage does get extreme, the operating system should page/swap the unused memory from RAM to disk. The only downside to that is temporary degraded performance during swapping/paging.</p>
<p>If we&#8217;re really lucky, we might see an update in the distant future patching the sidebar API&#8230; and then again, the US might catch Osama Bin Laden &#8211; it was a pleasant thought while it lasted.</p>
<p><strong>UPDATE (7 March 2011):</strong> Thanks TED for your suggestion. I&#8217;ve implemented it and confirmed it works on Windows 7 &#8211; see the blog post <a href="http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/" target="_blank">How to Stop sidebar.exe Using Lots of Memory</a>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/windows/what-is-sidebar-exe/" rel="bookmark" title="March 7, 2011">What is sidebar.exe</a></li>
<li><a href="http://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/" rel="bookmark" title="March 7, 2011">How to Stop sidebar.exe Using Lots of Memory (Edited 14 May 2011)</a></li>
<li><a href="http://sysadminspot.com/phones/delete-pc-sync-calendar-on-htc-desire/" rel="bookmark" title="March 6, 2011">Delete PC Sync Calendar on HTC Desire</a></li>
<li><a href="http://sysadminspot.com/entertainment/php-code-block-vent-in-spite-of-spammers/" rel="bookmark" title="May 8, 2010">PHP Code Block Vent In Spite of Spammers</a></li>
<li><a href="http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/" rel="bookmark" title="May 16, 2010">Modifying cPanel Mailbox Quota Errors &#8220;invalid maildirsize file&#8221;</a></li>
</ul>
<p><!-- Similar Posts took 58.599 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Sysadmin Comics</title>
		<link>http://sysadminspot.com/entertainment/sysadmin-comics/</link>
		<comments>http://sysadminspot.com/entertainment/sysadmin-comics/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:33:33 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=170</guid>
		<description><![CDATA[I was in need of a chuckle and stumbled across these excellent comics. I&#8217;ve easily wasted a lot of hours on  xkcd.com. Comics credited to them &#8211; great work guys. <a href="http://sysadminspot.com/entertainment/sysadmin-comics/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I was in need of a chuckle and stumbled across these excellent comics. I&#8217;ve easily wasted a lot of hours on  <a href="http://xkcd.com" target="_blank">xkcd.com</a>. Comics credited to them &#8211; great work guys.</p>
<p><a href="http://sysadminspot.com/wp-content/resources/2010/03/sandwich.png"><img class="aligncenter size-full wp-image-171" title="Sandwich" src="http://sysadminspot.com/wp-content/resources/2010/03/sandwich.png" alt="" width="360" height="299" /></a></p>
<p style="text-align: center;">
<a href="http://sysadminspot.com/wp-content/resources/2010/03/devotion_to_duty.png"><img class="aligncenter size-full wp-image-172" title="Devotion to Duty" src="http://sysadminspot.com/wp-content/resources/2010/03/devotion_to_duty.png" alt="" width="574" height="222" /></a></p>
<p style="text-align: center;"><a href="http://sysadminspot.com/wp-content/resources/2010/03/sandwich.png"></a><a href="http://sysadminspot.com/wp-content/resources/2010/03/devotion_to_duty.png"><br />
</a></p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/linux/cron-to-run-on-first-specified-day-of-the-month/" rel="bookmark" title="October 25, 2011">Cron to Run on First Tuesday of the Month</a></li>
<li><a href="http://sysadminspot.com/security/linux-software-firewalls/" rel="bookmark" title="February 13, 2010">Linux Software Firewalls</a></li>
<li><a href="http://sysadminspot.com/entertainment/im-told-the-customer-is-always-right/" rel="bookmark" title="September 28, 2009">I&#8217;m told the customer is always right?</a></li>
<li><a href="http://sysadminspot.com/windows/windows-sidebar-exe-memory-leak/" rel="bookmark" title="April 24, 2010">Windows sidebar.exe Memory Leak</a></li>
<li><a href="http://sysadminspot.com/linux/how-to-fix-cant-connect-to-local-mysql-server-through-socket-varlibmysqlmysql-sock-13/" rel="bookmark" title="September 6, 2009">Can&#8217;t connect to local MySQL server through socket &#8216;/var/lib/mysql/mysql.sock&#8217; (13)</a></li>
</ul>
<p><!-- Similar Posts took 10.086 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/entertainment/sysadmin-comics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apf: command not found</title>
		<link>http://sysadminspot.com/server-administration/apf-command-not-found/</link>
		<comments>http://sysadminspot.com/server-administration/apf-command-not-found/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:43:29 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=166</guid>
		<description><![CDATA[Okay, if you&#8217;re getting this error, you&#8217;re getting it for one of two reasons. Advanced Policy Firewall (APF) Is Not Installed Type in the following command: $ /etc/apf/apf One of <a href="http://sysadminspot.com/server-administration/apf-command-not-found/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>Okay, if you&#8217;re getting this error, you&#8217;re getting it for one of two  reasons.</p>
<p><strong>Advanced Policy Firewall (APF) Is Not Installed</strong></p>
<p>Type in the following command:</p>
<blockquote><p>$ /etc/apf/apf</p></blockquote>
<p>One of two things will happen..</p>
<p>You&#8217;ll this error message:</p>
<blockquote><p>/etc/apf/apf: No such file or directory</p></blockquote>
<p>OR</p>
<p>You&#8217;ll get something like this:</p>
<blockquote><p>$ /etc/apf/apf<br />
APF version 9.6 &lt;apf@r-fx.org&gt;<br />
&#8230;</p></blockquote>
<p>If you get the first expected result, APF isn&#8217;t installed. Go to <a href="http://www.rfxn.com/projects/advanced-policy-firewall/" target="_blank">Advanced  Policy Firewall</a> project page, download it  and install.</p>
<p><strong>Bash &#8220;PATH</strong><strong>&#8221; Variable</strong></p>
<p>If when performing the above test got something like this:</p>
<blockquote><p>$ /etc/apf/apf<br />
APF version 9.6 &lt;apf@r-fx.org&gt;<br />
&#8230;</p></blockquote>
<p>It is likely your environmental &#8220;PATH&#8221;  variable doesn&#8217;t cover /usr/local/sbin/ or similar. When APF is  installed, it symlinks /usr/local/sbin/apf to /etc/apf/apf. To check, try the following command and see if /usr/local/sbin/ is included:</p>
<blockquote><p>$ echo $PATH<br />
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/root/bin</p></blockquote>
<p>You can  either type your commands like &#8220;/etc/apf/apf -d &lt;source&gt;&#8221; or you  can fix the symbolic link (probably the better idea because other links  may be broken).</p>
<p>To fix the PATH variable to include the new bin, modify your bash profile or server-wide (either ~/.bash_profile or /etc/bashrc respectively &#8211; the first is probably safer):</p>
<blockquote><p>vi ~/.bash_profile</p></blockquote>
<p>Again, I use vi/vim, use nano or your other preferred editor if that&#8217;s what you prefer.</p>
<p>Look for a variable like this:</p>
<blockquote><p>PATH=$PATH:$HOME/bin:/usr/bin/systools</p></blockquote>
<p>To the end, add something like:</p>
<blockquote><p>:/usr/local/sbin</p></blockquote>
<p>Resulting in it now looking like:</p>
<blockquote><p>PATH=$PATH:$HOME/bin:/usr/bin/systools:/usr/local/sbin</p></blockquote>
<p>Then I recommend you just logout and then login again. You stuff around with export, but easier to just logout/in again.</p>
<p><strong>Didn&#8217;t Work?</strong></p>
<p>There are a number of other possible solutions depending on the problem you&#8217;re experiencing. I&#8217;ve only covered two. Leave a comment with some output of your tests and we&#8217;ll take a look.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/server-administration/allow-deny-and-remove-with-apf/" rel="bookmark" title="February 27, 2010">Allow, Deny and Remove with Advanced Policy Firewall (APF)</a></li>
<li><a href="http://sysadminspot.com/linux/synchronize-cpanel-dns-cluster-from-command-line/" rel="bookmark" title="September 26, 2009">Synchronise cPanel DNS Cluster from Command Line</a></li>
<li><a href="http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/" rel="bookmark" title="February 22, 2010">Emails Not Sending &#8211; defer (111): Connection refused (Exim) and SMTP Tweak</a></li>
<li><a href="http://sysadminspot.com/security/linux-software-firewalls/" rel="bookmark" title="February 13, 2010">Linux Software Firewalls</a></li>
<li><a href="http://sysadminspot.com/linux/find-what-ip-address-cpanel-site-is-using-via-ssh-bash/" rel="bookmark" title="February 13, 2010">Find What IP Address cPanel Site Is Using via Command Line</a></li>
</ul>
<p><!-- Similar Posts took 28.755 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/server-administration/apf-command-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow, Deny and Remove with Advanced Policy Firewall (APF)</title>
		<link>http://sysadminspot.com/server-administration/allow-deny-and-remove-with-apf/</link>
		<comments>http://sysadminspot.com/server-administration/allow-deny-and-remove-with-apf/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:01:46 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=161</guid>
		<description><![CDATA[I noticed a few requests for this, so I&#8217;m going to make a quick post about it. There are a few ways of manipulating APF (Advanced Policy Firewall by R-fx <a href="http://sysadminspot.com/server-administration/allow-deny-and-remove-with-apf/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I noticed a few requests for this, so I&#8217;m going to make a quick post about it. There are a few ways of manipulating APF (<a href="http://www.rfxn.com/projects/advanced-policy-firewall/" target="_blank">Advanced Policy Firewall</a> by <a href="http://www.rfxn.com/projects/" target="_blank">R-fx Networks</a>) to allow and deny who you want.</p>
<p>If you&#8217;re looking for information on how to configure APF, this isn&#8217;t the post for you. Check out <a href="http://sysadminspot.com/security/linux-software-firewalls/" target="_blank">Linux Software Firewalls</a> which covers some of the key configuration settings you&#8217;ll need to consider when setting it up. Alternatively, check out APF documentation &#8211; it&#8217;s rather good. If you&#8217;re still stuck, leave a comment.</p>
<p><strong>Direct Command Line</strong></p>
<p>Using the apf command via SSH has to be my preferred method of adjusting the firewall. To deny a source you can simply type:</p>
<blockquote><p>apf -d &lt;source&gt; [comment]<br />
apf -d 123.45.67.89 Keepings dosing the server</p></blockquote>
<p>If you have a default deny policy and only want to allow on an individual basis then you can use a command like this:</p>
<blockquote><p>apf -a &lt;source&gt; [comment]<br />
apf -a 123.45.67.89 Melbourne office allow complete access</p></blockquote>
<p>Another handy parameter I didn&#8217;t learn about until later (much regretted) is the -u one. It will remove the IP source from either allow or denied if it exists. Saves you modifying the rule files directly and restarting the firewall. So to remove a source use:</p>
<blockquote><p>apf -u &lt;source&gt;<br />
apf -u 123.45.67.89</p></blockquote>
<p>A catch with remove though, if you have denied 123.45.0.0/16 and you want to remove 123.45.1.56 from the deny rules, it won&#8217;t work like this. You can&#8217;t apf -u 123.45.1.56 and expect it to work &#8211; the tool searches for the parameter you&#8217;ve provided and searches any matching rules. These obviously won&#8217;t match. If you want to deny 123.45.0.0/16 but suddenly want to allow 123.45.1.56, I&#8217;d try apf -d 123.45.0.0/16 and then apf -a 123.45.1.56. I think the results will vary depending on your default policy (not 100% sure on that though).</p>
<p>After using these commands you do not need to restart or reload your firewall. They are invoked straight away as a part of the command. Using apf -r will be pointless in this case.</p>
<p>Looking for example of &lt;source&gt;? I&#8217;ve explained it more below.</p>
<p><strong>Direct Rule File Modification</strong></p>
<p>So firstly, your base directory is /etc/apf/ &#8211; you&#8217;ll find all the configuration files and rules in there.</p>
<p>There are the two main rule files you need to worry about. Don&#8217;t worry about the others:</p>
<blockquote><p>$ ls /etc/apf/{allow,deny}*.rules<br />
/etc/apf/allow_hosts.rules  /etc/apf/deny_hosts.rules</p></blockquote>
<p>If you open either of these files, there should be rather in-depth instructions contained within:</p>
<blockquote><p># Format of this file is line-seperated addresses, IP masking is supported.<br />
# Example:<br />
# 192.168.2.1<br />
# 192.168.5.0/24<br />
#<br />
# advanced usage<br />
#<br />
# The trust rules can be made in advanced format with 4 options<br />
# (proto:flow:port:ip);<br />
# 1) protocol: [packet protocol tcp/udp]<br />
# 2) flow in/out: [packet direction, inbound or outbound]<br />
# 3) s/d=port: [packet source or destination port]<br />
# 4) s/d=ip(/xx) [packet source or destination address, masking supported]<br />
#<br />
# Syntax:<br />
# proto:flow:[s/d]=port:[s/d]=ip(/mask)<br />
# s &#8211; source , d &#8211; destination , flow &#8211; packet flow in/out<br />
#<br />
# Examples:<br />
# inbound to destination port 22 from 192.168.2.1<br />
# tcp:in:d=22:s=192.168.2.1<br />
#<br />
# outbound to destination port 23 to destination host 192.168.2.1<br />
# out:d=23:d=192.168.2.1<br />
#<br />
# inbound to destination port 3306 from 192.168.5.0/24<br />
# d=3306:s=192.168.5.0/24</p></blockquote>
<p>The developer has done very well explaining the possible syntax and formats you can use. The only thing I can add to it is keep it simple where possible. If you just want to completely drop, firewall, deny or block an IP address from interacting with your server, just add the IP on a new line in the /etc/apf/deny_hosts.rules file (see post changes section below).</p>
<p>If you want to allow your Perth based office to access SSH on your server which is closed by default, you could add something like this on a new line to /etc/apf/allow_hosts.rules (also see post changes section below):</p>
<blockquote><p>d=22:s=123.45.1.56 # Perth Office SSH</p></blockquote>
<p>Note that the # is a comment, and everything after it will have no bearing on the rule you&#8217;ve added.</p>
<p><strong>Post Changes to Rule/Config Files</strong></p>
<p>After you make a change to your rule or configuration files, you must invoke them by loading them into your firewall. You do this by restarting your firewall:</p>
<blockquote><p>apf -r</p></blockquote>
<p>When you restart APF, all rules will be flushed or removed and then re-added effectively implementing the new rule changes you&#8217;ve added.</p>
<p><strong>What can I block or allow? What types of Source can I use?</strong></p>
<p>In the above examples I&#8217;ve used &lt;source&gt;. Source can equal a single IP address, a IP block in Classless Inter-Domain Routing (CIDR) notation or a fully qualified domain name (FQDN). Examples of each:</p>
<blockquote><p>Single IP &#8211; 123.45.67.89</p>
<p>IP Block (CIDR) &#8211; 123.45.0.0/16 (which equates to 123.45.0.0 to 123.45.255.255)</p>
<p>FQDN &#8211; nyoffice.domain.com or 13371.dnshost.net</p></blockquote>
<p><strong>How do I Allow/Block an IP Range?</strong></p>
<p>I&#8217;ve also seen a heap of requests specifically about allowing/blocking a range of IP addresses in APF. You can&#8217;t do this as &#8220;block A to B&#8221; &#8211; it needs to be in the form of CIDR notation. I use this <a href="http://www.ipaddresslocation.org/subnet-mask-calculator.php" target="_blank">IP Address Range Calculator to CIDR</a> tool to calculate the CIDR notation for me. I&#8217;m lazy and its reasonably accurate.</p>
<p>If you&#8217;re looking to block 123.45.67.89 to 123.45.67.91, I&#8217;d personally just add them manually. IP&#8217;s fit into CIDR specially and you won&#8217;t cleanly be able to block 123.45.67.89 to 123.45.67.91 without blocking other IP addresses surrounding them. Don&#8217;t be surprised if you&#8217;re given multiple CIDR blocks in the results either &#8211; it means your supplied IP range crosses multiple blocks.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/server-administration/apf-command-not-found/" rel="bookmark" title="February 27, 2010">apf: command not found</a></li>
<li><a href="http://sysadminspot.com/linux/locking-down-and-secure-ssh-access/" rel="bookmark" title="September 5, 2009">Locking down and securing SSH access to your server</a></li>
<li><a href="http://sysadminspot.com/security/linux-software-firewalls/" rel="bookmark" title="February 13, 2010">Linux Software Firewalls</a></li>
<li><a href="http://sysadminspot.com/linux/sftp-vs-ftp-vs-scp-advantages/" rel="bookmark" title="September 8, 2009">6 Reason to use SFTP over FTP or SCP</a></li>
<li><a href="http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/" rel="bookmark" title="February 22, 2010">Emails Not Sending &#8211; defer (111): Connection refused (Exim) and SMTP Tweak</a></li>
</ul>
<p><!-- Similar Posts took 62.302 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/server-administration/allow-deny-and-remove-with-apf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emails Not Sending &#8211; defer (111): Connection refused (Exim) and SMTP Tweak</title>
		<link>http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/</link>
		<comments>http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 04:08:47 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=152</guid>
		<description><![CDATA[I got a phone call today from a client who&#8217;s accounts we&#8217;d transferred between two cPanel servers on Friday. Today, Monday about 12pm I get a call saying he&#8217;s receiving <a href="http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>I got a phone call today from a client who&#8217;s accounts we&#8217;d transferred between two cPanel servers on Friday. Today, Monday about 12pm I get a call saying he&#8217;s receiving emails but can&#8217;t send. I&#8217;m told that there aren&#8217;t any error messages or bounced replies, but the receivers haven&#8217;t got the emails. So I took his details and said I&#8217;d call back.</p>
<p>Usually I see this happen if there is a problem with DNS, particularly with the hostname. The server&#8217;s hostname should always point to the primary IP address of the server. There should also be a reverse DNS (rDNS) or pointer setup on that IP address pointing back to the hostname. For example:</p>
<blockquote><p>fileserver.domain.com.au -&gt; 123.45.67.89<br />
123.45.67.89 -&gt; fileserver.domain.com.a</p></blockquote>
<p>If you don&#8217;t do this, you&#8217;re asking for trouble. Most providers won&#8217;t accept email from you if you don&#8217;t setup your DNS properly. For example, here is a message from AOL:</p>
<blockquote><p>$ telnet mailin-04.mx.aol.com 25<br />
Trying 64.12.90.66&#8230;<br />
Connected to mailin-04.mx.aol.com.<br />
Escape character is &#8216;^]&#8217;.<br />
&#8230;<br />
220-Effective immediately:<br />
220-AOL may no longer accept connections from IP addresses<br />
220 which no do not have reverse-DNS (PTR records) assigned.<br />
quit<br />
221 2.0.0 Bye<br />
Connection closed by foreign host.</p></blockquote>
<p>In the past I&#8217;ve seen the server hostname accidently changed causing a mismatch, and in turn this problem.</p>
<p>However the actual cause of my problem today was caused by playing with cPanel settings I was unclear of. What does SMTP Tweak do exactly? It&#8217;s very poorly explained&#8230; well no, it&#8217;s not explained at all in Web Hosting Manager (WHM), but I extracted this from the cPanel docs explaining SMTP Tweak:</p>
<blockquote><p>SMTP Tweak</p>
<p>You may want to prevent users from bypassing your mail server to send mail. This is common practice for spammers.  This feature allows you to configure your server so that the mail transport agent (MTA), Mailman mailing list software, and root user are the only accounts able to connect to remote SMTP servers.</p>
<p><em>Source: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/TweakMail</em></p></blockquote>
<p>If your clients are not setup to handle sending mail as an authenticated user, suddenly enabling SMTP Tweak in WHM will cause&#8230;</p>
<blockquote><p>mailin-01.mx.aol.com [205.188.146.193] Connection refused<br />
cluster9.us.messagelabs.com [216.82.242.19] Connection refused<br />
cluster9a.us.messagelabs.com [95.131.108.66] Connection refused<br />
xxx@xxx.com.au &lt;xxx@xxx.com.au&gt; R=lookuphost T=remote_smtp defer (111): Connection refused<br />
mailipao.vtcif.telstra.com.au [202.12.144.27] Connection refused<br />
xxx@telstra.com &lt;xxx@telstra.com&gt; R=lookuphost T=remote_smtp defer (111): Connection refused<br />
gmail-smtp-in.l.google.com [209.85.221.11] Connection refused<br />
alt1.gmail-smtp-in.l.google.com [216.239.59.27] Connection refused<br />
alt2.gmail-smtp-in.l.google.com [74.125.79.114] Connection refused<br />
alt3.gmail-smtp-in.l.google.com [72.14.221.27] Connection refused<br />
alt4.gmail-smtp-in.l.google.com [209.85.216.62] Connection refused</p></blockquote>
<p>Uhoh. cPanel&#8217;s SMTP Tweak does this by adding these rules to iptables:</p>
<blockquote><p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
ACCEPT     tcp  &#8211;  anywhere             localhost           tcp dpt:smtp<br />
REJECT     tcp  &#8211;  anywhere             anywhere            tcp dpt:smtp reject-with icmp-port-unreachable</p></blockquote>
<p>So in the end, it had nothing to do with his migration. It was a simple mis-click of SMTP Tweak. At least we know for certain what it does! It effectively firewalls your outbound connection <em>from</em> the server unless you&#8217;re an authenticated user, making it appear as if the destination server is blocking you. Unless you look carefully it has the potential to be confusing.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">mailin-01.mx.aol.com [205.188.146.193] Connection refused<br />
cluster9.us.messagelabs.com [216.82.242.19] Connection refused<br />
cluster9a.us.messagelabs.com [95.131.108.66] Connection refused<br />
xxx@xxx.com.au &lt;xxx@xxx.com.au&gt; R=lookuphost T=remote_smtp defer (111): Connection refused<br />
mailipao.vtcif.telstra.com.au [202.12.144.27] Connection refused<br />
xxx@telstra.com &lt;xxx@telstra.com&gt; R=lookuphost T=remote_smtp defer (111): Connection refused<br />
gmail-smtp-in.l.google.com [209.85.221.11] Connection refused<br />
alt1.gmail-smtp-in.l.google.com [216.239.59.27] Connection refused<br />
alt2.gmail-smtp-in.l.google.com [74.125.79.114] Connection refused<br />
alt3.gmail-smtp-in.l.google.com [72.14.221.27] Connection refused<br />
alt4.gmail-smtp-in.l.google.com [209.85.216.62] Connection refused</div>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/linux/synchronize-cpanel-dns-cluster-from-command-line/" rel="bookmark" title="September 26, 2009">Synchronise cPanel DNS Cluster from Command Line</a></li>
<li><a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/" rel="bookmark" title="July 23, 2010">Firefox Google Search Plugin for Australia (AU)</a></li>
<li><a href="http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/" rel="bookmark" title="May 16, 2010">Modifying cPanel Mailbox Quota Errors &#8220;invalid maildirsize file&#8221;</a></li>
<li><a href="http://sysadminspot.com/linux/moving-from-no-control-panel-servers-to-a-cpanel-server/" rel="bookmark" title="February 13, 2010">Moving From No Control Panel Servers to a cPanel Server</a></li>
<li><a href="http://sysadminspot.com/linux/advantages-cpanel-clustered-dns-and-setup/" rel="bookmark" title="September 7, 2009">Understanding cPanel clustered DNS and Setup</a></li>
</ul>
<p><!-- Similar Posts took 51.088 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Software Firewalls</title>
		<link>http://sysadminspot.com/security/linux-software-firewalls/</link>
		<comments>http://sysadminspot.com/security/linux-software-firewalls/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 05:36:31 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=149</guid>
		<description><![CDATA[There is one main firewall script I use everywhere. It is extremely simple to use and installs quickly. Advanced Policy Firewall (APF) Simple Settings to Configuring APF My preferred text <a href="http://sysadminspot.com/security/linux-software-firewalls/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>There is one main firewall script I use everywhere. It is extremely simple to use and installs quickly.</p>
<p><a href="http://www.rfxn.com/projects/advanced-policy-firewall/" target="_blank">Advanced Policy Firewall (APF)</a></p>
<p><strong>Simple Settings to Configuring APF</strong></p>
<p>My preferred text editor is vim, use nano or whatever else you prefer. Substitute my preference with your own with the below commands.</p>
<p>vi /etc/apf/conf.apf</p>
<p>This is the config file. As a sysadmin, I hate wasting time typing things out and therefore love being able to type &#8220;vi /etc/apf/conf&#8221; and then press Tab to finish the command for me. Well named guys.</p>
<p>DEVEL_MODE</p>
<p>Be familiar with DEVEL_MODE, you need to have it turned off for production operations. With it turned on, your firewall rules will flush to to none every 5 minutes. It&#8217;s designed for you to test your settings work, but if you lock yourself out you&#8217;ll get access in 5 minutes time again.</p>
<p>IFACE_IN / IFACE_OUT</p>
<p>If you&#8217;re using a virtual machine, you may have something other than eth0. Be sure to change it to the untrusted or public network interface.</p>
<p>SET_MONOKERN</p>
<p>If you install APF on a virtual machine, VPS, VE (virtual environment), or whatever you want to call it, and you don&#8217;t have access to the kernel you might have to change this to 1 for it to work.</p>
<p>SYSCTL_SYNCOOKIES</p>
<p>This will turn on syn cookies for you. Can help filter out SYN denial of service attacks by flagging packets.</p>
<p>IG_TCP_CPORTS</p>
<p>The permitted inbound TCP ports. Very important. Basically put in all the port numbers you want to be publicly open. For example, HTTP (80) and DNS (53). If you want to allow access to certain IP addresses only, but not the world, don&#8217;t include them here.</p>
<p>IG_UDP_CPORTS</p>
<p>The permitted inbound UDP ports. I see FTP (21) and DNS (52) in these a lot, I don&#8217;t think it is necessary though.</p>
<p>IG_ICMP_TYPES</p>
<p>Internet Control Message Protocol (ICMP) or commonly called ping (basically the ping command uses this protocol to test connections). Each type of ICMP state corresponds with a number, which you can permit or block. <a href="http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol" target="_blank">Read about the states and results on Wikipedia</a>, I&#8217;m not going into them. The idea being you  can block ping on your server, if a hacker pings you to see if your host is online it can response with request timed out, and they might move on.</p>
<p>EGF</p>
<p>&#8220;Outbound (egress) filtering&#8221;. Set to 0 or disabled by default. It allows you to filter outbound connections to your server. This is the master on/off switch for the feature.</p>
<p>EG_TCP_CPORTS</p>
<p>Outbound TCP Ports to allow.</p>
<p>EG_UDP_CPORTS</p>
<p>Outbound UDP ports to allow.</p>
<p>EG_ICMP_TYPES</p>
<p>Outbound ICMP or ping types to allow. Again, <a href="http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol" target="_blank">read about the states and results on Wikipedia</a> to save me going into it.</p>
<p><strong>Other Firewalls &#8211; CSF (ConfigServer Security &amp;  Firewall)<br />
</strong></p>
<p>If you use a cPanel server, CSF (ConfigServer Security &amp;  Firewall) is very popular and integrates with Web Hosting Manager (WHM). I&#8217;m not going to talk about it here, but check out the feature lists and download it at the developers website, <a href="http://www.configserver.com/cp/csf.html" target="_blank">ConfigServer</a>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/linux/locking-down-and-secure-ssh-access/" rel="bookmark" title="September 5, 2009">Locking down and securing SSH access to your server</a></li>
<li><a href="http://sysadminspot.com/linux/sftp-vs-ftp-vs-scp-advantages/" rel="bookmark" title="September 8, 2009">6 Reason to use SFTP over FTP or SCP</a></li>
<li><a href="http://sysadminspot.com/linux/linux-conference-2010-wellington-new-zealand/" rel="bookmark" title="January 14, 2010">Linux Conference 2010 &#8211; Wellington, New Zealand</a></li>
<li><a href="http://sysadminspot.com/server-administration/allow-deny-and-remove-with-apf/" rel="bookmark" title="February 27, 2010">Allow, Deny and Remove with Advanced Policy Firewall (APF)</a></li>
<li><a href="http://sysadminspot.com/security/rant-google-in-trouble-over-collecting-unprotected-wifi-data/" rel="bookmark" title="June 14, 2010">Rant: Google In Trouble Over Collecting Unprotected WiFi Data</a></li>
</ul>
<p><!-- Similar Posts took 46.231 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/security/linux-software-firewalls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improve Page Rank from Parked Domains</title>
		<link>http://sysadminspot.com/seo/improve-pr-from-parked-domains/</link>
		<comments>http://sysadminspot.com/seo/improve-pr-from-parked-domains/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 04:44:40 +0000</pubDate>
		<dc:creator>Brendan</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://sysadminspot.com/?p=146</guid>
		<description><![CDATA[One of the biggest things I see these days is customers buying ten or so domain names and parking them on top of their primary domain name. Lets say its <a href="http://sysadminspot.com/seo/improve-pr-from-parked-domains/">Read the rest of the entry...</a>]]></description>
			<content:encoded><![CDATA[<p>One of the biggest things I see these days is customers buying ten or so domain names and parking them on top of their primary domain name.</p>
<p>Lets say its toymanufactco.com, people go out and buy toysmanufactco.com, toymanufact.com, makingtoys.com, toysmaking.com, greattoys.com, yirginiatoyco.com, etc etc. They buy all these domains I assume because they&#8217;re hoping that someone will accidently type one in? Or they want to &#8220;secure&#8221; or &#8220;protect&#8221; their brand. Most of the time I think they&#8217;re doing the exact reverse.</p>
<p>Imagine is ebay.com started expanding their domains to include dbay.com, fbay.com, onlineauctions.com, auctionsonline.com, onlineauctionbids.com, etc etc etc etc! They&#8217;re breaking away from their main stream brand. They&#8217;re splitting their marketing budget from one primary domain, central and focal domain name to several others. Why? For what possible reason would this help ebay? No, ebay is ebay.com and that&#8217;s it!</p>
<p>If you&#8217;re a small business and you&#8217;re doing this, you&#8217;re wasting money. Worst yet if you&#8217;ve been doing this for years now, if you stop you&#8217;re going to lose potential traffic. That means you&#8217;re going to have to continually spent money to maintain it. Your brand image could be split and you can confuse visitors by having the same content on separate domains. It could lead your customers to believe this is normal, and they could walk into phishing websites and be scammed? It&#8217;s a dangerous precedent!</p>
<p>So while the idea isn&#8217;t really&#8230; a good one anymore. It use to be, 10 years ago! There is another problem yet to be mention&#8230;</p>
<p><strong>Search Engine Optimisation / Ranking</strong></p>
<p>This problem causes problems with your page rank or PR. Your content can be duplicated on multiple domains, because it&#8217;s a copy, Google might actually penalise you by giving you a lower PR! It thinks you&#8217;ve copied content of that other guy.. when it&#8217;s really you!</p>
<p>You can also sometimes increase your PR by consolidating traffic on your primary domain name. All your visitors are linking to toysmanufactco.com/tips-for-buying-toys and greattoys.com/tips-for-buying-toys and makingtoys.com/tips-for-buying-toys: and for each link you&#8217;ll gain PR a little. But if you had all the links going to the same domain your PR for that one domain will be higher. They&#8217;re already linking to you, they&#8217;re linking to the same content, they&#8217;re just linking to a separate domain which Google could mistake as you stealing content from.</p>
<p><strong>Solution</strong></p>
<p>Now this isn&#8217;t a full fix. You still shouldn&#8217;t be doing what you&#8217;re doing, but it will help. If you have six domain names parked on top of your primary, you can redirect them with a 301 redirect to your primary domain. A 301 redirect is a permanent redirect. It is an status code given by the web server that tells the browser or search engine that the page content as moved. Google sees a 301 redirect and will follow it! Because it is a permanent redirect, it will remove your existing indexing for the old domains, apply the owed PR to the primary domain you&#8217;re redirecting to, and reindex! Consolidating your PR.</p>
<p>I for example have a business website that in a .com. Five years ago a .com.au was very expensive and I wasn&#8217;t going to waste the money on it. They&#8217;re now more affordable and I want to tell my customers that my business is Australian when they go to my website &#8211; I want a .com.au!! But I have an existing website at .com. I want to move everything from my .com to my .com.au &#8211; I&#8217;m going to use a 301 permanent redirect.</p>
<p>The method I would do this is mod_rewrite thrown it into my .htaccess file. Your Apache webserver needs mod_rewrite included. Here&#8217;s some sample code:</p>
<blockquote><p>ReWriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www.mybusiness.com$<br />
RewriteRule ^(.*)$ http://www.mybusiness.com.au/$1 [R=301,L]</p></blockquote>
<p><strong>What does this mean!? What does this do!!?</strong></p>
<p>Right, line by line for you&#8230;</p>
<blockquote><p>ReWriteEngine On</p></blockquote>
<p>All this line does is turn on URL rewriting. That&#8217;s all!</p>
<blockquote><p>RewriteCond %{HTTP_HOST} !^www.mybusiness.com$</p></blockquote>
<p>This is a condition, it will rewrite based on this condition and any others I specify. HTTP_HOST is basically the domain name part of the URL. If you want to see an example, make a PHP file and add something like &lt;?php echo $_SERVER[HTTP_HOST]; ?&gt; &#8211; You&#8217;ll see the output. That&#8217;s what you&#8217;re including.</p>
<p>The logic being:</p>
<p>If <strong>HTTP_HOST</strong> (the domain name) is <strong>NOT (!) </strong> from the <strong>start (^)</strong>www.mybusiness.com to the <strong>finish ($)</strong> &#8230;.. do the rewrite rule.</p>
<p>Leave out the ^ and $ if you can&#8217;t get them working. You&#8217;ll get an internal server error if you make a mistake.</p>
<blockquote><p>RewriteRule ^(.*)$ http://www.mybusiness.com.au/$1 [R=301,L]</p></blockquote>
<p>This is it, this is what does the redirect. It is effectively saying replace xx, with yy. More explained logic:</p>
<p>Based on the above conditions, if any&#8230;<br />
<strong>Rewrite ^(.*)$</strong> (means everything) to <strong>http://www.mybusiness.com.au/</strong> and append <strong>$1</strong> (the remainder of the URI to the end) using a <strong>301 redirect</strong> and this is the <strong>Last</strong> (L meaning it won&#8217;t pay any attention to following rules) rule.</p>
<p>Give it a go. Us sysadmins shake our heads when we see this, and we typically patch it with this.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://sysadminspot.com/programming/firefox-google-search-plugin-for-australia-au/" rel="bookmark" title="July 23, 2010">Firefox Google Search Plugin for Australia (AU)</a></li>
<li><a href="http://sysadminspot.com/linux/find-what-ip-address-cpanel-site-is-using-via-ssh-bash/" rel="bookmark" title="February 13, 2010">Find What IP Address cPanel Site Is Using via Command Line</a></li>
<li><a href="http://sysadminspot.com/server-administration/emails-not-sending-defer-111-connection-refused-exim-and-smtp-tweak/" rel="bookmark" title="February 22, 2010">Emails Not Sending &#8211; defer (111): Connection refused (Exim) and SMTP Tweak</a></li>
<li><a href="http://sysadminspot.com/programming/simple-ip-information-ip-to-location-country-lookup/" rel="bookmark" title="June 12, 2010">Simple IP Information / IP to Location (Country) Lookup</a></li>
<li><a href="http://sysadminspot.com/server-administration/modifying-cpanel-mailbox-quota-errors-invalid-maildirsize-file/" rel="bookmark" title="May 16, 2010">Modifying cPanel Mailbox Quota Errors &#8220;invalid maildirsize file&#8221;</a></li>
</ul>
<p><!-- Similar Posts took 63.839 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadminspot.com/seo/improve-pr-from-parked-domains/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

