<?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>Linux System Admin Tips</title>
	<atom:link href="http://linuxfreaker.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxfreaker.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 08 Aug 2009 07:36:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='linuxfreaker.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Linux System Admin Tips</title>
		<link>http://linuxfreaker.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://linuxfreaker.wordpress.com/osd.xml" title="Linux System Admin Tips" />
	<atom:link rel='hub' href='http://linuxfreaker.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to setup Nginx WebServer on Linux?</title>
		<link>http://linuxfreaker.wordpress.com/2009/08/08/how-to-setup-nginx-webserver-on-linux/</link>
		<comments>http://linuxfreaker.wordpress.com/2009/08/08/how-to-setup-nginx-webserver-on-linux/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:36:26 +0000</pubDate>
		<dc:creator>linuxfreaker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxfreaker.wordpress.com/?p=10</guid>
		<description><![CDATA[I wasn’t happy with Apache Memory footprint and low stability. I was looking out for some good lightweight webserver and then some colleague suggested me to use Nginx. After struggling for couple of days, finally I was successful in setting up LEMP on Linux. This Howto is all about setting up Nginx with PHP, MySQL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=10&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wasn’t happy with Apache Memory footprint and low stability. I was looking out for some good lightweight webserver and then some colleague suggested me to use Nginx. After struggling for couple of days, finally I was successful in setting up LEMP on Linux.</p>
<p>This Howto is all about setting up Nginx with PHP, MySQL and FastCGI.So Lets Start:</p>
<p><strong>Installing Nginx from Source?</strong></p>
<p>If you use Debian-based distributive as usual you can use command:</p>
<p>$ sudo apt-get install nginx</p>
<p>For Other Linux Flavours,</p>
<p>$ cd ~/user$mkdir server<br />
$cd server<br />
$wget <a href="http://sysoev.ru/nginx/nginx-0.7.59.tar.gz">http://sysoev.ru/nginx/nginx-0.7.59.tar.gz</a></p>
<p>Unpack archives:</p>
<p>$ tar xvf nginx-0.7.59$ cd nginx-0.7.59</p>
<p>You must have C compiler to compile a program. If you don’t have please do the next:</p>
<p>$sudo aptitude install build-essential<br />
$sudo aptitude install linux-headers-`uname -r<br />
<strong></strong><br />
<strong>Configure</strong></p>
<p>$./configure</p>
<p>In the end, 100% you’ll have the next messages:</p>
<p>./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using &#8211;without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using &#8211;with-pcre= option. It’s normal, you can’t have all the libraries on your computer. We can install it.</p>
<p>$sudo aptitude install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev</p>
<p><strong>Start to compile it once again</strong></p>
<p>$sudo make clean<br />
$sudo ./configure &#8211;with-http_ssl_module<br />
$sudo make<br />
$sudo make install</p>
<p>Now, everything will be ok and server will be installed in your system. If you want you can change some default options doing command “./configure” for example:</p>
<p>&#8211;prefix=<br />
- to set the directory where the server files will be located. This directory will be used for all ways you’ll set by command “./configure” and in configuration file nginx.conf too. Default it’s /usr/local/nginx.</p>
<p>&#8211;sbin-path=<br />
- to set the name of the Nginx executive file. This name is used just for stage of installing. Default it’s /usr/local/nginx/sbin/nginx.</p>
<p>&#8211;conf-path=<br />
- to set the name for the nginx.conf configuration file. In any time you can run Nginx with another configuration file which will be located in another directory with option “-c “. Default it’s /usr/local/nginx/conf/nginx.conf</p>
<p>&#8211;pid-path=<br />
- to set the name for PID file. But after installing of the server in any time you can change the name in the nginx.conf configuration file. Default it’s /usr/local/nginx/logs/nginx.pid</p>
<p>&#8211;error-log-path=- to set the name for the error log file. After installing you can change the name in the nginx.conf configuration file. Default it’s /usr/local/nginx/logs/error.log</p>
<p>&#8211;http-log-path=<br />
- to set the name for the access.log file. Access.log:it’s the file for registration of requests from the server. Default it’s /usr/local/nginx/logs/access.log.</p>
<p><strong>How do I manage the server?</strong></p>
<p>If you did’t change the default directories when you were installing the server, you can run the server by command:</p>
<p>$sudo /usr/local/nginx/sbin/nginx</p>
<p>Check the server.<br />
ps -ef grep nginx</p>
<p>root 14999 1 0 16:44 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx<br />
nobody 15000 14999 0 16:44 ? 00:00:00 nginx: worker process<br />
booch 15084 29644 0 16:45 pts/0 00:00:00 grep nginx</p>
<p>Great! Now you can open your browser and put <a href="http://localhost/">http://localhost/</a><br />
If server works you’ll see “Welcome”</p>
<p>Shutting down the server is possible by sending QUIT signal to the master process.</p>
<p>$kill -QUIT<br />
Upgrading the server in the work process is possible by sending USR2 signal to the master process.</p>
<p>$kill -USR2<br />
If you have already changed some options in the nginx.conf and you want to apply it you have to send HUP signal to the master process.</p>
<p>$kill -HUP<br />
Log rotation. All log files have to be renamed, after this USR1 signal has to be sent to the master process. The master process will open all opened files once again and set them as unprivileged user. All worker processes work under this user. After successful opening master process will close all opened files and will send messages to worker processes to reopen files too. They also will open new files and in the same time will close all old files. In result all old files will be ready for further processing, for example, to compress them.</p>
<p>$kill -USR1</p>
<p>Important Signals:</p>
<p>QUIT &#8211; normal shut down<br />
TERM, INT &#8211; fast shut down<br />
HUP &#8211; reconfiguration, update the changed time zone, launch of new worker processes with the new configuration, normal shut down of worker processes.<br />
USR1 &#8211; to reopen log files<br />
USR2 &#8211; to upgrade executive file<br />
<strong>How to run web site on the server?<br />
</strong><br />
Let’s start to do our server. We have to create new user (www), new group (www) and new structure for the site. Let’s begin from the group.</p>
<p>$sudo groupadd www</p>
<p><strong>New user</strong></p>
<p>$sudo useradd www -g www</p>
<p><strong>Add www user to www group.</strong></p>
<p>$sudo usermod -a -G www</p>
<p><strong>Create password for www user.</strong></p>
<p>$sudo passwd www</p>
<p>Let’s create a structure for the web site. I think it will be like this.</p>
<p>$sudo mkdir /home/www/<br />
$sudo mkdir -p /home/www/linuxspace.org/{log, private, public, backups, archives, stats}</p>
<p>log &#8211; directory for log files<br />
private &#8211; private data<br />
public &#8211; directory for the site<br />
backups &#8211; directory for backup data<br />
stats &#8211; directory for stats<br />
archives &#8211; for archives</p>
<p>Please, be attentive with the rights. For all directories it’s (rw+r+r), and for public it’s (rwx+r+r).And now you have to correct configuration file nginx.conf</p>
<p>$sudo nano /usr/local/nginx/conf/nginx.conf</p>
<p>#useruser www;<br />
#numbers of work process<br />
worker_processes ;<br />
#address of PID file<br />
pid /home/www/linuxspace.org/nginx.pid; events<br />
{<br />
worker_connections ;<br />
}<br />
http<br />
{<br />
include mime.types;<br />
default_type application/octet-stream;<br />
#log_format main &#8216;$remote_addr &#8211; $remote_user [$time_local] &#8220;$request&#8221; &#8216;<br />
# &#8216;$status $body_bytes_sent &#8220;$http_referer&#8221; &#8216;<br />
# &#8216;&#8221;$http_user_agent&#8221; &#8220;$http_x_forwarded_for&#8221;&#8216;;<br />
sendfile on;<br />
tcp_nopush on;<br />
#keepalive_timeout ;<br />
keepalive_timeout ;<br />
#compression<br />
gzip on;<br />
gzip_min_length ;<br />
gzip_buffers k;<br />
gzip_types text/plain;<br />
gzip_comp_level ;<br />
gzip_proxied any;<br />
#configure the virtual hostserver<br />
{<br />
#port listen *:;<br />
#name of server server_name localhost;<br />
#coding charset utf-;<br />
#it&#8217;s general directory, when will be site<br />
root /home/www/linuxspace.org/public;<br />
#LOGS #&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
access_log /home/www/linuxspace.org/log/localhost.access.log;<br />
error_log /home/www/linuxspace.org/log/error.log;<br />
access_log /home/www/linuxspace.org/log/access.log;<br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
#files which server will read in the general directory location /<br />
{<br />
root /home/www/linuxspace.org/public;<br />
index index.html index.htm index.php;<br />
}<br />
error_page /.html;<br />
# redirect server error pages to the static page /x.html<br />
# error_page /x.html; location = /x.html { root html; }<br />
# proxy the PHP scripts to Apache listening on &#8230;:<br />
#<br />
#location ~ \.php$<br />
{<br />
# proxy_pass http://&#8230;;<br />
#<br />
}<br />
# pass the PHP scripts to FastCGI server listening on &#8230;:<br />
#<br />
#location ~ \.php$<br />
{<br />
# root html;<br />
# fastcgi_pass &#8230;:;<br />
# fastcgi_index index.php;<br />
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;<br />
# include fastcgi_params;<br />
#<br />
}<br />
# deny access to .htaccess files, if Apache&#8217;s document root<br />
# concurs with nginx&#8217;s one<br />
#<br />
#location ~ /\.ht {<br />
# deny all;<br />
#<br />
}<br />
}<br />
# another virtual host using mix of IP-, name-, and port-based configuration<br />
#<br />
#server {<br />
# listen ;<br />
# listen somename:;<br />
# server_name somename alias another.alias;<br />
# location / {<br />
# root html;<br />
# index index.html index.htm;<br />
#<br />
}<br />
#<br />
}<br />
# HTTPS server<br />
#<br />
#server<br />
{<br />
# listen ;<br />
# server_name localhost;<br />
# ssl on;<br />
# ssl_certificate cert.pem;<br />
# ssl_certificate_key cert.key;<br />
# ssl_session_timeout m;<br />
# ssl_protocols SSLv SSLv TLSv;<br />
# ssl_ciphers ALL:!ADH:!EXPORT:RC+RSA:+HIGH:+MEDIUM:+LOW:+SSLv:+EXP;<br />
# ssl_prefer_server_ciphers on;<br />
# location / {<br />
# root html;<br />
# index index.html index.htm;<br />
#<br />
}<br />
#<br />
}<br />
}</p>
<p>It’s enough to run the html site on the server. But, please, don’t delete another options, you’ll need it in the future.<br />
Remember, if you want to use another nginx.conf file, you can run server using option “-c”</p>
<p>sudo /usr/local/nginx/sbin/nginx -c /home/user/nginx.conf</p>
<p>Let’s run the server</p>
<p>sudo /usr/local/nginx/sbin/nginx</p>
<p>If everything is ok, you’ll see the server is in the process.</p>
<p>ps -ef  grep nginx<br />
root 7146 1 0 02:19 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx<br />
www 7147 7146 0 02:19 ? 00:00:00 nginx: worker process<br />
www 7148 7146 0 02:19 ? 00:00:00 nginx: worker process</p>
<p>Great. It works. The master process has root rights and worker processes have rights from the www user. So, now you can put html page index.html into the /home/www/linuxspace.org/public directory. Then, please, open browser and print <a href="http://localhost/">http://localhost</a> You’ll see your site.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxfreaker.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxfreaker.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxfreaker.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxfreaker.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxfreaker.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxfreaker.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxfreaker.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxfreaker.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=10&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxfreaker.wordpress.com/2009/08/08/how-to-setup-nginx-webserver-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd7cd2df69ea0df08abc16b2e5736081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linuxfreaker</media:title>
		</media:content>
	</item>
		<item>
		<title>How to filter content through Squid Server?</title>
		<link>http://linuxfreaker.wordpress.com/2009/08/08/how-to-filter-content-through-squid-server/</link>
		<comments>http://linuxfreaker.wordpress.com/2009/08/08/how-to-filter-content-through-squid-server/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:35:33 +0000</pubDate>
		<dc:creator>linuxfreaker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxfreaker.wordpress.com/2009/08/08/how-to-filter-content-through-squid-server/</guid>
		<description><![CDATA[For security and to save bandwidth I would like to configure Squid proxy server such way that I do not want my users to download all of the following files: MP3 MPEG MPG AVG AVI EXE How do I configure squid content filtering? A. You can use squid ACL (access control list) to block all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=9&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For security and to save bandwidth I would like to configure Squid proxy server such way that I do not want my users to download all of the following files:<br />
MP3<br />
MPEG<br />
MPG<br />
AVG<br />
AVI<br />
EXE</p>
<p><strong>How do I configure squid content filtering?</strong></p>
<p>A. You can use squid ACL (access control list) to block all these files easily.</p>
<p><strong>How do I block music files using squid content filtering ACL?</strong></p>
<p>First open squid.conf file /etc/squid/squid.conf:</p>
<p># vi /etc/squid/squid.conf</p>
<p>Now add following lines to your squid ACL section:</p>
<p>acl blockfiles urlpath_regex &#8220;/etc/squid/blocks.files.acl&#8221;</p>
<p>You want display custom error message when a file is blocked:</p>
<p># <strong>Deny all blocked extension</strong></p>
<p>deny_info ERR_BLOCKED_FILES blockfiles http_access deny blockfiles</p>
<p>Save and close the file.</p>
<p>Create custom error message HTML file called ERR_BLOCKED_FILES in /etc/squid/error/ directory or /usr/share/squid/errors/English directory.</p>
<p># vi ERR_BLOCKED_FILES Append following content:</p>
<p>start with html tag:<br />
File is blocked due to new policy<br />
Phone: 555-12435 (ext 44)<br />
Email: <a href="mailto:helpdesk@yourcorp.com">helpdesk@yourcorp.com</a></p>
<p>Caution: Do not include HTML close tags as it will be closed by squid.</p>
<p>Now create /etc/squid/blocks.files.acl file:</p>
<p># vi /etc/squid/blocks.files.acl</p>
<p>Append following text:<br />
\.[Ee][Xx][Ee]$<br />
\.[Aa][Vv][Ii]$<br />
\.[Mm][Pp][Gg]$<br />
\.[Mm][Pp][Ee][Gg]$<br />
\.[Mm][Pp]3$</p>
<p>Save and close the file.</p>
<p><strong>Restart Squid:</strong><br />
# /etc/init.d/squid restart</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxfreaker.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxfreaker.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxfreaker.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxfreaker.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxfreaker.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxfreaker.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxfreaker.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxfreaker.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=9&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxfreaker.wordpress.com/2009/08/08/how-to-filter-content-through-squid-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd7cd2df69ea0df08abc16b2e5736081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linuxfreaker</media:title>
		</media:content>
	</item>
		<item>
		<title>How do I configure sendmail to route mail to specific hosts?</title>
		<link>http://linuxfreaker.wordpress.com/2009/08/08/how-do-i-configure-sendmail-to-route-mail-to-specific-hosts/</link>
		<comments>http://linuxfreaker.wordpress.com/2009/08/08/how-do-i-configure-sendmail-to-route-mail-to-specific-hosts/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:34:17 +0000</pubDate>
		<dc:creator>linuxfreaker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxfreaker.wordpress.com/?p=7</guid>
		<description><![CDATA[Sendmail is a popular mail server which comes by default with Red Hat Linux. For Ubuntu OS, you will have to install it through: $sudo apt-get install sendmail Wait and let machine do rest of the stuffs. Configure sendmail to route mail to specific hosts: This can be accomplished by adding appropriate entries to the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=7&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sendmail is a popular mail server which comes by default with Red Hat Linux. For Ubuntu OS, you will have to install it through:<br />
$sudo apt-get install sendmail</p>
<p>Wait and let machine do rest of the stuffs.</p>
<p><strong>Configure sendmail to route mail to specific hosts:</strong></p>
<p>This can be accomplished by adding appropriate entries to the /etc/mail/mailertable file.<br />
This file allows you to specify a domain, and where you want all email for that domain sent to.</p>
<p>In the example below, all email destined for mydomain.com will be automatically forwarded to a mail server that resolves to backend.mail.server. Additionally, all email received from the 192.0.0.0 network will be forwarded to a mail server that resolves to outbound.mail.server.<br />
Example:</p>
<p>/etc/mail/mailertable</p>
<p>mydomain.com smtp:backend.mail.server192. smtp:outgoing.mail.server</p>
<p>After your modifications to /etc/mail/mailertable are complete you will need to run the following command:</p>
<p>#makemap hash /etc/mail/mailertable.db &lt; /etc/mail/mailertable Restart sendmail: #service sendmail restart</p>
<p>Thats it. Now sendmail is ready to route your mail to specific hosts preventing other machines to receive the same.</p>
<p>Happy Mailing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxfreaker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxfreaker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxfreaker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxfreaker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxfreaker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxfreaker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxfreaker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxfreaker.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=7&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxfreaker.wordpress.com/2009/08/08/how-do-i-configure-sendmail-to-route-mail-to-specific-hosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd7cd2df69ea0df08abc16b2e5736081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linuxfreaker</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Upgrade Ubuntu 8.10 to 9.04 Jaunty?</title>
		<link>http://linuxfreaker.wordpress.com/2009/08/08/how-to-upgrade-ubuntu-8-10-to-9-04-jaunty/</link>
		<comments>http://linuxfreaker.wordpress.com/2009/08/08/how-to-upgrade-ubuntu-8-10-to-9-04-jaunty/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:25:32 +0000</pubDate>
		<dc:creator>linuxfreaker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linuxfreaker.wordpress.com/?p=3</guid>
		<description><![CDATA[This tutorial will explain how to Upgrade Ubuntu 8.10 (Intrepid Ibix) to Ubuntu 9.04 (Jaunty Jackalope) released on the 23rd April 2009. Important Notes Before Upgrade 1.Take a complete Back up all your data. There is no guarantee that all will go well. 2.You can only directly upgrade to Ubuntu 9.04 from Ubuntu 8.10 3.Before [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=3&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-4" title="791922_f520" src="http://linuxfreaker.files.wordpress.com/2009/08/791922_f520.jpg?w=450" alt="791922_f520"   /></p>
<p>This tutorial will explain how to Upgrade Ubuntu 8.10 (Intrepid Ibix) to Ubuntu 9.04 (Jaunty Jackalope) released on the 23rd April 2009.</p>
<p>Important Notes Before Upgrade</p>
<p>1.Take a complete Back up all your data. There is no guarantee that all will go well.</p>
<p>2.You can only directly upgrade to Ubuntu 9.04 from Ubuntu 8.10</p>
<p>3.Before upgrading it is recommended that you read the <a href="http://www.ubuntu.com/getubuntu/releasenotes/904" target="_blank">release notes</a> for Ubuntu 9.04, which document caveats and workarounds for known issues in this version.</p>
<p>4.Be sure that you have all updates applied to Ubuntu 8.10 before you upgrade Procedure to follow</p>
<p>Run this command on your CLI:</p>
<p>1. ssh</p>
<p>2. Run `apt-get update`</p>
<p>3. Run `apt-get upgrade`</p>
<p>4. Run `apt-get install update-manager-core`</p>
<p>5. Edit /etc/update-manager/release-upgrades and change prompt method to normal</p>
<p>6. Run `do-release-upgrade`</p>
<p>Once you run through the do-release-upgrade utility it will reboot the server. Once it comes back up your release should be 8.10. You can verify this by running `lsb_release -a` as root and you should see the following:</p>
<p>No LSB modules are available.<br />
Distributor ID: Ubuntu<br />
Description: Ubuntu 8.10<br />
Release: 9.04<br />
Codename: Jaunty Jackalope<br />
Hope You have &#8220;Jaunty&#8221; running on your Box.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxfreaker.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxfreaker.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxfreaker.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxfreaker.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxfreaker.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxfreaker.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxfreaker.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxfreaker.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=3&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxfreaker.wordpress.com/2009/08/08/how-to-upgrade-ubuntu-8-10-to-9-04-jaunty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd7cd2df69ea0df08abc16b2e5736081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linuxfreaker</media:title>
		</media:content>

		<media:content url="http://linuxfreaker.files.wordpress.com/2009/08/791922_f520.jpg" medium="image">
			<media:title type="html">791922_f520</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://linuxfreaker.wordpress.com/2009/08/08/hello-world/</link>
		<comments>http://linuxfreaker.wordpress.com/2009/08/08/hello-world/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 07:00:07 +0000</pubDate>
		<dc:creator>linuxfreaker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=1&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxfreaker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxfreaker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxfreaker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxfreaker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxfreaker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxfreaker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxfreaker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxfreaker.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxfreaker.wordpress.com&amp;blog=8920675&amp;post=1&amp;subd=linuxfreaker&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxfreaker.wordpress.com/2009/08/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cd7cd2df69ea0df08abc16b2e5736081?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linuxfreaker</media:title>
		</media:content>
	</item>
	</channel>
</rss>
