<?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>My Blog</title>
	<atom:link href="http://mylinuxz.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mylinuxz.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 03 Aug 2009 09:58:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mylinuxz.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My Blog</title>
		<link>http://mylinuxz.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mylinuxz.wordpress.com/osd.xml" title="My Blog" />
	<atom:link rel='hub' href='http://mylinuxz.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Installing internet explorer in linux</title>
		<link>http://mylinuxz.wordpress.com/2009/08/03/installing-internet-explorer-in-linux/</link>
		<comments>http://mylinuxz.wordpress.com/2009/08/03/installing-internet-explorer-in-linux/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 09:58:14 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[new Technologies]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=57</guid>
		<description><![CDATA[installation steps for redhat/fedora linux 1.Install wine packages: #yum install wine This will install the wine meta package containing a standard set of dependencies. Expert users t hat want certain specific wine packages to be installed can choose from the list below: rpm usage wine-capi ISDN support for wine wine-cms Color Management for wine wine-core [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=57&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<p>installation steps for redhat/fedora linux</p>
<p>1.Install wine packages:</p>
<p>	#yum install wine</p>
<p>	This will install the wine meta package containing a standard set of dependencies. Expert users t	hat want certain specific wine packages to be installed can choose from the list below: </p>
<p>rpm usage<br />
<strong>wine-capi </strong><br />
ISDN support for wine<br />
<strong>wine-cms </strong><br />
Color Management for wine<br />
<strong>wine-core </strong><br />
Wine core package<br />
<strong>wine-devel </strong><br />
Wine development environment<br />
<strong>wine-esd </strong><br />
ESD sound support for wine<br />
<strong>wine-jack </strong><br />
JACK sound support for wine<br />
<strong>wine-ldap </strong><br />
LDAP support for wine<br />
<strong>wine-nas </strong><br />
NAS sound support for wine<br />
<strong>wine-tools </strong><br />
Additional wine tools<br />
<strong>wine-twain </strong><br />
Twain support for wine </p>
<p>	Before reporting bugs against wine please make sure your system is up-to-date.<br />
	#yum upgrade<br />
	Also check if a newer version is available in updates-testing<br />
	#yum &#8211;enablerepo=updates-testing upgrade wine<br />
for further info: http://www.winehq.org/download/</p>
<p>2. Install  cabextract</p>
<p>         cabextract is Free Software for extracting Microsoft cabinet files, also called .CAB files, on UNIX or UNIX-like systems. cabextract is distributed under the GPL license. It is based on the portable LGPL libmspack library. cabextract supports all special features and all compression formats of Microsoft cabinet files.  download : http://www.cabextract.org.uk/</p>
<p>	rpm -ivh cabextract-1.2-1.i386.rpm. </p>
<p>	To install from the source code tarball:<br />
	$ gzip -cd &lt; cabextract-1.2.tar.gz | tar xf -<br />
	$ cd cabextract-1.2<br />
	$ ./configure<br />
	$ make<br />
	# make install<br />
3.Install adobe flash player plugins</p>
<p>	download &amp; install adobe-release-i386-1.0-1.noarch.rpm<br />
# rpm -uvh adobe-release-i386-1.0-1.noarch.rpm<br />
# yum install flash-plugin</p>
<p>4.install ies4linux<br />
	#wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
	#tar zxvf ies4linux-latest.tar.gz<br />
	#cd ies4linux-*<br />
#/ies4linux</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=57&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/08/03/installing-internet-explorer-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>What do you when the monitor goes blank</title>
		<link>http://mylinuxz.wordpress.com/2009/01/05/what-do-you-when-the-monitor-goes-blank/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/05/what-do-you-when-the-monitor-goes-blank/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 10:53:26 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=55</guid>
		<description><![CDATA[In Linux, we have found that after some time, the monitor goes into power-saving mode, ie., it goes blank To modify this setting, you need to run the following command: # xset dpms 1800 2400 3600 this indicates that the monitor screen goes blank after 30 minutes(1800 seconds),goes into power saving mode after 40 minutes(2400 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=55&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Linux, we have found that after some time, the monitor goes into power-saving mode, ie., it goes blank To modify this setting, you need to run the following command:</p>
<p>	# xset dpms 1800 2400 3600</p>
<p>        this indicates that the monitor screen goes blank after 30 minutes(1800 seconds),goes into power saving mode after 40 minutes(2400 seconds) and switches off after 60 minutes(3600 seconds).</p>
<p>You can also stop this feature<br />
	#xset s off</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=55&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/05/what-do-you-when-the-monitor-goes-blank/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Splitting and merging large files</title>
		<link>http://mylinuxz.wordpress.com/2009/01/05/splitting-and-merging-large-files/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/05/splitting-and-merging-large-files/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 10:51:54 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=53</guid>
		<description><![CDATA[You can split a big file of smaller parts of 100MB each, as follows: # split -b 100m bigfile parts_ to join them in a linux machine,use # cat parts_* &#62; bigfile<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=53&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can split a big file of smaller parts of 100MB each, as follows:</p>
<p>	# split -b 100m bigfile parts_</p>
<p>	to join them in a linux machine,use</p>
<p>	# cat parts_* &gt; bigfile</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=53&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/05/splitting-and-merging-large-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Find and Replace strings in any file</title>
		<link>http://mylinuxz.wordpress.com/2009/01/05/find-and-replace-strings-in-any-file/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/05/find-and-replace-strings-in-any-file/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 10:49:32 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=50</guid>
		<description><![CDATA[1) if you want to find a string with the name “jeva”, &#38; replace with “jeeva”,you can use # sed -i s/expression/replacement/g file.txt example: # sed -i s/jeva/jeeva/g mytestfile where i-insert, s-substitution, g-space 2)if you want to take a backup before replacing # sed -ibackup s/jeva/jeeva/g mytestfile here the changes are made in the mytestfile, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=50&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>        1) if you want to find a string with the name “jeva”, &amp; replace with “jeeva”,you can use</p>
<p>	# sed -i s/expression/replacement/g file.txt<br />
	example:<br />
	# sed -i s/jeva/jeeva/g mytestfile<br />
 	where i-insert, s-substitution, g-space</p>
<p>2)if you want to take a backup before replacing</p>
<p>	# sed -ibackup s/jeva/jeeva/g mytestfile<br />
	here the changes are made in the mytestfile, original content will be in the mytestfilebackup<br />
	file.if you use “i” option you can give any name for backup option.</p>
<p>	Example<br />
	# sed -iback s/jeva/jeeva/g mytestfile<br />
		it will create mytestfileback as a backup file<br />
	# sed -ib s/jeva/jeeva/g mytestfile<br />
		it will create mytestfileb as a backup file</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=50&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/05/find-and-replace-strings-in-any-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>PDFs of man pages</title>
		<link>http://mylinuxz.wordpress.com/2009/01/05/pdfs-of-man-pages/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/05/pdfs-of-man-pages/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 10:45:29 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=46</guid>
		<description><![CDATA[Convert the man pages to PDF format: man -t &#124; ps2pdf &#8211; &#62; .pdf example: man -t sed &#124; ps2pdf &#8211; &#62; sed.pdf<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=46&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Convert the man pages to PDF format:<br />
man -t    | ps2pdf &#8211; &gt;  .pdf</p>
<p>example:</p>
<p>man -t sed | ps2pdf &#8211; &gt; sed.pdf</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=46&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/05/pdfs-of-man-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Securing the files</title>
		<link>http://mylinuxz.wordpress.com/2009/01/05/securing-the-files/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/05/securing-the-files/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 08:35:21 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=44</guid>
		<description><![CDATA[his tip is about two powerful utilities that ensure the security of your data. Let us assume that you have a whole lot of files that you want to protect against mischievous tampering or alteration. 1)With the GPG program you can digitally &#8216;sign&#8217; files, &#38; ensure tamper detection easily. With GPG you can &#8216;sign&#8217; only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=44&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>his tip is about two powerful utilities that ensure the security of your data. Let us assume that you have a whole lot of files that you want to protect against mischievous tampering or alteration. </p>
<p>1)With the GPG program you can digitally &#8216;sign&#8217; files, &amp; ensure tamper detection easily. With GPG you can &#8216;sign&#8217; only one file at a time.<br />
2)With md5 you can create checksums of several files at a time (using the md5sum program).But if intruders can tamper with the file,they can also tamper with the md5 checksum, &amp; destroy all traces of their mischief. </p>
<p>Any modification to any of the files is detected by verifying the md5 checksum. Any modification to the md5 checksum file gets detected by verification using GPG, the digital signature of the checksum file.</p>
<p>Select some files<br />
 # ls -l<br />
-rw-r&#8211;r&#8211; 1 root root        0 Jan  5 07:21 testfile1</p>
<p>-rw-r&#8211;r&#8211; 1 root root        0 Jan  5 07:21 testfile2</p>
<p>-rw-r&#8211;r&#8211; 1 root root        0 Jan  5 07:21 testfile3</p>
<p>step: 1<br />
create the md5sums to fhat files &amp; send the output to md5sum_file<br />
 # md5sum testfile* &gt;&gt; mdsum_file</p>
<p>mdsum_file contains md5sum of that 3 files. that entries are</p>
<p>d41d8cd98f00b204e9800998ecf8427e  testfile1</p>
<p>d41d8cd98f00b204e9800998ecf8427e  testfile2</p>
<p>d41d8cd98f00b204e9800998ecf8427e  testfile3</p>
<p> first column is the md5sum of the file named in the second column.</p>
<p>Step 2:<br />
Check the md5sums of that  files  :</p>
<p> # md5sum -c md5sum_file<br />
output are:<br />
	testfile1: ok<br />
	testfile2: ok<br />
	testfile3: ok </p>
<p>Now change one of the files(say testfile1) &amp; check<br />
 # md5sum -c md5sum_file<br />
output file:<br />
	testfile1: failed<br />
	testfile2: ok<br />
	testfile3: ok</p>
<p>So alterations made to any file can be spotted easily by using md5sum.</p>
<p>Step 3:<br />
Now we need to protect this md5sum_file. The cunning criminals who tampered with your files can also tamper with the md5sum_file. So now we use GPG(an encryption tool) to digitally sign the md5sum_file.<br />
The GPG signature is done using a secret key known only to you. You can learn about GPG at http://www.gnupg.org/ .  The digital signature consists of an encrypted form of the hash digest of the file,which is signed. Any change to the file will render its digital signature ineffective. You can verify the digital signature using the public key of the person who signed the file. Thus any change to the md5sum_file will get noticed on verification of its digital signature.</p>
<p>For instance md5sum does not go into directories. following command will help you</p>
<p>find $1 -type f -print0 | xargs -0 md5sum -b &gt; md5file.md5</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=44&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/05/securing-the-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Masquerading</title>
		<link>http://mylinuxz.wordpress.com/2009/01/05/masquerading/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/05/masquerading/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 07:48:55 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[mailserver]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=42</guid>
		<description><![CDATA[If you want your mail to appear to come from user@mysite.com and not user@bigboy.mysite.com, then you have two choices: Configure your email client, such as Outlook Express, to set your email address to user@mysite.com. (I’ll explain this in the “Configuring Your POP Mail Server” section.). Set up masquerading to modify the domain name of all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=42&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want your mail to appear to come from user@mysite.com and not user@bigboy.mysite.com, then you have two choices:<br />
Configure your email client, such as Outlook Express, to set your email address to user@mysite.com. (I’ll explain this in the “Configuring Your POP Mail Server” section.).<br />
Set up masquerading to modify the domain name of all traffic originating from and passing trough your mail server.<br />
Configuring masquerading<br />
In the DNS configuration, you made bigboy the mail server for the domain my-site.com. You now have to tell bigboy in the sendmail configuration file sendmail.mc that all outgoing mail originating on bigboy should appear to be coming from my-site.com; if not, based on our settings in the /etc/hosts file, mail will appear to come from mail.my-site.com. This isn’t terrible, but you may not want your Web site to be remembered with the word “mail” in front of it. In other words you may want your mail server to handle all email by assigning a consistent return address to all outgoing mail, no matter which server originated the email.<br />
You can solve this by editing your sendmail.mc configuration file and adding some masquerading commands and directives:<br />
FEATURE(always_add_domain)dnl<br />
FEATURE(`masquerade_entire_domain’)dnl<br />
FEATURE(`masquerade_envelope’)dnl<br />
FEATURE(`allmasquerade’)dnl<br />
MASQUERADE_AS(`my-site.com’)dnl<br />
MASQUERADE_DOMAIN(`my-site.com.’)dnl<br />
MASQUERADE_DOMAIN(localhost)dnl<br />
MASQUERADE_DOMAIN(localhost.localdomain)dnl<br />
The result is that:<br />
The MASQUERADE_AS directive makes all mail originating on bigboy appear to come from a server within the domain my-site.com by rewriting the email header.<br />
The MASQUERADE_DOMAIN directive makes mail relayed via bigboy from all machines in the another-site.com and localdomain domains appear to come from the MASQUERADE_AS domain of my-site.com. Using DNS, sendmail checks the domain name associated with the IP address of the mail relay client sending the mail to help it determine whether it should do masquerading or not.<br />
FEATURE masquerade_entire_domain makes sendmail masquerade servers named *my-site.com, and *another-site.com as my-site.com. In other words, mail from sales.my-site.com would be masqueraded as my-site.com. If this wasn’t selected, then only servers named my-site.com and my-othersite.com would be masqueraded. Use this with caution when you are sure you have the necessary authority to do this.<br />
FEATURE allmasquerade makes sendmail rewrite both recipient addresses and sender addresses relative to the local machine. If you cc: yourself on an outgoing mail, the other recipient sees a cc: to an address he knows instead of one on localhost.localdomain.<br />
Note: Use FEATURE allmasquerade with caution if your mail server handles email for many different domains and the mailboxes for the users in these domains reside on the mail server. The allmasquerade statement causes all mail destined for these mailboxes to appear to be destined for users in the domain defined in the MASQUERADE_AS statement. In other words, if MASQUERADE_AS is my-site.com and you use allmasquerade, then mail for peter@another-site.com enters the correct mailbox but sendmail rewrites the To:, making the e-mail appear to be sent to peter@my-ste.com originally.<br />
FEATURE always_add_domain always masquerades email addresses, even if the mail is sent from a user on the mail server to another user on the same mail server.<br />
FEATURE masquerade_envelope rewrites the email envelope just as MASQUERADE_AS rewrote the header.<br />
Masquerading is an important part of any mail server configuration as it enables systems administrators to use multiple outbound mail servers, each providing only the global domain name for a company and not the fully qualified domain name of the server itself. All email correspondence then has a uniform email address format that complies with the company’s brand marketing policies.<br />
Note: E-mail clients, such as Outlook Express, consider the To: and From: statements as the e-mail header. When you choose Reply or Reply All in Outlook Express, the program automatically uses the To: and From: in the header. It is easy to fake the header, as spammers often do; it is detrimental to e-mail delivery, however, to fake the envelope.<br />
The e-mail envelope contains the To: and From: used by mailservers for protocol negotiation. It is the envelope’s From: that is used when e-mail rejection messages are sent between mail servers.<br />
Testing Masquerading<br />
The best way of testing masquerading from the Linux command line is to use the “mail -v username” command. I have noticed that “sendmail -v username” ignores masquerading altogether. You should also tail the /var/log/maillog file to verify that the masquerading is operating correctly and check the envelope and header of test email received by test email accounts.<br />
Other Masquerading Notes<br />
By default, user “root” will not be masqueraded. To remove this restriction use:<br />
EXPOSED_USER(`root’)dnl<br />
command in /etc/mail/sendmail.mc. You can comment this out if you like with a “dnl” at the beginning of the line and running the sendmail start script.<br />
Using Sendmail to Change the Sender’s Email Address<br />
Sometimes masquerading isn’t enough. At times you may need to change not only the domain of the sender but also the username portion of the sender’s e-mail address. For example, perhaps you bought a program for your SOHO office that sends out notifications to your staff, but the program inserts its own address as sender’s address, not that of the IT person.<br />
Web-based CGI scripts tend to run as user apache and, therefore, send mail as user apache too. Often you won’t want this, not only because apache’s e-mail address may not be a suitable, but also because some anti-spam programs check to ensure that the From:, or source e-mail address, actually exists as a real user. If your virtusertable file allows e-mail to only predefined users, then queries about the apache user will fail, and your valid e-mail may be classified as being spam.<br />
With sendmail, you can change both the domain and username on a case-by-case basis using the genericstable feature:<br />
1) Add these statements to your /etc/mail/sendmail.mc file to activate the feature:<br />
FEATURE(`genericstable’,`hash -o /etc/mail/genericstable.db’)dnl<br />
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains’)dnl<br />
2) Create a /etc/mail/generics-domains file that is just a list of all the domains that should be inspected. Make sure the file includes your server’s canonical domain name, which you can obtain using the command:<br />
sendmail -bt -d0.1 &lt;/dev/null<br />
Here is a sample /etc/mail/generics-domains file:<br />
my-site.com<br />
another-site.com<br />
bigboy.my-site.com<br />
3) Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is<br />
linux-username username@new-domain.com<br />
Here is an example:<br />
alert security-alert@my-site.com<br />
peter urgent-message@my-site.com<br />
apache mailer@my-site.com<br />
4) Run the sendmail restart script from the beginning of the article and then test.<br />
Your e-mails from linux-username should now appear to come from username@new-domain.com.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=42&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/05/masquerading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtual LAN configuration</title>
		<link>http://mylinuxz.wordpress.com/2009/01/02/virtual-lan-configuration/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/02/virtual-lan-configuration/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 07:53:14 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=40</guid>
		<description><![CDATA[You can create a VLAN on Linux by executing the following commands: vconfig add ifconfig . netmask ifconfig . up For example: vconfig add eth0 6 ifconfig eth0.5 192.168.1.6 netmask 255.255.255.0 ifconfig eth0.6 up You can view the traffic of that VLAN by executing the following command: cat /proc/net/vlan/eth0.6 like you can configure 2048 VLANs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=40&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can create a VLAN  on Linux by executing the following commands:<br />
vconfig  add<br />
ifconfig .  netmask<br />
 ifconfig . up</p>
<p>For example:<br />
vconfig add eth0 6<br />
ifconfig eth0.5 192.168.1.6 netmask 255.255.255.0<br />
ifconfig eth0.6 up</p>
<p>You can view the traffic of that VLAN by executing the following command:</p>
<p>cat /proc/net/vlan/eth0.6</p>
<p>like you can configure 2048 VLANs for one physical interface.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=40&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/02/virtual-lan-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>Create your own Live CD ISO</title>
		<link>http://mylinuxz.wordpress.com/2009/01/02/create-your-own-live-cd-iso/</link>
		<comments>http://mylinuxz.wordpress.com/2009/01/02/create-your-own-live-cd-iso/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 06:35:52 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[general tips]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=34</guid>
		<description><![CDATA[Go to this url: http://custom.nimblex.net The base distro size is 200 mb,which is shown as a green bar on the top of the NimbleX welcome Live cd generator page, select type of configuration software selection walpapper selection user creation Remember that custom NimbleX generates a cd-size distro.Hence,700mb of software is all you get. The final [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=34&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Go to this url:<br />
  http://custom.nimblex.net</p>
<p>        The base distro size is 200 mb,which is shown as a green bar on the top of the NimbleX welcome Live cd generator page,<br />
select<br />
    type of configuration<br />
    software selection<br />
    walpapper selection<br />
    user creation</p>
<p>Remember that custom NimbleX generates a cd-size distro.Hence,700mb of software is all you get.</p>
<p>The final screen after the language selection is a summary of all the choices made. It also enables you to go back &amp; change your selections if required.</p>
<p>Finally, the ISO is created &amp; it&#8217;s time to download. This ISO image remains on the server for 12 hours. So you must finish downloading within the allocated time.</p>
<p> type this command in terminal &amp; download:<br />
wget -c http://custom.nimblex.net/data/generated-iso/NimbleX-34197Crp.iso</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=34&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2009/01/02/create-your-own-live-cd-iso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
		<item>
		<title>SPAM</title>
		<link>http://mylinuxz.wordpress.com/2008/12/24/spam/</link>
		<comments>http://mylinuxz.wordpress.com/2008/12/24/spam/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 12:58:08 +0000</pubDate>
		<dc:creator>venkateshkumar</dc:creator>
				<category><![CDATA[mailserver]]></category>

		<guid isPermaLink="false">http://mylinuxz.wordpress.com/?p=32</guid>
		<description><![CDATA[Unsolicited Commercial Email (UCE or SPAM) can be annoying, time consuming to delete and in some cases dangerous when they contain viruses and worms. Fortunately there are ways you can use your mail server to combat SPAM. Using Public SPAM Blacklists With Sendmail There are many publicly available lists of known open mail relay servers [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=32&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Unsolicited Commercial Email (UCE or SPAM) can be annoying, time consuming to delete and in some cases dangerous when they contain viruses and worms. Fortunately there are ways you can use your mail server to combat SPAM. </p>
<p>Using Public SPAM Blacklists With Sendmail<br />
There are many publicly available lists of known open mail relay servers and spam generating mail servers on the Internet. Some are maintained by volunteers, others are managed by public companies, but in all cases they rely heavily on complaints from spam victims. Some spam blacklists simply try to determine whether the e-mail is coming from a legitimate IP address.<br />
The IP addresses of offenders usually remain on the list for six months to two years. In some cases, to provide additional pressure on the spammers, the blacklists include not only the offending IP address but also the entire subnet or network block to which it belongs. This prevents the spammers from easily switching their servers&#8217; IP addresses to the next available ones on their networks. Also, if the spammer uses a public data center, it is possible that their activities could also cause the IP addresses of legitimate e-mailers to be black listed too. It is hoped that these legitimate users will pressure the data center&#8217;s management to evict the spamming customer.<br />
You can configure sendmail to use its dnsbl feature to both query these lists and reject the mail if a match is found. Here are some sample entries you can add to your /etc/sendmail.mc file; they should all be on one line.<br />
RFC-Ignorant: A valid IP address checker.<br />
FEATURE(`dnsbl&#8217;, `ipwhois.rfc-ignorant.org&#8217;,`&#8221;550 Mail from &#8221; $&#8221; refused. Rejected for bad WHOIS info on IP of your SMTP server &#8211; see http://www.rfc-ignorant.org/&#8221;&#8216;)<br />
Easynet: An open proxy list.<br />
FEATURE(`dnsbl&#8217;, `proxies.blackholes.easynet.nl&#8217;, `&#8221;550 5.7.1 ACCESS DENIED to OPEN PROXY SERVER &#8220;$&#8221; by easynet.nl DNSBL  (http://proxies.blackholes.easynet.nl/errors.html)&#8221;&#8216;, `&#8217;)dnl<br />
Spamcop: A spammer blacklist.<br />
FEATURE(`dnsbl&#8217;, `bl.spamcop.net&#8217;, `&#8221;450 Mail from &#8221; $`&#8217;&#8221; refused &#8211; see http://spamcop.net/bl.shtml&#8221;&#8216;)<br />
Spamhaus: A spammer blacklist.<br />
FEATURE(`dnsbl&#8217;,`sbl.spamhaus.org&#8217;,`Rejected &#8211; see http://spamhaus.org/&#8217;)dnl<br />
Be sure to visit the URLs listed to learn more about the individual services.<br />
Spamassassin<br />
Once sendmail receives an e-mail message, it hands the message over to procmail, which is the application that actually places the e-mail in user mailboxes on the mail server. You can make procmail temporarily hand over control to another program, such as a spam filter. The most commonly used filter is spamassassin.<br />
spamassassin doesn&#8217;t delete spam, it merely adds the word &#8220;spam&#8221; to the beginning of the subject line of suspected spam e-mails. You can then configure the e-mail filter rules in Outlook Express or any other mail client to either delete the suspect message or store it in a special Spam folder. </p>
<p>Downloading And Installing Spamassassin<br />
Most RedHat and Fedora Linux software products are available in the RPM format. When searching for the RPMs, remember that the filename usually starts with the software package name and is followed by a version number, as in spamassassin-2.60-2.i386.rpm.<br />
Starting Spamassassin<br />
You can use the chkconfig command to get spamassassin configured to start at boot:<br />
[root@bigboy tmp]# chkconfig &#8211;level 35 spamassassin on<br />
To start, stop, and restart spamassassin after booting:<br />
[root@bigboy tmp]# service spamassassin start<br />
[root@bigboy tmp]# service spamassassin stop<br />
[root@bigboy tmp]# service spamassassin restart</p>
<p>Configuring procmail for spamassassin<br />
The /etc/procmailrc file is used by procmail to determine the procmail helper programs that should be used to filter mail. This file isn&#8217;t created by default.<br />
spamassassin has a template you can use called /etc/mail/spamassassin/spamassassin-spamc.rc. Copy the template to the /etc directory.<br />
[root@bigboy tmp]# cp /etc/mail/spamassassin/spamassassin-spamc.rc /etc/procmailrc</p>
<p>Configuring Spamassassin<br />
The spamassassin configuration file is named /etc/mail/spamassassin/local.cf. A full listing of all the options available in the local.cf file can be found in the Linux man pages using the following command:<br />
[root@bigboy tmp]# man Mail::SpamAssassin::Conf<br />
You can customize this fully commented sample configuration file to meet your needs.<br />
###################################################################<br />
# See &#8216;perldoc Mail::SpamAssassin::Conf&#8217; for<br />
# details of what can be adjusted.<br />
###################################################################</p>
<p>#<br />
# These values can be overridden by editing<br />
# ~/.spamassassin/user_prefs.cf (see spamassassin(1) for details)<br />
#</p>
<p># How many hits before a message is considered spam. The lower the<br />
# number the more sensitive it is.</p>
<p>required_hits           5.0</p>
<p># Whether to change the subject of suspected spam (1=Yes, 0=No)<br />
rewrite_subject         1</p>
<p># Text to prepend to subject if rewrite_subject is used<br />
subject_tag             *****SPAM*****</p>
<p># Encapsulate spam in an attachment (1=Yes, 0=No)<br />
report_safe             1</p>
<p># Use terse version of the spam report (1=Yes, 0=No)<br />
use_terse_report        0</p>
<p># Enable the Bayes system (1=Yes, 0=No)<br />
use_bayes               1</p>
<p># Enable Bayes auto-learning (1=Yes, 0=No)<br />
auto_learn              1</p>
<p># Enable or disable network checks (1=Yes, 0=No)<br />
skip_rbl_checks         0<br />
use_razor2              1<br />
use_dcc                 1<br />
use_pyzor               1</p>
<p># Mail using languages used in these country codes will not be marked<br />
# as being possibly spam in a foreign language.<br />
# &#8211; english</p>
<p>ok_languages            en</p>
<p># Mail using locales used in these country codes will not be marked<br />
# as being possibly spam in a foreign language.</p>
<p>ok_locales              en<br />
Be sure to restart spamassassin for your changes to take effect. </p>
<p>Testing spamassassin<br />
You can test the validity of your local.cf file by using the spamassassin command with the &#8211;lint option. This will list any syntax problems that may exist. In this example two errors were found and corrected before the command was run again.<br />
[root@bigboy tmp]# spamassassin -d &#8211;lint<br />
Created user preferences file: /root/.spamassassin/user_prefs<br />
config: SpamAssassin failed to parse line, skipping: use_terse_report        0<br />
config: SpamAssassin failed to parse line, skipping: auto_learn              1<br />
lint: 2 issues detected.  please rerun with debug enabled for more information.<br />
[root@bigboy tmp]# vi /etc/mail/spamassassin/local.cf<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
[root@bigboy tmp]# spamassassin -d &#8211;lint<br />
[root@bigboy tmp]</p>
<p>Startup spamassassin<br />
The final steps are to configure spamassassin to start on booting and then to start it.<br />
[root@bigboy tmp]# chkconfig spamassassin on<br />
[root@bigboy tmp]# service spamassassin start<br />
Starting spamd: [  OK  ]<br />
[root@bigboy tmp]#<br />
Tuning spamassassin<br />
You can tune the sensitivity of spamassassin to the type of spam you receive by adjusting the required_hits value in the local.cf file. This can be made easier by viewing the score spamassassin assigns a message in its header. In most GUI based email clients this can be done by looking at the email&#8217;s properties. In this case, a Nigerian email scam spam was detected and given a score of 20.1 and marked as spam.<br />
X-Spam-Status: Yes, score=20.1 required=2.1 tests=DEAR_FRIEND,<br />
        DNS_FROM_RFC_POST,FROM_ENDS_IN_NUMS,MSGID_FROM_MTA_HEADER,NA_DOLLARS,<br />
        NIGERIAN_BODY1,NIGERIAN_BODY2,NIGERIAN_BODY3,NIGERIAN_BODY4,<br />
        RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SBL,RISK_FREE,SARE_FRAUD_X3,<br />
        SARE_FRAUD_X4,SARE_FRAUD_X5,US_DOLLARS_3 autolearn=failed<br />
        version=3.0.4<br />
X-Spam-Report:<br />
        *  0.5 FROM_ENDS_IN_NUMS From: ends in numbers<br />
        *  0.2 RISK_FREE BODY: Risk free.  Suuurreeee&#8230;.<br />
        *  0.4 US_DOLLARS_3 BODY: Mentions millions of $ ($NN,NNN,NNN.NN)<br />
        *  0.8 DEAR_FRIEND BODY: Dear Friend? That&#8217;s not very dear!<br />
        *  2.2 NA_DOLLARS BODY: Talks about a million North American dollars<br />
        *  1.8 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net<br />
        *      [Blocked - see ]<br />
        *  1.1 RCVD_IN_SBL RBL: Received via a relay in Spamhaus SBL<br />
        *      [213.185.106.3 listed in sbl-xbl.spamhaus.org]<br />
        *  1.4 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org<br />
        *  1.9 NIGERIAN_BODY3 Message body looks like a Nigerian spam message 3+<br />
        *  2.9 NIGERIAN_BODY1 Message body looks like a Nigerian spam message 1+<br />
        *  1.4 NIGERIAN_BODY4 Message body looks like a Nigerian spam message 4+<br />
        *  1.7 SARE_FRAUD_X5 Matches 5+ phrases commonly used in fraud spam<br />
        *  0.5 NIGERIAN_BODY2 Message body looks like a Nigerian spam message 2+<br />
        *  1.7 SARE_FRAUD_X3 Matches 3+ phrases commonly used in fraud spam<br />
        *  1.7 SARE_FRAUD_X4 Matches 4+ phrases commonly used in fraud spam<br />
        *  0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay<br />
Limiting your spam fighting efforts to the required_hits value isn&#8217;t usually adequate. You will probably need additional spamassassin tools to be more selective and accurate in your tests. This will be covered next.<br />
The Rules du Jour Spamassassin Tool<br />
There are groups of open source developers that create and update customized spamassassin configuration files that make the tool even more effective. They have even made life easier for the harried systems administrator by creating a script named rules_du_jour that, on a daily basis, will automatically download the rules you select.<br />
The rules_du_jour script can be downloaded from its website at http://www.exit0.us/index.php?pagename=RulesDuJour which has easy to understand installation instructions, but there are some caveats which need to be explained.<br />
The /etc/rulesdujour/config Configuration File<br />
Rules du Jour&#8217;s configuration file located at /etc/rulesdujour/config has four variables that need to be defined. Each must be enclosed in quotation marks.<br />
The first is SA_DIR, which defines the directory in which you have installed spamassassin. The second is MAIL_ADDRESS which defines the address to which Rules du Jour sends its status messages. The third, SA_RESTART, is the command to be used to restart spamassassin each time the rules_du_jour script is run.<br />
The final parameter, TRUSTED_RULESETS, is the most complicated. It is a space delimited list of all the rules you wish to use. A full list can be found on the Rules du Jour website but there isn&#8217;t much explanation about what they do and how sensitive each one is to marking email as being spam. Fortunately, you can get this information from the &#8220;Rules&#8221; section of the Rules Emporium site (http://www.rulesemporium.com/).<br />
It is important to read the notes for each rule they sometimes have sub-groupings of rules that may more suitable for your needs. For example, the SARE_HTML rule includes all the rules in SARE_HTML0, SARE_HTML1, SARE_HTML2, SARE_HTML3 and SARE_HTML_ENG, but according to Rules Emporium, only SARE_HTML0 has a low degree of false positives.<br />
Here is a sample of a /etc/rulesdujour/config configuration file that has taken advantage of some of the more popular and reliable rules.<br />
#<br />
# File: /etc/rulesdujour/config<br />
#</p>
<p>#<br />
# Script information can be found at:<br />
#<br />
# http://www.exit0.us/index.php?pagename=RulesDuJour<br />
#</p>
<p>SA_DIR=&#8221;/etc/mail/spamassassin&#8221;<br />
MAIL_ADDRESS=&#8221;rulesdujour_update@my-web-site.org&#8221;<br />
SA_RESTART=&#8221;service spamd restart&#8221;<br />
TRUSTED_RULESETS=&#8221;TRIPWIRE SARE_ADULT SARE_OBFU SARE_URI0 SARE_URI1 ANTIDRUG SARE_SPOOF SARE_BAYES_POISON_NXM SARE_OEM SARE_RANDOM SARE_FRAUD SARE_HEADER0 SARE_HEADER2 SARE_HTML0 SARE_SPECIFIC SARE_BML SARE_GENLSUBJ0 SARE_GENLSUBJ2 SARE_WHITELIST&#8221;<br />
Note: The Rules du Jour and Rules Emporium sites use the terms &#8220;spam&#8221; and &#8220;ham&#8221; frequently. Spam is unwanted email, while ham is the opposite.<br />
Installing Rules du Jour<br />
Installation is fairly simple, here is how it is done:<br />
1) Download the rules_du_jour script with the wget command, make it executable and place it in the /usr/local/bin directory.<br />
[root@bigboy tmp]# wget http://sandgnat.com/rdj/rules_du_jour<br />
&#8211;10:58:27&#8211;  http://sandgnat.com/rdj/rules_du_jour<br />
           =&gt; `rules_du_jour&#8217;<br />
Resolving sandgnat.com&#8230; 208.42.148.125<br />
Connecting to sandgnat.com|208.42.148.125|:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 200 OK<br />
Length: 63,448 (62K) [application/octet-stream]<br />
10:58:28 (79.59 KB/s) &#8211; `rules_du_jour&#8217; saved [63448/63448]</p>
<p>[root@bigboy tmp]# chmod 700 rules_du_jour<br />
[root@bigboy tmp]# mv rules_du_jour /usr/local/bin</p>
<p>2) Create and edit your /etc/rulesdujour/config configuration file.<br />
[root@bigboy tmp]# mkdir -p /etc/rulesdujour<br />
[root@bigboy tmp]# vi /etc/rulesdujour/config<br />
3) Run the rules_du_jour script, and then run spamassassin in lint mode to test for errors. There should be none.<br />
[root@bigboy tmp]# /usr/local/bin/rules_du_jour<br />
exec: curl -w %{http_code} &#8211;compressed -O -R -s -S -z /etc/mail/spamassassin/RulesDuJour/rules_du_jour http://sandgnat.com/rdj/rules_du_jour 2&gt;&amp;1<br />
curl_output: 304</p>
<p>&#8212;&#8212; TRIPWIRE &#8212;&#8212;<br />
RULESET_NAME=TRIPWIRE<br />
INDEX=0<br />
CF_URL=http://www.rulesemporium.com/rules/99_FVGT_Tripwire.cf<br />
&#8230;<br />
&#8230;<br />
&#8230;</p>
<p>/^\s*#.*(vers?|version|rev|revision)[:\.\s]*[0-9]/i;&#8217; | sort | tail -n 1<br />
CF_MUNGE_SCRIPT=<br />
[root@bigboy tmp]# spamassassin -d &#8211;lint<br />
[root@bigboy tmp]#</p>
<p>4) The final step is to add /usr/local/bin/rules_du_jour to your cron table. In this case, I have just created the file /etc/cron.d/rulesdujour with the following entry:<br />
#<br />
# Get latest SpamAssassin rules. Runs at 12:23AM every day.<br />
#<br />
0 23 * * *      root    /usr/local/bin/rules_du_jour<br />
5) You may have to restart crond to get this configuration to become active<br />
[root@bigboy tmp]# service crond restart<br />
Stopping crond: [  OK  ]<br />
Starting crond: [  OK  ]<br />
[root@bigboy tmp]#<br />
My experience with Rules du Jour has been very good. Without it, I could only set the required_hits value in the /etc/mail/spamassassin/local.cf file to a relatively insensitive value of 4.5. Anything lower would create too many false positives and valuable mail would be marked as being suspicious. Rules du Jour selectively raises the score of specific types of spam such that I can make the required_hits setting have a very sensitive value of 2.1 with very few false positives.<br />
Using Greylisting<br />
To maximize the effect of their efforts, spammers try to send email as quickly as possible. They take note of the emails that bounce, so that they know which addresses to remove from their lists to make their next mailing more efficient.<br />
When mail servers receive mail too rapidly for them to handle, they can ask the sender to try again later. Spammers often view resending emails to valid addresses as a waste of computing time that could be used to send mail to brand new addresses that belong to faster mail servers. Emails that need to be resent are usually abandoned.<br />
Some emails need reliable delivery to be effective and the senders of these types of messages are willing to resend. These include bank statement notifications, ecommerce purchase confirmations, and subscription newsletters.<br />
In a previous section we saw where spamassassin always rejects emails from blacklisted sources. With greylisting, sources are just asked to resend. One of the most popular greylist mail filter (milter) products is the milter-greylist package which also works seamlessly with spamassassin. It is easy to use and I’ll discuss how can be configured on your mail server.<br />
Downloading and Installing milter-greylist<br />
Installing milter-greylist is relatively simple, but there are a lot of steps. Here’s how to do it:<br />
1. You will have to first install the sendmail-devel software package. Most RedHat and Fedora Linux software products are available in the RPM format. When searching for the RPMs, remember that the filename usually starts with the software package name and is followed by a version number, as in sendmail-devel-8.13.1-2.rpm.<br />
2. The next step is to download the milter-greylist tar file which you can download from the milter’s website at http://projects.puremagic.com/greylisting/. In this case we download the version 2.0.2 file using the wget command.<br />
[root@bigboy tmp]# wget ftp://ftp.espci.fr/pub/milter-greylist/milter-greylist-2.0.2.tgz<br />
&#8211;10:48:06&#8211;  ftp://ftp.espci.fr/pub/milter-greylist/milter-greylist-2.0.2.tgz<br />
           =&gt; `milter-greylist-2.0.2.tgz&#8217;<br />
Resolving ftp.espci.fr&#8230; 193.54.82.47<br />
Connecting to ftp.espci.fr|193.54.82.47|:21&#8230; connected.<br />
Logging in as anonymous &#8230; Logged in!<br />
=&gt; SYST &#8230; done.    =&gt; PWD &#8230; done.<br />
=&gt; TYPE I &#8230; done.  =&gt; CWD /pub/milter-greylist &#8230; done.<br />
=&gt; PASV &#8230; done.    =&gt; RETR milter-greylist-2.0.2.tgz &#8230; done.<br />
Length: 116,459 (114K) (unauthoritative)<br />
10:48:20 (70.79 KB/s) &#8211; `milter-greylist-2.0.2.tgz&#8217; saved [116459]<br />
[root@bigboy tmp]#<br />
3. Now that you have the file, you’ll have to extract the contents using the tar command.<br />
[root@bigboy tmp]# tar -xzvf milter-greylist-2.0.2.tgz<br />
milter-greylist-2.0.2<br />
milter-greylist-2.0.2/ChangeLog<br />
milter-greylist-2.0.2/Makefile<br />
milter-greylist-2.0.2/Makefile.in<br />
milter-greylist-2.0.2/README<br />
…<br />
…<br />
…<br />
milter-greylist-2.0.2/spf.h<br />
milter-greylist-2.0.2/sync.c<br />
milter-greylist-2.0.2/sync.h<br />
[root@bigboy tmp]#<br />
4. Now enter the newly created milter-greylist directory and compile the package with the configure command. Take a look at the README file before doing this as there may be some additional options you require, but for most cases the defaults are sufficient.<br />
[root@bigboy milter-greylist-2.0.2]# ./configure &amp;&amp; make &amp;&amp; make install<br />
checking for gcc&#8230; gcc<br />
checking for C compiler default output file name&#8230; a.out<br />
checking whether the C compiler works&#8230; yes<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
/usr/bin/install -c -d -m 755 /etc/mail<br />
test -f /etc/mail/greylist.conf -o -f /etc/mail/greylist.except || \<br />
     /usr/bin/install -c -m 644 greylist.conf /etc/mail<br />
/usr/bin/install -c -d -m 755 -o root /var/milter-greylist<br />
[root@bigboy milter-greylist-2.0.2]#<br />
The next step is to configure the package, which will be covered next.<br />
Configuring milter-greylist<br />
Configuring milter-greylist requires these four quick steps:<br />
1. Add the milter-greylist statements listed in the README file to your /etc/mail/sendmail.mc file:<br />
INPUT_MAIL_FILTER(`greylist&#8217;,`S=local:/var/milter-greylist/milter-greylist.sock&#8217;)<br />
define(`confMILTER_MACROS_CONNECT&#8217;, `j, {if_addr}&#8217;)<br />
define(`confMILTER_MACROS_HELO&#8217;, `{verify}, {cert_subject}&#8217;)<br />
define(`confMILTER_MACROS_ENVFROM&#8217;, `i, {auth_authen}&#8217;)<br />
define(`confMILTER_MACROS_ENVRCPT&#8217;, `{greylist}&#8217;)<br />
2. There will be a number of shell scripts in the milter-greylist tar directory that correspond to various versions of Linux. Copy the correct version to your /etc/init.d directory and use the chkconfig command to make sure the milter starts on the next reboot.<br />
[root@bigboy milter-greylist-2.0.2]# cp rc-redhat.sh /etc/init.d/milter-greylist<br />
[root@bigboy milter-greylist-2.0.2]# chmod 755 /etc/init.d/milter-greylist<br />
[root@bigboy milter-greylist-2.0.2]# chkconfig &#8211;add milter-greylist<br />
[root@bigboy milter-greylist-2.0.2]# chkconfig milter-greylist on<br />
[root@bigboy milter-greylist-2.0.2]# chkconfig &#8211;list | grep milter<br />
milter-greylist 0:off   1:off   2:on    3:on    4:on    5:on    6:off<br />
[root@bigboy milter-greylist-2.0.2]#<br />
3. Edit the /etc/mail/greylist.conf configuration file. Here we set the “try again later” to five minutes and use the whitelist command to deactivate the timer for trusted networks so that mail is delivered immediately.<br />
#<br />
# File: /etc/mail/greylist.conf<br />
#</p>
<p># How long a client has to wait before we accept<br />
# the messages it retries to send. Here, 1 hour.<br />
#<br />
greylist 5m</p>
<p>#<br />
# Whitelist addresses within my own home/office network<br />
#<br />
acl whitelist addr 192.168.0.0/16<br />
4. Start the milter with the service command.<br />
[root@bigboy milter-greylist-2.0.2]# service milter-greylist start<br />
Starting Milter-Greylist: [  OK  ]<br />
[root@bigboy milter-greylist-2.0.2]#<br />
Your new spam mitigation tool should now be fully functional. Delete the mister-greylist directory in /tmp and you should be ready to go!<br />
Configuring milter-greylist<br />
Now that we have milter-greylist installed, we need to be able to do some basic troubleshooting. The /var/log/maillog file should be used to determine what is happening to your mail. Here are two samples of what to expect:<br />
Dec 24 00:32:31 bigboy sendmail[28847]: jBO8WVnG028847: Milter: to=,<br />
reject=451 4.7.1 Greylisting in action, please come back in 00:05:00</p>
<p>Dec 23 20:40:21 bigboy milter-greylist: jBO4eF2m027418: addr 211.115.216.225 from<br />
 rcpt : autowhitelisted for 24:00:00<br />
In the first entry, the email received is given a tag (jBO8WVnG028847) based on key characteristics in the mail header and a request is sent to the sender to resend the email in five minutes. Any email that is received with the same calculated key within the autowhite period configured in the greylist.conf file will then be automatically accepted without delay. In the second entry, the email has been resent and immediately accepted. Any other email from that source within the next 24 hours will be accepted without delay.<br />
Note: Greylisting is very effective, but you will have to tne its operation to make sure critical emails are not delayed at all. One soluton is to set the autowhite period in /etc/mail/greylist.conf to slightly more than 24 hours especially if you get mail from certain recipients, such as newsletters, on a daily basis. This makes them arrive without interruption.<br />
A Simple PERL Script To Help Stop SPAM<br />
Blacklists won&#8217;t stop everything, but you can limit the amount of unsolicited spam you receive by writing a small script to intercept your mail before it is written to your mailbox.<br />
This is fairly simple to do, because sendmail always checks the .forward file in your home directory for the name of this script. The sendmail program then looks for the filename in the directory /etc/smrsh and executes it.<br />
By default, PERL doesn&#8217;t come with modules that are able to check e-mail headers and envelopes so you have to download them from CPAN (www.cpan.org). The most important modules are:<br />
MailTools<br />
IO-Stringy<br />
MIME-tools<br />
Mail-Audit<br />
I have written a script called mail-filter.pl that effectively filters out spam e-mail for my home system. A few steps are required to make the script work:<br />
1.Install PERL and the PERL modules you downloaded from CPAN.<br />
2.Place an executable version of the script in your home directory and modify the script&#8217;s $FILEPATH variable point to your home directory.<br />
3.Update file mail-filter.accept, which specifies the subjects and e-mail addresses to accept, and file mail-filter.reject, which specifies those to reject.<br />
4.Update your .forward file and place an entry in /etc/smrsh.<br />
Mail-filter first rejects all e-mail based on the reject file and then accepts all mail found in the accept file. It then denies everything else.<br />
For a simple script with instructions on how to install the PERL modules, see Appendix II, &#8220;Codes, Scripts, and Configurations&#8221;.<br />
Configuring Your POP Mail Server<br />
Each user on your Linux box will get mail sent to their account&#8217;s mail folder, but sendmail just handles mail sent to your my-site.com domain. If you want to retrieve the mail from your Linux box&#8217;s user account using a mail client such as Evolution, Microsoft Outlook or Outlook Express, then you have a few more steps. You&#8217;ll also have to make your Linux box a POP mail server.<br />
Fedora Linux comes with the easy to use dovecot IMAP/POP server RPM package which requires very little configuration after installation. </p>
<p>Installing Your POP Mail Server<br />
Most RedHat and Fedora Linux software products are available in the RPM format. You will need to make sure that the dovecot software RPM is installed. When searching for the RPMs, remember that the filename usually starts with the software package name by a version number, as in dovecot-0.99.11-1.FC3.4.i386.rpm.<br />
Starting Your POP Mail Server<br />
You can use the chkconfig command to get dovecot configured to start at boot:<br />
[root@bigboy tmp]# chkconfig dovecot on<br />
To start, stop, and restart dovecot after booting, use<br />
[root@bigboy tmp]# service dovecot start<br />
[root@bigboy tmp]# service dovecot stop<br />
[root@bigboy tmp]# service dovecot restart<br />
Remember to restart the dovecot process every time you make a change to the configuration files for the changes to take effect on the running process. You can also test whether the dovecot process is running with the pgrep command:<br />
[root@bigboy tmp]# pgrep dovecot<br />
You should get a response of plain old process ID numbers: </p>
<p>The /etc/dovecot.conf File<br />
You can define most of dovecot&#8217;s configuration parameters in the /etc/dovecot.conf file. By default dovecot will act as a server for IMAP, secure IMAP (IMAPS), POP and secure POP (POPS). You can limit this list by editing the protocols line in the /etc/dovecot.conf file and then restarting dovecot for the change to take effect. In the example below dovecot is configured to serve only POP3.<br />
#<br />
# File /etc/dovecot.conf sample<br />
#</p>
<p># Protocols we want to be serving imap imaps pop3 pop3s<br />
#protocols = imap imaps pop3 pop3s<br />
protocols = pop3<br />
You can then use the netstat command to do a simple preliminary test to make sure dovecot is serving POP3 only.<br />
[root@bigboy tmp]# netstat -a | egrep -i &#8216;pop|imap&#8217;<br />
tcp        0      0 *:pop3                     *:*                         LISTEN<br />
[root@bigboy tmp]#</p>
<p>How To Configure Your Windows Mail Programs<br />
All your POP e-mail accounts are really only regular Linux user accounts in which sendmail has deposited mail. You can now configure your e-mail client such as Outlook Express to use your use your new POP/SMTP mail server quite easily. To configure POP Mail, set your POP mail server to be the IP address of your Linux mail server. Use your Linux user username and password when prompted.<br />
Next, set your SMTP mail server to be the IP address/domain name of your Linux mail server. </p>
<p>Configuring Secure POP Mail<br />
If you need to access your e-mail from the mail server via the Internet or some other insecure location, you may want to configure POP to work over an encrypted data channel. For this, modify the protocols section of the /etc/dovecot.conf file to include pop3s and then restart dovecot. Encrypted POP runs on TCP port 995, so firewall rules may need to be altered as well.<br />
Most POP clients support secure POP. For example, Windows configures it in the Advanced menu of the Outlook Express Account Configuration window. </p>
<p>How to handle overlapping email addresses.<br />
If you have user overlap, such as John Smith (john@my-site.com) and John Brown (john@another-site.com), both users will get sent to the Linux user account john by default. You have two options for a solution:<br />
Make the user part of the email address different, john1@my-site.com and<br />
john2@another-site.com for example, and create Linux accounts john1 and john2. If the users insist on overlapping names, then you may need to modify your virtusertable file.<br />
Create the user accounts john1 and john2 and point virtusertable entries for john@my-site.com to account john1 and point john@another-site.com entries to account john2. The POP configuration in Outlook Express for each user should retrieve their mail via POP using john1 and john2, respectively.<br />
With this trick you&#8217;ll be able to handle many users belonging to multiple domains without many address overlap problems. </p>
<p>Troubleshooting POP Mail<br />
The very first troubleshooting step is to determine whether your POP server is accessible on the POP TCP port 110 or the secure POP port of 995. Lack of connectivity could be caused by a firewall with incorrect permit, NAT, or port forwarding rules to your server. Failure could also be caused by the xinetd process being stopped or the configuration files being disabled. Test this from both inside your network and from the Internet.<br />
Linux status messages are logged to the file /var/log/messages. Use it to make sure all your files are loaded when you start xinetd. Check your configuration files if it fails to do so. This example starts xinetd and makes a successful secure POP query from a remote POP client:<br />
Aug 11 23:20:33 bigboy xinetd[18690]: START: pop3s pid=18693 from=172.16.1.103<br />
Aug 11 23:20:33 bigboy ipop3d[18693]: pop3s SSL service init from 172.16.1.103<br />
Aug 11 23:20:40 bigboy ipop3d[18693]: Login user=labmanager host=172-16-1-103.my-site.com [172.16.1.103] nmsgs=0/0<br />
Aug 11 23:20:40 bigboy ipop3d[18693]: Logout user=labmanager host=172-16-1-103.my-site.com [172.16.1.103] nmsgs=0 ndele=0<br />
Aug 11 23:20:40 bigboy xinetd[18690]: EXIT: pop3s pid=18693 duration=7(sec)<br />
Aug 11 23:20:52 bigboy xinetd[18690]: START: pop3s pid=18694 from=172.16.1.103<br />
Aug 11 23:20:52 bigboy ipop3d[18694]: pop3s SSL service init from 172.16.1.103<br />
Aug 11 23:20:52 bigboy ipop3d[18694]: Login user=labmanager host=172-16-1-103.my-site.com [172.16.1.103] nmsgs=0/0<br />
Aug 11 23:20:52 bigboy ipop3d[18694]: Logout user=labmanager host=172-16-1-103.my-site.com [172.16.1.103] nmsgs=0 ndele=0<br />
Aug 11 23:20:52 bigboy xinetd[18690]: EXIT: pop3s pid=18694 duration=0(sec)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mylinuxz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mylinuxz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mylinuxz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mylinuxz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mylinuxz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mylinuxz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mylinuxz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mylinuxz.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mylinuxz.wordpress.com&amp;blog=5845468&amp;post=32&amp;subd=mylinuxz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mylinuxz.wordpress.com/2008/12/24/spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e7000ac7311a3a9a29dc4837bdf0d77?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">venkateshkumar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
