<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Welcome to Mamun's Blog</title>
	<atom:link href="http://almamunbd.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://almamunbd.wordpress.com</link>
	<description>Your Online Home of Tutorial for Winodws &#38; Linux</description>
	<lastBuildDate>Thu, 18 Feb 2010 11:52:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='almamunbd.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/89f05909b4aa4f6cea8b47d7c0d81a93?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Welcome to Mamun's Blog</title>
		<link>http://almamunbd.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://almamunbd.wordpress.com/osd.xml" title="Welcome to Mamun&#039;s Blog" />
	<atom:link rel='hub' href='http://almamunbd.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Default web site on apache when browsing with IP</title>
		<link>http://almamunbd.wordpress.com/2010/01/26/default-web-site-on-apache-when-browsing-with-ip/</link>
		<comments>http://almamunbd.wordpress.com/2010/01/26/default-web-site-on-apache-when-browsing-with-ip/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:17:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2010/01/26/default-web-site-on-apache-when-browsing-with-ip</guid>
		<description><![CDATA[#Default site when browsing with IP address &#160;&#160;DocumentRoot /var/www/vhosts/defaultsite&#160;&#160;ServerName &#160;your server ip<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=116&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>#Default site when browsing with IP address</p>
<p>&nbsp;&nbsp;DocumentRoot /var/www/vhosts/defaultsite<br />&nbsp;&nbsp;ServerName &nbsp;your server ip</p>
<div></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=116&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2010/01/26/default-web-site-on-apache-when-browsing-with-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>Shell script to backup mysql database</title>
		<link>http://almamunbd.wordpress.com/2010/01/26/shell-script-to-backup-mysql-database/</link>
		<comments>http://almamunbd.wordpress.com/2010/01/26/shell-script-to-backup-mysql-database/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 09:57:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2010/01/26/shell-script-to-backup-mysql-database</guid>
		<description><![CDATA[Taking all mysql db backup is very simple if you use this small shell scripts, just create a file named mysqlbackup.sh and paste the all the text below: #!/bin/bash#NOW=$(date +&#8221;%m-%d-%Y&#8221;) # mm-dd-yyyy formatFILE=&#8221;" # used in a loop BAK=&#8221;/home/backups/mysql&#8221; # Path to backup dir ### Server Setup ####* MySQL login user name *#MUSER=&#8221;dbbackup&#8221; #* MySQL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=115&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Taking all mysql db backup is very simple if you use this small shell scripts, just create a file named mysqlbackup.sh and paste the all the text below:</p>
<p>#!/bin/bash<br />#<br />NOW=$(date +&#8221;%m-%d-%Y&#8221;) # mm-dd-yyyy format<br />FILE=&#8221;"<span style="white-space:pre;">   </span># used in a loop</p>
<p>BAK=&#8221;/home/backups/mysql&#8221; # Path to backup dir</p>
<p>### Server Setup ###<br />#* MySQL login user name *#<br />MUSER=&#8221;dbbackup&#8221;</p>
<p>#* MySQL login PASSWORD name *#<br />MPASS=&#8221;password&#8221;</p>
<p>#* MySQL login HOST name *#<br />MHOST=&#8221;localhost&#8221;</p>
<p>#* MySQL binaries *#<br />MYSQL=&#8221;$(which mysql)&#8221;<br />MYSQLDUMP=&#8221;$(which mysqldump)&#8221;<br />GZIP=&#8221;$(which gzip)&#8221;</p>
<p># get all database listing<br />DBS=&#8221;$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse &#8216;show databases&#8217;)&#8221;</p>
<p># start to dump database one by one<br />for db in $DBS<br />do<br />&nbsp;FILE=$BAK/$db-backkup.$NOW-$(date +&#8221;%T&#8221;).gz<br />&nbsp;# gzip compression for each backup file<br />&nbsp;$MYSQLDUMP -u $MUSER -h $MHOST -p$MPASS $db | $GZIP -9 &gt; $FILE<br />done</p>
<p>Create a cron job that will execute this script regularly at a specific time, in my case i set it to 22:30 PM every night and here is my cron job</p>
<p>30 22 * * * sh &nbsp;/path/to/your/mysqlbackup.sh</p>
<p>Create another cron job that will execute at a specific time to clean your backup files older than 5 days</p>
<p>25 22 * * *&nbsp;find /home/backups/mysql/ -name &#8216;*.sql&#8217; -and -mtime +4 | xargs rm -f
<div style="margin:0;"></div>
<p>That&#8217;s it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=115&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2010/01/26/shell-script-to-backup-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>Downgrading php 5.3 to php 5.2 using yum on centos 5.4</title>
		<link>http://almamunbd.wordpress.com/2010/01/19/downgrading-php-5-3-to-php-5-2-using-yum-on-centos-5-4/</link>
		<comments>http://almamunbd.wordpress.com/2010/01/19/downgrading-php-5-3-to-php-5-2-using-yum-on-centos-5-4/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 11:19:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2010/01/19/downgrading-php-5-3-to-php-5-2-using-yum-on-centos-5-4</guid>
		<description><![CDATA[First you need to allow downgrade for yum and for that you need to install yum-allowdowngrad utility program, but its very easy to install, Just issue the following command: #yum install yum-allowdowngrade Now add a line to your &#160;yum.conf file, its located in /etc/yum.conf#vi /etc/yum.confshowdupesfromrepos=1 After that list all php packages: yum list php If [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=114&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First you need to allow downgrade for yum and for that you need to install yum-allowdowngrad utility program, but its very easy to install, Just issue the following command:</p>
<p>#yum install yum-allowdowngrade</p>
<p>Now add a line to your &nbsp;yum.conf file, its located in /etc/yum.conf<br />#vi /etc/yum.conf<br />showdupesfromrepos=1</p>
<p>After that list all php packages:</p>
<p>yum list php</p>
<p>If php 5.2.8 is available, remove new one:</p>
<p>yum remove php</p>
<p>and install an old one:</p>
<p>yum &#8211;allow-downgrade install php-5.2.8</p>
<p>You are done.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=114&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2010/01/19/downgrading-php-5-3-to-php-5-2-using-yum-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install subversion 1.6.6 on CentOS 5.4</title>
		<link>http://almamunbd.wordpress.com/2009/12/29/how-to-install-subversion-1-6-6-on-centos-5-4/</link>
		<comments>http://almamunbd.wordpress.com/2009/12/29/how-to-install-subversion-1-6-6-on-centos-5-4/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 14:52:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/12/29/how-to-install-subversion-1-6-6-on-centos-5-4</guid>
		<description><![CDATA[Step-1: Download all the required .rpm file from this location(http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.6/rhel5/i386/) to your local drive. step-2: Remove Cadaver: yum remove cadaver Step-3: Remoe old Neon and Neon Devel: yum remove neon neon-devel Step-4: Install latest version of neon: rpm-Uvh neon-0.28.4-1.i386.rpm Step-5: Install latest version of neon devel: rpm -Uvh neon-devel-0.28.4-1.i386.rpm Step-6: Remove sqlite-devel: yum remove sqlite-devel [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=113&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>Step-1:</b> Download all the required .rpm file from this location(http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.6/rhel5/i386/) to your local drive.
<div></div>
<div>
<div>step-2: Remove Cadaver: yum remove cadaver</div>
<div>Step-3: Remoe old Neon and Neon Devel: yum remove neon neon-devel</div>
<div>Step-4: Install latest version of neon: rpm-Uvh neon-0.28.4-1.i386.rpm</div>
<div>Step-5: Install latest version of neon devel: rpm -Uvh neon-devel-0.28.4-1.i386.rpm</div>
<div>Step-6: Remove sqlite-devel: yum remove sqlite-devel</div>
<div>Step-7: Install latest sqlite and sqlite-devel: yum install sqlite sqlite-devel</div>
<div>Step-8: Install latest subversion and mod_dav_svn:</div>
<div></div>
<div>to be continued&#8230;&#8230;&#8230;.</div>
<div></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=113&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/12/29/how-to-install-subversion-1-6-6-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install sun java JDK</title>
		<link>http://almamunbd.wordpress.com/2009/12/27/how-to-install-sun-java-jdk/</link>
		<comments>http://almamunbd.wordpress.com/2009/12/27/how-to-install-sun-java-jdk/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 10:10:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/12/27/how-to-install-sun-java-jdk</guid>
		<description><![CDATA[alternatives &#8211;install /usr/bin/java java /usr/java/jdk1.6.0_17/bin/java 100 alternatives &#8211;install /usr/bin/jar jar /usr/java/jdk1.6.0_17/bin/jar 100 alternatives &#8211;install /usr/bin/javac javac /usr/java/jdk1.6.0_17/bin/javac 100 Set JAVA_HOME / PATH for all user You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users:# vi /etc/profileNext setup PATH / JAVA_PATH variables as follows:export PATH=$PATH:/usr/java/jdk1.5.0_07/binexport PATH=$PATH:/usr/java/jdk1.5.0_07/bin<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=111&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div></div>
<div>alternatives &#8211;install /usr/bin/java java /usr/java/jdk1.6.0_17/bin/java 100</div>
<div>alternatives &#8211;install /usr/bin/jar jar /usr/java/jdk1.6.0_17/bin/jar 100</div>
<div>alternatives &#8211;install /usr/bin/javac javac /usr/java/jdk1.6.0_17/bin/javac 100</div>
<div></div>
<div><span class="Apple-style-span" style="font-family:Georgia, 'Times New Roman', Times, serif;font-size:14px;color:rgb(17,17,17);line-height:22px;"><br />
<h2 style="font-size:1.8em;font-weight:normal;line-height:1.267em;margin:0;padding:0;">Set JAVA_HOME / PATH for all user</h2>
<p style="margin:0 0 1.571em;padding:0;">You need to setup global config in <span style="color:rgb(153,102,51);margin:0;padding:0;">/etc/profile</span> OR <span style="color:rgb(153,51,153);margin:0;padding:0;">/etc/bash.bashrc</span> file for all users:<br /><code style="font-family:Consolas, 'Andale Mono', Courier, 'Courier New';line-height:1.385em;background-image:none;background-repeat:repeat;background-attachment:scroll;background-color:rgb(238,238,238);font-size:.929em;display:block;background-position:0 0;border-color:rgb(221,221,221);border-style:solid;border-width:1px;margin:0 0 1.692em;padding:.615em .846em;"># vi /etc/profile</code><br />Next setup PATH / JAVA_PATH variables as follows:<br /><code style="font-family:Consolas, 'Andale Mono', Courier, 'Courier New';line-height:1.385em;background-image:none;background-repeat:repeat;background-attachment:scroll;background-color:rgb(238,238,238);font-size:.929em;display:block;background-position:0 0;border-color:rgb(221,221,221);border-style:solid;border-width:1px;margin:0 0 1.692em;padding:.615em .846em;">export PATH=$PATH:/usr/java/jdk1.5.0_07/bin<br />export PATH=$PATH:/usr/java/jdk1.5.0_07/bin</code></p>
<p></span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=111&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/12/27/how-to-install-sun-java-jdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a self-signed SSL Certificate with OpenSSL</title>
		<link>http://almamunbd.wordpress.com/2009/12/27/how-to-create-a-self-signed-ssl-certificate-with-openssl/</link>
		<comments>http://almamunbd.wordpress.com/2009/12/27/how-to-create-a-self-signed-ssl-certificate-with-openssl/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 03:21:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/12/27/how-to-create-a-self-signed-ssl-certificate-with-openssl</guid>
		<description><![CDATA[Overview The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process. Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=110&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div> Overview</div>
<div></div>
<div>    The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process.</div>
<div></div>
<div>    Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).</div>
<div></div>
<div>    SSL makes use of what is known as asymmetric cryptography, commonly referred to as public key cryptography (PKI). With public key cryptography, two keys are created, one public, one private. Anything encrypted with either key can only be decrypted with its corresponding key. Thus if a message or data stream were encrypted with the server&#8217;s private key, it can be decrypted only using its corresponding public key, ensuring that the data only could have come from the server.</div>
<div></div>
<div>    If SSL utilizes public key cryptography to encrypt the data stream traveling over the Internet, why is a certificate necessary? The technical answer to that question is that a certificate is not really necessary &#8211; the data is secure and cannot easily be decrypted by a third party. However, certificates do serve a crucial role in the communication process. The certificate, signed by a trusted Certificate Authority (CA), ensures that the certificate holder is really who he claims to be. Without a trusted signed certificate, your data may be encrypted, however, the party you are communicating with may not be whom you think. Without certificates, impersonation attacks would be much more common.</div>
<div></div>
<div>Step 1: Generate a Private Key</div>
<div></div>
<div>    The openssl toolkit is used to generate an RSA Private Key and CSR (Certificate Signing Request). It can also be used to generate self-signed certificates which can be used for testing purposes or internal usage.</div>
<div></div>
<div>    The first step is to create your RSA Private Key. This key is a 1024 bit RSA key which is encrypted using Triple-DES and stored in a PEM format so that it is readable as ASCII text.</div>
<div></div>
<div>    openssl genrsa -des3 -out server.key 1024</div>
<div></div>
<div>    Generating RSA private key, 1024 bit long modulus</div>
<div>    &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;++++++</div>
<div>    &#8230;&#8230;..++++++</div>
<div>    e is 65537 (0&#215;10001)</div>
<div>    Enter PEM pass phrase:</div>
<div>    Verifying password &#8211; Enter PEM pass phrase:</div>
<div></div>
<div>Step 2: Generate a CSR (Certificate Signing Request)</div>
<div></div>
<div>    Once the private key is generated a Certificate Signing Request can be generated. The CSR is then used in one of two ways. Ideally, the CSR will be sent to a Certificate Authority, such as Thawte or Verisign who will verify the identity of the requestor and issue a signed certificate. The second option is to self-sign the CSR, which will be demonstrated in the next section.</div>
<div></div>
<div>    During the generation of the CSR, you will be prompted for several pieces of information. These are the X.509 attributes of the certificate. One of the prompts will be for &#8220;Common Name (e.g., YOUR name)&#8221;. It is important that this field be filled in with the fully qualified domain name of the server to be protected by SSL. If the website to be protected will be https://public.akadia.com, then enter public.akadia.com at this prompt. The command to generate the CSR is as follows:</div>
<div></div>
<div>    openssl req -new -key server.key -out server.csr</div>
<div></div>
<div>    Country Name (2 letter code) [GB]:CH</div>
<div>    State or Province Name (full name) [Berkshire]:Bern</div>
<div>    Locality Name (eg, city) [Newbury]:Oberdiessbach</div>
<div>    Organization Name (eg, company) [My Company Ltd]:Akadia AG</div>
<div>    Organizational Unit Name (eg, section) []:Information Technology</div>
<div>    Common Name (eg, your name or your server&#8217;s hostname) []:public.akadia.com</div>
<div>    Email Address []:martin dot zahn at akadia dot ch</div>
<div>    Please enter the following &#8216;extra&#8217; attributes</div>
<div>    to be sent with your certificate request</div>
<div>    A challenge password []:</div>
<div>    An optional company name []:</div>
<div></div>
<div>Step 3: Remove Passphrase from Key</div>
<div></div>
<div>    One unfortunate side-effect of the pass-phrased private key is that Apache will ask for the pass-phrase each time the web server is started. Obviously this is not necessarily convenient as someone will not always be around to type in the pass-phrase, such as after a reboot or crash. mod_ssl includes the ability to use an external program in place of the built-in pass-phrase dialog, however, this is not necessarily the most secure option either. It is possible to remove the Triple-DES encryption from the key, thereby no longer needing to type in a pass-phrase. If the private key is no longer encrypted, it is critical that this file only be readable by the root user! If your system is ever compromised and a third party obtains your unencrypted private key, the corresponding certificate will need to be revoked. With that being said, use the following command to remove the pass-phrase from the key:</div>
<div></div>
<div>    cp server.key server.key.org</div>
<div>    openssl rsa -in server.key.org -out server.key</div>
<div></div>
<div>    The newly created server.key file has no more passphrase in it.</div>
<div></div>
<div>    -rw-r&#8211;r&#8211; 1 root root 745 Jun 29 12:19 server.csr</div>
<div>    -rw-r&#8211;r&#8211; 1 root root 891 Jun 29 13:22 server.key</div>
<div>    -rw-r&#8211;r&#8211; 1 root root 963 Jun 29 13:22 server.key.org</div>
<div></div>
<div>Step 4: Generating a Self-Signed Certificate</div>
<div></div>
<div>    At this point you will need to generate a self-signed certificate because you either don&#8217;t plan on having your certificate signed by a CA, or you wish to test your new SSL implementation while the CA is signing your certificate. This temporary certificate will generate an error in the client browser to the effect that the signing certificate authority is unknown and not trusted.</div>
<div></div>
<div>    To generate a temporary certificate which is good for 365 days, issue the following command:</div>
<div></div>
<div>    openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</div>
<div>    Signature ok</div>
<div>    subject=/C=CH/ST=Bern/L=Oberdiessbach/O=Akadia AG/OU=Information</div>
<div>    Technology/CN=public.akadia.com/Email=martin dot zahn at akadia dot ch</div>
<div>    Getting Private key</div>
<div></div>
<div>Step 5: Installing the Private Key and Certificate</div>
<div></div>
<div>    When Apache with mod_ssl is installed, it creates several directories in the Apache config directory. The location of this directory will differ depending on how Apache was compiled.</div>
<div></div>
<div>    cp server.crt /usr/local/apache/conf/ssl.crt</div>
<div>    cp server.key /usr/local/apache/conf/ssl.key</div>
<div></div>
<div>Step 6: Configuring SSL Enabled Virtual Hosts</div>
<div></div>
<div>    SSLEngine on</div>
<div>    SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt</div>
<div>    SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key</div>
<div>    SetEnvIf User-Agent &#8220;.*MSIE.*&#8221; nokeepalive ssl-unclean-shutdown</div>
<div>    CustomLog logs/ssl_request_log \</div>
<div>       &#8220;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \&#8221;%r\&#8221; %b&#8221;</div>
<div></div>
<div>Step 7: Restart Apache and Test</div>
<div></div>
<div>    /etc/init.d/httpd stop</div>
<div>    /etc/init.d/httpd stop </div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=110&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/12/27/how-to-create-a-self-signed-ssl-certificate-with-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>Generating a Certificate Signing Request (CSR)</title>
		<link>http://almamunbd.wordpress.com/2009/10/27/generating-a-certificate-signing-request-csr/</link>
		<comments>http://almamunbd.wordpress.com/2009/10/27/generating-a-certificate-signing-request-csr/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:52:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/10/27/generating-a-certificate-signing-request-csr</guid>
		<description><![CDATA[This howto describes the instructions to generate a CSR for your Web site. In this guide I use OpenSSL. Step-1: Create a RSA private key for your Apache server, PEM-formatted: #openssl genrsa -des3 -out .key 2048 It will ask for a pass phrase, provide a pass phrase of your own here. Step-2: Create a Certificate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=109&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This howto describes the instructions to generate a CSR for your Web site. In this guide I use OpenSSL.
<div></div>
<div>
<div><b>Step-1:</b> Create a RSA private key for your Apache server, PEM-formatted:</div>
<div></div>
<div>#openssl genrsa -des3 -out .key 2048</div>
<div></div>
<div>It will ask for a pass phrase, provide a pass phrase of your own here.</div>
<div></div>
<div><b>Step-2:</b> Create a Certificate Signing Request using the RSA private key created above (output will be PEM format):</div>
<div></div>
<div>#openssl req -new -key .key -out .csr</div>
<div></div>
<div>Note that the Common Name field is the field where the domain name should be stated.</div>
<div></div>
<div>If you want to read your generated .csr file, then issue the following command</div>
<div>#openssl req -text -noout -in .csr</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=109&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/10/27/generating-a-certificate-signing-request-csr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to remove a Hidded Network Adaptor from windows pc</title>
		<link>http://almamunbd.wordpress.com/2009/10/04/how-to-remove-a-hidded-network-adaptor-from-windows-pc/</link>
		<comments>http://almamunbd.wordpress.com/2009/10/04/how-to-remove-a-hidded-network-adaptor-from-windows-pc/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 09:46:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/10/04/how-to-remove-a-hidded-network-adaptor-from-windows-pc</guid>
		<description><![CDATA[Step-1: Type the following commands at a command prompt set DEVMGR_SHOW_NONPRESENT_DEVICES=1 Step-2: Open Device Manager enable &#8220;Show Hidden Devices&#8221; from the View Menu bar Step-3: Locate the hidden device and uninstall it. Step-4: Reboot the pc<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=108&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div></div>
<div>Step-1: Type the following commands at a command prompt</div>
<div><span class="Apple-tab-span" style="white-space:pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space:pre;"> </span>set DEVMGR_SHOW_NONPRESENT_DEVICES=1</div>
<div></div>
<div></div>
<div>Step-2: Open Device Manager enable &#8220;Show Hidden Devices&#8221; from the View Menu bar</div>
<div></div>
<div>Step-3: Locate the hidden device and uninstall it.</div>
<div></div>
<div>Step-4: Reboot the pc</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=108&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/10/04/how-to-remove-a-hidded-network-adaptor-from-windows-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to configure sendmail for dns based blacklisting</title>
		<link>http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-for-dns-based-blacklisting/</link>
		<comments>http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-for-dns-based-blacklisting/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 06:40:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-for-dns-based-blacklisting</guid>
		<description><![CDATA[Sendmail can be configured to check and block IP addresses of incoming emails that are found to be listed on one or more DNS blacklists. This can be achieved by configuring sendmail directive dnsbl or DNS blacklists. During the SMTP handshake and conversation of host’s IP address to sendmail SMTP port, sendmail can check the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=107&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>Sendmail can be configured to check and block IP addresses of incoming emails that are found to be listed on one or more DNS blacklists.</div>
<div>This can be achieved by configuring sendmail directive dnsbl or DNS blacklists. During the SMTP handshake and conversation of host’s IP address to sendmail SMTP port,</div>
<div>sendmail can check the connecting hosts for possible black listed IP address from DNS blacklists, lowering down the percentage of incoming SPAM emails.</div>
<div>In this tutorial, i am going to show you how to do that in quick simple and easy steps</div>
<div></div>
<div>Steps on how to configure sendmail to check with DNS Blacklists</div>
<div></div>
<div>Step-1:</div>
<div>Choose which DNS blacklists are active with a high history of reliability for blacklisting IP address. As an example here, </div>
<div>we would be using three DNS blacklists servers</div>
<div></div>
<div>zen.spamhaus.org</div>
<div>list.dsbl.org</div>
<div>combined.njabl.org</div>
<div></div>
<div>You can use your choice of DNS blacklists server sources to suit your needs.</div>
<div></div>
<div>Step-2:</div>
<div>Configure sendmail to use dnsbl sendmail directive. Backup and modify /etc/mail/sendmail.mc and insert the below details</div>
<div></div>
<div>FEATURE(`dnsbl&#8217;, `zen.spamhaus.org&#8217;, `&#8221;550 Refused unsolicited email from &#8221; $`&#8217;&amp;{client_addr} &#8221; &#8211; Request access at http://www.spamhaus.org/query/bl?ip=&#8221; $`&#8217;&amp;{client_addr} &#8216;)dnl</div>
<div>FEATURE(`dnsbl&#8217;, `list.dsbl.org&#8217;, `&#8221;550  Refused unsolicited email from  &#8221; $`&#8217;&amp;{client_addr} &#8221; &#8211; Request access see http://dsbl.org/listing?&#8221;$&amp;{client_addr}&#8217;)dnl</div>
<div>FEATURE(`dnsbl&#8217;, `combined.njabl.org&#8217;, `&#8221;550  Refused unsolicited email from  &#8221; $`&#8217;&amp;{client_addr} &#8221; &#8211; Request access see http://njabl.org/lookup?$&amp;{client_addr}&#8217;)dnl</div>
<div></div>
<div>The above has been customized to reflect the following useful details</div>
<div>a. IP address of the denied computer hosts</div>
<div>b. DNS blacklist server that has been used for checking the denied host</div>
<div>c. Error message with URL site to be shown to computer host for further course of action and why he has been blocked</div>
<div></div>
<div>The above sendmail details would also be reflected to sendmail’s default log file for further statistics and monitoring details.</div>
<div>By default, dnsbl sendmail directive is not included with default sendmail configuration setup.</div>
<div></div>
<div>Step-3:</div>
<div>Recompile and restart sendmail daemon service</div>
<div># m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf</div>
<div># service sendmail restart</div>
<div></div>
<div>Monitoring DNS Blacklist Logs with Sendmail</div>
<div># tailf /var/log/maillog | grep ‘Refused unsolicited’</div>
<div>Counting blocked hosts by Sendmail DNS blacklists</div>
<div># cat /var/log/maillog | grep ‘Refused unsolicited’ | wc -l</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=107&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-for-dns-based-blacklisting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
		<item>
		<title>How to configure Sendmail as Smart Host</title>
		<link>http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-as-smart-host/</link>
		<comments>http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-as-smart-host/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 04:34:00 +0000</pubDate>
		<dc:creator>almamunbd</dc:creator>
				<category><![CDATA[Linux Administration]]></category>

		<guid isPermaLink="false">http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-as-smart-host</guid>
		<description><![CDATA[We can configure sendmail to send emails directly to destination host or email server. but, network traffic congestion, destination location, and connectivity issue sometimes affect successful mail delivery. In this tutorial, we are going to configure Sendmail as a smart email host i am assuming that you have a existing and working Sendmail Setup Configuration [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=106&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>We can configure sendmail to send emails directly to destination host or email server. but, network traffic congestion, destination location, and connectivity issue sometimes affect successful mail delivery.</div>
<div></div>
<div></div>
<div>In this tutorial, we are going to configure Sendmail as a smart email host</div>
<div></div>
<div>i am assuming that you have a existing and working Sendmail Setup</div>
<div></div>
<div>Configuration Steps for Sendmail as Smart Host</div>
<div>To create a smart host from your sendmail, backup and edit your sendmail conf file</div>
<div># vi /etc/mail/sendmail.cdf</div>
<div>Look for sendmail directive line similar below and modify it</div>
<div></div>
<div>dnl define(`SMART_HOST’, `smtp.your.provider’)dnl</div>
<div></div>
<div>Simply replace ’smtp.your.provider’ with your email gateway server and remove the starting and ending ‘dnl’ words from the line . The new sendmail smart host directive will look like</div>
<div></div>
<div>define(`SMART_HOST’, `you-smtp.your.provider’)</div>
<div></div>
<div>Save and exit.</div>
<div>Recompile sendmail configuration file</div>
<div># m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf</div>
<div>Restart sendmail daemon service</div>
<div># service sendmail restart</div>
<div></div>
<div>When an email failed to be delivered, sendmail smart host will act as a fallback failover mechanism on sending failed emails from local sendmail source to smart host STMP server then going to email destination server.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/almamunbd.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/almamunbd.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/almamunbd.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/almamunbd.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/almamunbd.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/almamunbd.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/almamunbd.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/almamunbd.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=almamunbd.wordpress.com&amp;blog=6990037&amp;post=106&amp;subd=almamunbd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://almamunbd.wordpress.com/2009/07/13/how-to-configure-sendmail-as-smart-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3e5df25a779604895691f0da8a63de50?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">almamunbd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
