<?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>am3n portfolio</title>
	<atom:link href="http://www.am3n.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.am3n.net</link>
	<description>career, freelance and some stupid thing I do</description>
	<lastBuildDate>Mon, 09 May 2011 16:27:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Automatically Purge MySQL Master Log</title>
		<link>http://www.am3n.net/2010/09/09/automatically-purge-mysql-master-log/</link>
		<comments>http://www.am3n.net/2010/09/09/automatically-purge-mysql-master-log/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 12:15:53 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[binlog]]></category>
		<category><![CDATA[disk full]]></category>
		<category><![CDATA[master log]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[purge]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=263</guid>
		<description><![CDATA[My Friend Andre Hartawan is troubling due to his mysql server at work stop operating. After quick check he found that no more disk space available on the system. Further check on /var partition he found many replication log file on disk which no longer needed but have big size (100MB). He can easily purge [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2008/08/07/mysql-5-access-via-old-mysql-front-25/' rel='bookmark' title='MySQL 5 access via old MySQL-Front 2.5'>MySQL 5 access via old MySQL-Front 2.5</a> <small>Kusma!!!, Now I know how to make old mysql front...</small></li>
<li><a href='http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/' rel='bookmark' title='Running MySQL 4 and MySQL 5 Concurrently'>Running MySQL 4 and MySQL 5 Concurrently</a> <small>From Howtoforge.com&#8217;s article: Running MySQL 4 And MySQL 5 Concurrently...</small></li>
<li><a href='http://www.am3n.net/2009/06/18/sql-error-table-mysqlproc-doesnt-exist/' rel='bookmark' title='SQL Error: Table &#8216;mysql.proc&#8217; doesn&#8217;t exist'>SQL Error: Table &#8216;mysql.proc&#8217; doesn&#8217;t exist</a> <small>Today I upgraded my HeidiSQL into version 4, but when...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>My Friend <a href="http://andrehartawan.web.id" target="_blank">Andre Hartawan</a> is troubling due to his mysql server at work stop operating. After quick check he found that no more disk space available on the system. Further check on /var partition he found many replication log file on disk which no longer needed but have big size (100MB). He can easily purge the logs file but wanted the server due it chores automatically. So here it&#8217;s I share my script (autopurgebinlog.sh) to purge replication logbin automatically.<br />
<span id="more-263"></span></p>
<pre>
#!/bin/bash
# autopurgebinlog.sh
# script to purge mysql replication log-bin
# by am3n.net
# License GNU/GPL 

# number of days to keep logbin
AGE=5 # days
AGE_MINS=$[ $AGE * 60 * 24 ]

#find mysql binary log which older than $AGE_MINS
OLDLOGS=`find /var/lib/mysql/$HOSTNAME-bin.??? -cmin +$AGE_MINS | tail -n 1 | gawk -F'/' '{print $5}'`

# change mysqluser and mysqlpass with user that have priviled to purge binary log (i.e. root)
mysql -u mysqluser -pmysqlpass mysql -e "PURGE MASTER LOGS TO '$OLDLOGS'"
</pre>
<p>Put the script on crontab, run it once a month.</p>
<pre>
crontab -e
1 1 1 * * /root/autopurgebinlog.sh
</pre>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F09%2F09%2Fautomatically-purge-mysql-master-log%2F', 'Automatically+Purge+MySQL+Master+Log')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F09%2F09%2Fautomatically-purge-mysql-master-log%2F', title: 'Automatically+Purge+MySQL+Master+Log' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2008/08/07/mysql-5-access-via-old-mysql-front-25/' rel='bookmark' title='MySQL 5 access via old MySQL-Front 2.5'>MySQL 5 access via old MySQL-Front 2.5</a> <small>Kusma!!!, Now I know how to make old mysql front...</small></li>
<li><a href='http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/' rel='bookmark' title='Running MySQL 4 and MySQL 5 Concurrently'>Running MySQL 4 and MySQL 5 Concurrently</a> <small>From Howtoforge.com&#8217;s article: Running MySQL 4 And MySQL 5 Concurrently...</small></li>
<li><a href='http://www.am3n.net/2009/06/18/sql-error-table-mysqlproc-doesnt-exist/' rel='bookmark' title='SQL Error: Table &#8216;mysql.proc&#8217; doesn&#8217;t exist'>SQL Error: Table &#8216;mysql.proc&#8217; doesn&#8217;t exist</a> <small>Today I upgraded my HeidiSQL into version 4, but when...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/09/09/automatically-purge-mysql-master-log/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Check the first time you install Linux OS</title>
		<link>http://www.am3n.net/2010/05/26/check-the-first-time-you-install-linux-os/</link>
		<comments>http://www.am3n.net/2010/05/26/check-the-first-time-you-install-linux-os/#comments</comments>
		<pubDate>Wed, 26 May 2010 16:40:37 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=261</guid>
		<description><![CDATA[If you forgot when you deploying (installing) a server (or Desktop) with Linux OS (esp. RedHat and its derivatives) you can check date of first file created after successful installation. You need root privileges to check the file. - Login as root, then - type &#8220;ls -l anaconda-ks.cfg&#8221; and hit Enter [root@patrick ~]# ls -l [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/02/09/check-linux-foldersize/' rel='bookmark' title='Check Linux Foldersize'>Check Linux Foldersize</a> <small>I don&#8217;t know if there are any utilities out there...</small></li>
<li><a href='http://www.am3n.net/2009/06/23/add-swap-on-linux/' rel='bookmark' title='Add Swap on Linux'>Add Swap on Linux</a> <small>From: FelipeCruz To add swap partition use command # mkswap...</small></li>
<li><a href='http://www.am3n.net/2009/01/06/install-jabberd-on-centos/' rel='bookmark' title='Install jabberd on CentOS'>Install jabberd on CentOS</a> <small>Create your own Instant Messaging Server!! The company need it...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you forgot when you deploying (installing) a server (or Desktop) with Linux OS (esp. RedHat and its derivatives) you can check date of first file created after successful installation. You need root privileges to check the file.<br />
<span id="more-261"></span><br />
- Login as root, then<br />
- type &#8220;ls -l anaconda-ks.cfg&#8221; and hit Enter</p>
<pre>[root@patrick ~]# ls -l anaconda-ks.cfg
-rw-r--r--  1 root root 1483 Aug  6  2005 anaconda-ks.cfg</pre>
<p>So the first time I installed Linux on that server is 6 Aug 2005, if I haven&#8217;t reinstalled the OS, then that date will be also the date for the hardware is being use for the first time also. Now after 5 happy years running 24/7. Isn&#8217;t about time to replace the hardware with the new and faster one?</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F05%2F26%2Fcheck-the-first-time-you-install-linux-os%2F', 'Check+the+first+time+you+install+Linux+OS')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F05%2F26%2Fcheck-the-first-time-you-install-linux-os%2F', title: 'Check+the+first+time+you+install+Linux+OS' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/02/09/check-linux-foldersize/' rel='bookmark' title='Check Linux Foldersize'>Check Linux Foldersize</a> <small>I don&#8217;t know if there are any utilities out there...</small></li>
<li><a href='http://www.am3n.net/2009/06/23/add-swap-on-linux/' rel='bookmark' title='Add Swap on Linux'>Add Swap on Linux</a> <small>From: FelipeCruz To add swap partition use command # mkswap...</small></li>
<li><a href='http://www.am3n.net/2009/01/06/install-jabberd-on-centos/' rel='bookmark' title='Install jabberd on CentOS'>Install jabberd on CentOS</a> <small>Create your own Instant Messaging Server!! The company need it...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/05/26/check-the-first-time-you-install-linux-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] Add permanent whitelist IP Address using CSF/LFD</title>
		<link>http://www.am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/</link>
		<comments>http://www.am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/#comments</comments>
		<pubDate>Wed, 26 May 2010 15:38:59 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[whitelist]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=259</guid>
		<description><![CDATA[You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure Daemon (CSF/LFD) by using the Quick Allow or editing Firewall Allow IPs but the number of IP Addresses kept by CSF/LFD is limited (by default is 100 or other numbers you specified in Firewall Configuration) as a large number of IP addresses create a large [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
<li><a href='http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/' rel='bookmark' title='[ISPConfig] IP Address Changes'>[ISPConfig] IP Address Changes</a> <small>I was using ISPConfig, to ease my life configuring and...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure Daemon (CSF/LFD) by using the Quick Allow or editing Firewall Allow IPs but the number of IP Addresses kept by CSF/LFD is limited (by default is 100 or other numbers you specified in Firewall Configuration) as a large number of IP addresses create a large number of iptables rules (4 times the number of IP&#8217;s) which can cause problems on some systems where either the the number of iptables entries has been limited (esp VPS&#8217;s) or where resources are limited. This can result in slow network performance, or, in the case of iptables entry limits, can prevent your server from booting as not all the required iptables chain settings will be correctly configured.</p>
<p>CSF/LFD will removes oldest entries and replaced with new one. So how to make CSF/LFD make permanent whitelist IP Address? Here&#8217;s how:<br />
<span id="more-259"></span><br />
From WHM > ConfigServer Security&#038;Firewall ><br />
look for &#8220;Edit lfd ignore file&#8221; select csf.ignore &#8211; IP Blocking on dropdown list and click Edit button</p>
<p>Info for csf.ignore file is all IP addresses listed will be ignored by all lfd checks. Since it will be ignored so it won&#8217;t be blocked (automatically whitelisted) <img src='http://am3n.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F05%2F26%2Fcpanel-add-permanent-whitelist-ip-address-using-csflfd%2F', '%5BcPanel%5D+Add+permanent+whitelist+IP+Address+using+CSF%2FLFD')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F05%2F26%2Fcpanel-add-permanent-whitelist-ip-address-using-csflfd%2F', title: '%5BcPanel%5D+Add+permanent+whitelist+IP+Address+using+CSF%2FLFD' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
<li><a href='http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/' rel='bookmark' title='[ISPConfig] IP Address Changes'>[ISPConfig] IP Address Changes</a> <small>I was using ISPConfig, to ease my life configuring and...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install SSH (SFTP) server on Windows 2000</title>
		<link>http://www.am3n.net/2010/04/19/install-ssh-sftp-server-on-windows-2000/</link>
		<comments>http://www.am3n.net/2010/04/19/install-ssh-sftp-server-on-windows-2000/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 10:45:09 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=255</guid>
		<description><![CDATA[Below is step-by-step installation SSH (and SFTP) server on Windows NT Based (Windows 2000 Server). It&#8217;s easy to follow and I bet you can do it by your self. Login as Administrator Create windows user with name ftp_user (and specified the password) Go to http://sshwindows.sourceforge.net/download/ download Binary Installer Release then Extract and Install Openssh server. [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2008/05/03/running-mysqld-as-standalone-application-on-windows/' rel='bookmark' title='Running MySQLd as standalone application on Windows'>Running MySQLd as standalone application on Windows</a> <small>My friend asked me how to get MySQL running as...</small></li>
<li><a href='http://www.am3n.net/2009/12/14/bind-lame-server/' rel='bookmark' title='[bind] lame server'>[bind] lame server</a> <small>Tired seeing lame server error on your BIND (DNS server)...</small></li>
<li><a href='http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/' rel='bookmark' title='[cPanel] Internal Server Error after installation'>[cPanel] Internal Server Error after installation</a> <small>Installing cPanel is very easy, what you need is patience,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Below is step-by-step installation SSH (and SFTP) server on Windows NT Based (Windows 2000 Server). It&#8217;s easy to follow and I bet you can do it by your self.<span id="more-255"></span></p>
<ul>
<li>Login as Administrator</li>
<li>Create windows user with name ftp_user (and specified the password)</li>
<li>Go to <a href="http://sshwindows.sourceforge.net/download/" target="_blank">http://sshwindows.sourceforge.net/download/</a> download Binary Installer Release then Extract and Install Openssh server.</li>
<li>Open command prompt and type:
<pre>cd C:\PROGRA~1\OpenSSH\bin
mkgroup -l &gt;&gt; ..\etc\group
mkpasswd -l -u ftp_user &gt;&gt; ..\etc\passwd</pre>
</li>
<li>Open Regedit, Find key My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home<br />
change native value with c:\sftphome</li>
<li>Create folder c:\sftphome</li>
<li>Create folder c:\sftphome\ftp_user and make sure user ftp_user has Full Control</li>
<li>Start the OpenSSH server. Open command prompt and type:
<pre>net start opensshd</pre>
</li>
<li>Make sure SSH server is running, type:
<pre>netstat -an</pre>
<p>and look for 0.0.0.0:22 on Local Address</li>
<li>Test connection by using <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">putty </a>for ssh or <a href="http://filezilla-project.org/" target="_blank">filezilla </a>for sftp. Credentials to use:</li>
</ul>
<p>Username: ftp_user (or anything you choose)<br />
Password: user&#8217;s pass<br />
Host (IP Address): server&#8217;s IP Address<br />
Port: 22</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F04%2F19%2Finstall-ssh-sftp-server-on-windows-2000%2F', 'Install+SSH+%28SFTP%29+server+on+Windows+2000')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F04%2F19%2Finstall-ssh-sftp-server-on-windows-2000%2F', title: 'Install+SSH+%28SFTP%29+server+on+Windows+2000' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2008/05/03/running-mysqld-as-standalone-application-on-windows/' rel='bookmark' title='Running MySQLd as standalone application on Windows'>Running MySQLd as standalone application on Windows</a> <small>My friend asked me how to get MySQL running as...</small></li>
<li><a href='http://www.am3n.net/2009/12/14/bind-lame-server/' rel='bookmark' title='[bind] lame server'>[bind] lame server</a> <small>Tired seeing lame server error on your BIND (DNS server)...</small></li>
<li><a href='http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/' rel='bookmark' title='[cPanel] Internal Server Error after installation'>[cPanel] Internal Server Error after installation</a> <small>Installing cPanel is very easy, what you need is patience,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/04/19/install-ssh-sftp-server-on-windows-2000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[cPanel] Exim Maximum Attachment Size</title>
		<link>http://www.am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/</link>
		<comments>http://www.am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:14:04 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[maximum]]></category>
		<category><![CDATA[size]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=252</guid>
		<description><![CDATA[By default Exim maximum message size is 50MB, you can confirm it by typing # exim -bP &#124; grep message_size_limit message_size_limit = 50M You can change maximum message size by adding line message_size_limit = 5M on the first textarea of the Advanced Mode editor in WHM &#62; Exim Configuration Editor. That will put a 5MB [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default Exim maximum message size is 50MB, you can confirm it by typing</p>
<pre># exim -bP | grep message_size_limit
 message_size_limit = 50M</pre>
<p>You can change maximum message size by adding line</p>
<pre>message_size_limit = 5M</pre>
<p><span id="more-252"></span>on the first textarea of the Advanced Mode editor in WHM &gt; Exim  Configuration Editor. That will put a 5MB message size limit on email.</p>
<p>PS: the limit only affect is email is sent directly using Email Client, if using Webmail (Squirrelmail) there is another limitation set by PHP when uploading file. it&#8217;s variable upload_max_filesize, you can change the value on WHM &gt;  PHP Configuration Editor. Restart apache to make sure variable.</p>
<p>Info from <a href="http://forums.cpanel.net/f43/email-attachment-65304.html" target="_blank">cPanel Forum</a></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F03%2F04%2Fcpanel-exim-maximum-attachment-size%2F', '%5BcPanel%5D+Exim+Maximum+Attachment+Size')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F03%2F04%2Fcpanel-exim-maximum-attachment-size%2F', title: '%5BcPanel%5D+Exim+Maximum+Attachment+Size' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] Internal Server Error after installation</title>
		<link>http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/</link>
		<comments>http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 13:25:56 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[internal server error]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=250</guid>
		<description><![CDATA[Installing cPanel is very easy, what you need is patience, enough bandwidth and following tutorial described in cPanel Quick Install Guide. But even I have followed the guide carefully and make sure I have make prepation still I can go wrong. Below is quick steps to install cPanel: Install Minimal CentOS Create harddrive partition Deactivate [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/02/09/hdd-partition-for-cpanel-server/' rel='bookmark' title='hdd partition for cpanel server'>hdd partition for cpanel server</a> <small>Simple Harddisk partition, assume only for vps and have or...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Installing cPanel is very easy, what you need is patience, enough bandwidth and following tutorial described in <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide" target="_blank">cPanel Quick Install Guide</a>. But even I have followed the guide carefully and make sure I have make prepation still I can go wrong. Below is quick steps to install cPanel:</p>
<ol>
<li>Install Minimal CentOS</li>
<li>Create harddrive partition</li>
<li>Deactivate the firewall</li>
<li>Disable SELinux</li>
<li>Ensure your newly-installed OS has the latest updates and patches.</li>
<li>Obtaining a cPanel/WHM License</li>
<li>Begin Installation
<pre>cd /home
wget -N http://layer1.cpanel.net/latest
sh latest
/usr/local/cpanel/cpkeyclt</pre>
</li>
</ol>
<p>After 5 hours installation is complete then when I am accessing WHM, this error came up</p>
<p><strong>Internal Server Error<br />
open3: exec of /usr/local/cpanel/whostmgr/bin/whostmgr3  ./initial_setup_wizard1 failed at cpsrvd line 6114</strong></p>
<p><span id="more-250"></span></p>
<p>Checking and Googling for about 20 minutes what went wrong, and I saw in <a href="http://forums.cpanel.net/f5/install-cpanel-problem-104617.html" target="_blank">forum </a>some people also had this problem and they were suggested to run below command</p>
<pre>/scripts/upcp --force</pre>
<p>This command will make your cpanel install is updated with latest version by force (replace all file). Detail <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AllFAQ/WHMsFAQ#How_do_I_make_sure_that_my_serve" target="_blank">here</a>.</p>
<p>After running several hours, the script stops and say everything is okay. I went to WHM again and now it working flawlessly <img src='http://am3n.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F11%2Fcpanel-internal-server-error-after-installation%2F', '%5BcPanel%5D+Internal+Server+Error+after+installation')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F11%2Fcpanel-internal-server-error-after-installation%2F', title: '%5BcPanel%5D+Internal+Server+Error+after+installation' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/02/09/hdd-partition-for-cpanel-server/' rel='bookmark' title='hdd partition for cpanel server'>hdd partition for cpanel server</a> <small>Simple Harddisk partition, assume only for vps and have or...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[CentOS] Indonesia Mirror List</title>
		<link>http://www.am3n.net/2010/02/10/centos-indonesia-mirror-list/</link>
		<comments>http://www.am3n.net/2010/02/10/centos-indonesia-mirror-list/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 11:42:28 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[indonesia]]></category>
		<category><![CDATA[mirror]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=246</guid>
		<description><![CDATA[Although not list on CentOS Public Mirror List for Asia but there are several ISP, University, Enterprise and Public Company in Indonesia were kind enough to provide their server and bandwidth for CentOS repository. And here are the list: CBN Biznet Indika Detik &#8211; TOP UI &#8211; TOP Jardiknas UGM Related posts: Install jabberd on [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/01/06/install-jabberd-on-centos/' rel='bookmark' title='Install jabberd on CentOS'>Install jabberd on CentOS</a> <small>Create your own Instant Messaging Server!! The company need it...</small></li>
<li><a href='http://www.am3n.net/2008/11/14/proxy-server-using-squid-dansguardian-and-clamav/' rel='bookmark' title='Proxy Server using Squid, DansGuardian and ClamAV'>Proxy Server using Squid, DansGuardian and ClamAV</a> <small>I was going to use &#8220;Proxy Server using CentOS 4.6...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Although not list on <a href="http://www.centos.org/modules/tinycontent/index.php?id=32" target="_blank">CentOS Public Mirror List for Asia</a> but there are several ISP, University, Enterprise and Public Company in Indonesia were kind enough to provide their server and bandwidth for CentOS repository. And here are the list:</p>
<ul>
<li><a href="http://centos.cbn.net.id/" target="_blank">CBN</a></li>
<li><a href="http://centos.biz.net.id/" target="_blank">Biznet</a></li>
<li><a href="http://centos.indika.net.id/" target="_blank">Indika</a></li>
<li><a href="http://mirror.detik.com/centos/" target="_blank">Detik</a></li>
<p> &#8211; TOP</p>
<li><a href="http://kambing.ui.ac.id/centos/" target="_blank">UI</a></li>
<p> &#8211; TOP</p>
<li><a href="http://yum.jardiknas.org/centos/" target="_blank">Jardiknas</a></li>
<li><a href="http://repo.ugm.ac.id/centos/" target="_blank">UGM</a></li>
</ul>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F10%2Fcentos-indonesia-mirror-list%2F', '%5BCentOS%5D+Indonesia+Mirror+List')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F10%2Fcentos-indonesia-mirror-list%2F', title: '%5BCentOS%5D+Indonesia+Mirror+List' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/01/06/install-jabberd-on-centos/' rel='bookmark' title='Install jabberd on CentOS'>Install jabberd on CentOS</a> <small>Create your own Instant Messaging Server!! The company need it...</small></li>
<li><a href='http://www.am3n.net/2008/11/14/proxy-server-using-squid-dansguardian-and-clamav/' rel='bookmark' title='Proxy Server using Squid, DansGuardian and ClamAV'>Proxy Server using Squid, DansGuardian and ClamAV</a> <small>I was going to use &#8220;Proxy Server using CentOS 4.6...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/02/10/centos-indonesia-mirror-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[ISPConfig] IP Address Changes</title>
		<link>http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/</link>
		<comments>http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 06:27:46 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[control panel]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[ispconfig]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=240</guid>
		<description><![CDATA[I was using ISPConfig, to ease my life configuring and managing WebServer at work and I am thinking to change IP Address of webserver to another segment. I got confused how to change the IP address of ISPConfig 2 so that all sites and system recognized and used the new IP properly. Luckily I am [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I was using ISPConfig, to ease my life configuring and managing WebServer at work and I am thinking to change IP Address of webserver to another segment. I got confused how to change the IP address of ISPConfig 2 so that all sites and system recognized and used the new IP properly. Luckily I am still subscribed to ISPConfig Forum and I <a href="http://www.howtoforge.com/forums/showpost.php?p=218884&amp;postcount=16" target="_blank">found this thread </a>which help me a lot. Below is copy of how to from that forum just incase the forum is down.</p>
<p><span id="more-240"></span></p>
<p>I recently changed the IP addresses of a server running ISPConfig 2 and  stumbled upon this thread. Since the server was hosting many sites, I  was looking for a more effecient way to update the IP for all the sites  in ISPConfig. Thought I would share my solution in case anyone else has  this issue.</p>
<p>Please note: this worked for me on ISPConfig 2 running on Ubuntu 8.10.  Location of config files my be different depending on your system.</p>
<p>After you change the IP on the system, log into ISPConfig and replace  the IP address under Management &gt; Server &gt; Settings. Then replace  the IP address in config files:</p>
<p>xxx.xxx.x.xx represents new IP<br />
yyy.yyy.y.yy represents old IP</p>
<p>Bind9</p>
<div>
<pre dir="ltr">perl -pi -e 's/yyy\.yyy\.y\.yy/xxx.xxx.x.xx/g' /var/lib/named/etc/bind/*</pre>
</div>
<p>Apache</p>
<div>
<pre dir="ltr">perl -pi -e 's/yyy\.yyy\.y\.yy/xxx.xxx.x.xx/g' /etc/apache2/vhosts/*</pre>
</div>
<p>Now, log into MySQL, use the ispconfig database, and run the  following queries to update the IP in ISPConfig:</p>
<p>DNS Manager</p>
<div>
<pre dir="ltr">UPDATE dns_a SET ip_adresse = 'xxx.xxx.x.xx';
UPDATE dns_isp_dns SET dns_soa_ip = 'xxx.xxx.x.xx';</pre>
</div>
<p>ISP Manager</p>
<div>
<pre dir="ltr">UPDATE isp_isp_web SET web_ip = 'xxx.xxx.x.xx';
UPDATE isp_isp_domain SET domain_ip = 'xxx.xxx.x.xx';</pre>
</div>
<p>Of course, you will need to restart apache and bind. Now all sites  should load and when you log into ISPConfig you will see the new IP for  each site and all your DNS records. Go to one of your sites under ISP  Manager, make a minor change and hit save so that ISPConfig rewrites the  config files. Then verify that ISPConfig is using the new IP and you&#8217;re  good to go.</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F10%2Fispconfig-ip-address-changes%2F', '%5BISPConfig%5D+IP+Address+Changes')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F10%2Fispconfig-ip-address-changes%2F', title: '%5BISPConfig%5D+IP+Address+Changes' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t access VMWare Console</title>
		<link>http://www.am3n.net/2010/02/08/cant-access-vmware-console/</link>
		<comments>http://www.am3n.net/2010/02/08/cant-access-vmware-console/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 08:17:18 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=236</guid>
		<description><![CDATA[VMWare Management Console URL https://&#60;your.vmware.server.ip&#62;:8333/ If you can&#8217;t access it try to open it using different browser. Still can&#8217;t? try to flush the firewall # iptables -F Make sure all vmware service is running, especially vmware-hostd, vmware-mgmt. Like below # netstat -pant Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address [...]]]></description>
			<content:encoded><![CDATA[<p>VMWare Management Console URL</p>
<pre>https://&lt;your.vmware.server.ip&gt;:8333/</pre>
<p>If you can&#8217;t access it try to open it using different browser. Still can&#8217;t? try to flush the firewall</p>
<pre># iptables -F</pre>
<p>Make sure all vmware service is running, especially vmware-hostd, vmware-mgmt. Like below</p>
<p><span id="more-236"></span></p>
<pre># netstat -pant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:904                 0.0.0.0:*                   LISTEN      2717/vmware-authdla
tcp        0      0 0.0.0.0:8333                0.0.0.0:*                   LISTEN      4087/vmware-hostd
tcp        0      0 0.0.0.0:8222                0.0.0.0:*                   LISTEN      4087/vmware-hostd
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LISTEN      4034/webAccess
tcp        0      0 :::8009                     :::*                        LISTEN      4034/webAccess
tcp        0      0 :::8308                     :::*                        LISTEN      4034/webAccess</pre>
<p>If not try to restart vmware-mgmt.</p>
<pre># /etc/init.d/vmware-mgmt stop</pre>
<p>Kill the rest wmware-hostd PID, and start it again</p>
<pre># /etc/init.d/vmware-mgmt start</pre>
<p>Update:<br />
1. Try another browser if you can&#8217;t access VMWare Management Console (like. older IE, older Firefox or use Opera)</p>
<p>2. You should access your VMWare Management Console URL using the same name in your VMWare&#8217;s SSL certificate. In my case on the certificate I name the vmware server as vpsserver.myholding.com so I should type on browser. Create an A record for it if you don&#8217;t have it.</p>
<pre>https://vpsserver.myholding.com:8333/</pre>
<p>3. For Firefox 3.6 has been disable SSL2 support. To enable it type &#8220;about:config&#8221; in url then set security.enable_ssl2 into true.</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F08%2Fcant-access-vmware-console%2F', 'Can%26%238217%3Bt+access+VMWare+Console')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F08%2Fcant-access-vmware-console%2F', title: 'Can%26%238217%3Bt+access+VMWare+Console' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/02/08/cant-access-vmware-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use qmHandle</title>
		<link>http://www.am3n.net/2010/01/15/how-to-use-qmhandle/</link>
		<comments>http://www.am3n.net/2010/01/15/how-to-use-qmhandle/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 11:06:39 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[qmhandle]]></category>
		<category><![CDATA[queue]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=230</guid>
		<description><![CDATA[qmHandle is a tool which can be used to manage the qmail message queue. It&#8217;s written in Perl (so fully customizable) and has more features than qmail-qread and qmail-qstat. qmHandle is a simple program which allows you to view and manage the qmail message queue. The key features of qmHandle are: Freeware and open source, [...]]]></description>
			<content:encoded><![CDATA[<p>qmHandle is a tool which can be used to manage the qmail message queue. It&#8217;s written in Perl (so fully customizable) and has more features than qmail-qread and qmail-qstat.</p>
<p><em>qmHandle</em> is a simple program which allows you to view and manage the <a href="http://www.qmail.org/">qmail</a> message queue.</p>
<p>The key features of <em>qmHandle</em> are:</p>
<ul>
<li><strong>Freeware</strong> and <strong>open source</strong>, under the GNU General Public       License;</li>
<li>More information provided when reading queue contents compared to qmail-qread</li>
<li>You can print queue statistics, like qmail-qstat, with color       capabilities;</li>
<li>You can view a message in the queue;</li>
<li>You can remove one or more messages from the queue based on a criterion or use multiple delete requests each having its own criterion;</li>
<li>Written in <a href="http://www.perl.com/">Perl</a>, and therefore easily       customizable and truly multiplatform.</li>
</ul>
<p>The software will work on every Unix platform with Perl installed and qmail installed.</p>
<p>qmHandle can be downloaded <a href="http://sourceforge.net/projects/qmhandle" target="_blank">qmHandle project homepage</a></p>
<p>For me qmHandle is a great tool and a must have for sysadmin for managing qmail queue system. Enough for explanation. Now let&#8217;s get started how to use it.</p>
<p><span id="more-230"></span></p>
<p><strong>Help and Options</strong></p>
<pre># qmHandle --help
qmHandle v1.2.0-bovine
Copyright 1998-2003 Michele Beltrame
Patched 2004-2006 Robert McLeay

Available parameters:
  -V     : print program version
  -a     : try to send queued messages now (qmail must be running)
  -l     : list message queues
  -L     : list local message queue
  -R     : list remote message queue
  -s     : show some statistics
  -mN    : display message number N
  -dN    : delete message number N
  -Stext : delete all messages that have/contain text as Subject
  -D     : delete all messages in the queue (local and remote)
  -tX 'string': delete all messages with matching headers, where 'string' is the
                string to match and X specifies:
                  'f'  : Who the message is from,
                  't'  : Who the message is to; or,
                  's'  : What the message's subject is
  -M          : delete all msgs in the queue from
                MAILER-DAEMON@svr-m1.rpxholding.com
Additional (optional) parameters:
  -c     : display colored output
  -N     : list message numbers only
           (to be used either with -l, -L or -R)

You can view/delete multiple message i.e. -d123 -m456 -d567</pre>
<p>Before you run qmHandle to manage your queue, make sure qmail already stop just to make sure no corruption will happen, except for option -a</p>
<p><strong>Listing and displaying message in queue</strong></p>
<pre># qmHandle -l | more
16923 (18, R)
 Return-path: ipamudji@yourcompany.com
 From: "imi" &lt;ipamudji@mycompany.com&gt;
 To: "Sumarna" &lt;hsumarna@mycompany.com&gt;
 Subject: Malaysia Sdn Bhd
 Date: Fri, 15 Jan 2010 18:07:59 +0700
 Size: 64774 bytes

16946 (18, R)
 Return-path: ipamudji@yourcompany.com
 From: "imi" &lt;ipamudji@yourcompany.com&gt;
 To: "Yogi" &lt;yogi@mycompany.com&gt;
 Cc: &lt;pdewi@mycompany.com&gt;
 Subject: Fw: Critical Urgent
 Date: Fri, 15 Jan 2010 18:07:59 +0700
 Size: 64590 bytes</pre>
<p>The first line 16923 (18, R) shows us the message ID (16923), and queue type (Remote or Local) in this case both of them are remote queue, which mean this message are sent from other mailserver. The rest of lines is header information for you to tell from where, to where, when, what subject and message size.</p>
<p>you can use -L or -R option to list message queue only from Local or from Remote</p>
<pre># qmHandle -L
Messages in local queue: 0
Messages in remote queue: 4

# qmHandle -R | more
16946 (18, R)
 Return-path: ipamudji@yourcompany.com
 From: "imi" &lt;ipamudji@yourcompany.com&gt;
 To: "Yogi" &lt;yogi@mycompany.com&gt;
 Cc: &lt;pdewi@mycompany.com&gt;
 Subject: Fw: Critical Urgent
 Date: Fri, 15 Jan 2010 18:07:59 +0700
 Size: 64590 bytes</pre>
<p>Now to see the body of message use -m option followed by message id</p>
<pre># qmHandle -m16197 | more

 --------------
MESSAGE NUMBER 16197
 --------------
Received: (qmail 10236 invoked by uid 89); 15 Jan 2010 11:35:41 -0000
Received: by simscan 1.3.1 ppid: 10226, pid: 10230, t: 0.7821s
         scanners: attach: 1.3.1 clamav: 0.95.2/m:51
Received: from unknown (HELO nurhalimah) (snurhalimah@10.10.14.53)
  by svr-m1.mycompany.com with ESMTPA; 15 Jan 2010 11:35:41 -0000
Message-ID: &lt;057a01ca95d7$09397c30$350e0a0a@nurhalimah&gt;
From: "Nur Halimah"
To: ,
Subject: Pls ...need help
Date: Fri, 15 Jan 2010 18:36:52 +0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_0577_01CA9611.B4BF5950"

Dear team,=20

Mohon bantuannya, makasih</pre>
<p>To display statistic only for local and remote queue, use</p>
<pre># qmHandle -s
Messages in local queue: 0
Messages in remote queue: 4</pre>
<p><strong>Send queued messages</strong></p>
<p>If message failed to sent, they will be in queue for re-trying until it past queue life time.  You can try to send all queued messages by running</p>
<pre># qmHandle -a</pre>
<p><strong><br />
Delete queued message</strong></p>
<p>Okay now we came into our important section, before you use one of these options make sure qmail has stop to prevent corruption in queue message.</p>
<p>Delete 1 message, use -d option followed by message id</p>
<pre># qmHandle -d16197</pre>
<p>Delete all messages</p>
<pre># qmHandle -D</pre>
<p>Delete all queue messages with Subject containing &#8220;REPORT 14 JANUARY 2010&#8243;, remember Reply and Forward messages also will be deleted because the Subject is &#8220;Re: REPORT 14 JANUARY 2010&#8243; or &#8220;Fwd: REPORT 14 JANUARY 2010&#8243;</p>
<pre># qmHandle -S"REPORT 14 JANUARY 2010"</pre>
<p>Delete All messages, use it with precaution and make sure this is the right choice <img src='http://am3n.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<pre># qmHandle -D</pre>
<p>That&#8217;s all folks, now you know what to do with your queue system, just in case you sent the wrong email.  </p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F01%2F15%2Fhow-to-use-qmhandle%2F', 'How+to+use+qmHandle')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F01%2F15%2Fhow-to-use-qmhandle%2F', title: 'How+to+use+qmHandle' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/01/15/how-to-use-qmhandle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

