<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7844592531339216751</atom:id><lastBuildDate>Fri, 06 Sep 2024 05:18:08 +0000</lastBuildDate><category>Active Directory Alternatives</category><category>Linux Active Directory</category><category>Samba Domain Controller</category><category>gem</category><category>hosts</category><category>hosts disappear</category><category>kvm</category><category>libvirtd</category><category>manage active directory</category><category>manage samba AD</category><category>manage samba DC</category><category>manage samba from windows</category><category>nagios</category><category>office 2007 issues with wine</category><category>pkg_resources.DistributionNotFound:</category><category>powerpoint not working in wine</category><category>python error</category><category>python.h</category><category>ruby</category><category>virt-install</category><category>virt-manager</category><title>Fun with Issues/Tips - Charlie's Own Blog</title><description>Server Chit Chats, Troubleshooting issues and Tutorials :)</description><link>http://admin4you.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>41</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-3767122482153599589</guid><pubDate>Mon, 04 Jul 2016 06:53:00 +0000</pubDate><atom:updated>2016-07-04T12:23:36.521+05:30</atom:updated><title>Nagios - Memory Check Plugin</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Thought this might be of use to some one.&lt;br /&gt;
&lt;br /&gt;
Originally sourced from &lt;a href="https://exchange.nagios.org/directory/Plugins/System-Metrics/Memory/Check-mem-%28by-Nestor%40Toronto%29/details" target="_blank"&gt;Nagios Directory&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, Tahoma, sans-serif; line-height: 15.4px;"&gt;&lt;span style="font-size: x-small;"&gt;Centos 7&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style="background-color: white; color: #333333; font-family: Verdana, Tahoma, sans-serif; font-size: 11px; line-height: 15.4px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class="tr_bq"&gt;
#!/bin/bash&lt;br /&gt;if [ "$1" = "-w" ] &amp;amp;&amp;amp; [ "$2" -gt "0" ] &amp;amp;&amp;amp; [ "$3" = "-c" ] &amp;amp;&amp;amp; [ "$4" -gt "0" ]; then&lt;br /&gt;FreeM=`free -m`&lt;br /&gt;memTotal_m=`echo "$FreeM" |grep Mem |awk '{print $2}'`&lt;br /&gt;memUsed_m=`echo "$FreeM" |grep Mem |awk '{print $3}'`&lt;br /&gt;memFree_m=`echo "$FreeM" |grep Mem |awk '{print $4}'`&lt;br /&gt;memBuffer_cache_m=`echo "$FreeM" |grep Mem |awk '{print $6}'`&lt;br /&gt;memAvailable_m=`echo "$FreeM" |grep Mem |awk '{print $7}'`&lt;br /&gt;memUsed_m=$(($memTotal_m-$memFree_m-$memBuffer_cache_m))&lt;br /&gt;memUsedPrc=`echo $((($memUsed_m*100)/$memTotal_m))||cut -d. -f1`&lt;br /&gt;if [ "$memUsedPrc" -ge "$4" ]; then&lt;br /&gt;echo "Memory: CRITICAL Total: $memTotal_m MB - Used: $memUsed_m MB - $memUsedPrc% used!|TOTAL=$memTotal_m;;;; USED=$memUsed_m;;;; BUFFER/CACHE=$memBuffer_cache_m;;;; AVAILABLE=$memAvailable_m;;;;"&lt;br /&gt;exit 2&lt;br /&gt;elif [ "$memUsedPrc" -ge "$2" ]; then&lt;br /&gt;echo "Memory: WARNING Total: $memTotal_m MB - Used: $memUsed_m MB - $memUsedPrc% used!|TOTAL=$memTotal_m;;;; USED=$memUsed_m;;;; BUFFER/CACHE=$memBuffer_cache_m;;;; AVAILABLE=$memAvailable_m;;;;"&lt;br /&gt;exit 1&lt;br /&gt;else&lt;br /&gt;echo "Memory: OK Total: $memTotal_m MB - Used: $memUsed_m MB - $memUsedPrc% used|TOTAL=$memTotal_m;;;; USED=$memUsed_m;;;; BUFFER/CACHE=$memBuffer_cache_m;;;; AVAILABLE=$memAvailable_m;;;;"&lt;br /&gt;exit 0&lt;br /&gt;fi&lt;br /&gt;else # If inputs are not as expected, print help.&lt;br /&gt; sName="`echo $0|awk -F '/' '{print $NF}'`"&lt;br /&gt;echo -e "\n\n\t\t### $sName Version 2.1###\n"&lt;br /&gt;echo -e "# Usage:\t$sName -w -c "&lt;br /&gt;echo -e "\t\t= warnlevel and critlevel is percentage value without %\n"&lt;br /&gt;echo "# EXAMPLE:\t/usr/lib64/nagios/plugins/$sName -w 80 -c 90"&lt;br /&gt;echo -e "\nCopyright (C) 2012 Lukasz Gogolin (lukasz.gogolin@gmail.com), improved by Nestor 2015\n\n"&lt;br /&gt;exit&lt;br /&gt;fi&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="font-size: small;"&gt;Old Version&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;#!/bin/bash&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;if [ "$1" = "-w" ] &amp;amp;&amp;amp; [ "$2" -gt "0" ] &amp;amp;&amp;amp; [ "$3" = "-c" ] &amp;amp;&amp;amp; [ "$4" -gt "0" ]; then&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;FreeM=`free -m`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memTotal_m=`echo "$FreeM" |grep Mem |awk '{print $2}'`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memUsed_m=`echo "$FreeM" |grep Mem |awk '{print $3}'`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memFree_m=`echo "$FreeM" |grep Mem |awk '{print $4}'`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memBuffer_m=`echo "$FreeM" |grep Mem |awk '{print $6}'`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memCache_m=`echo "$FreeM" |grep Mem |awk '{print $7}'`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memUsedPrc=`echo $((($memUsed_m*100)/$memTotal_m))||cut -d. -f1`&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [ "$memUsedPrc" -ge "$4" ]; then&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "Memory: CRITICAL Total: $memTotal_m MB - Used: $memUsed_m MB - $memUsedPrc% used!|TOTAL=$memTotal_m;;;; USED=$memUsed_m;;;; CACHE=$memCache_m;;;; BUFFER=$memBuffer_m;;;;"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit 2&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elif [ "$memUsedPrc" -ge "$2" ]; then&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "Memory: WARNING Total: $memTotal_m MB - Used: $memUsed_m MB - $memUsedPrc% used!|TOTAL=$memTotal_m;;;; USED=$memUsed_m;;;; CACHE=$memCache_m;;;; BUFFER=$memBuffer_m;;;;"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit 1&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo "Memory: OK Total: $memTotal_m MB - Used: $memUsed_m MB - $memUsedPrc% used|TOTAL=$memTotal_m;;;; USED=$memUsed_m;;;; CACHE=$memCache_m;;;; BUFFER=$memBuffer_m;;;;"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit 0&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;else&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;# If inputs are not as expected, print help.&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;sName="`echo $0|awk -F '/' '{print $NF}'`"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo -e "\n\n\t\t### $sName Version 2.0###\n"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo -e "# Usage:\t$sName -w &amp;lt;warnlevel&amp;gt; -c &amp;lt;critlevel&amp;gt;"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo -e "\t\t= warnlevel and critlevel is percentage value without %\n"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;echo "# EXAMPLE:\t/usr/lib64/nagios/plugins/$sName -w 80 -c 90"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo -e "\nCopyright (C) 2012 Lukasz Gogolin (lukasz.gogolin@gmail.com), improved by Nestor 2015\n\n"&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;fi&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&amp;nbsp;&lt;/blockquote&gt;
&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2016/07/nagios-memory-check-plugin.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-9214749112796235964</guid><pubDate>Thu, 10 Dec 2015 06:47:00 +0000</pubDate><atom:updated>2015-12-10T12:17:52.592+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">manage active directory</category><category domain="http://www.blogger.com/atom/ns#">manage samba AD</category><category domain="http://www.blogger.com/atom/ns#">manage samba DC</category><category domain="http://www.blogger.com/atom/ns#">manage samba from windows</category><title>Managing your Samba - Active Directory</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
So how do you &amp;nbsp;manage the samba active directory setup? does it have a front end?&lt;br /&gt;
&lt;br /&gt;
The easiest way to administer an Active Directory is by using Microsoft RSAT (Remote Server Administration Tools) on a Windows machine.

&lt;br /&gt;
&lt;br /&gt;
"samba-tool" already contains many features for common administration 
jobs, but compared with the RSAT, it is still missing many options. 
Another big advantage of using RSAT, it increases the available 
documentation (books, online, etc.), because it's the common way Windows
 administrators are doing these tasks.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Download and install RSAT from microsoft website and setup using - Add or remove windows programs feature from control panel.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style="text-align: left;"&gt;
Installation:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Install RSAT using the downloaded installer&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt; Open "Programs and Features" (use the "Start Menu/Metro search to locate the tool).&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt; Open "Turn Windows features on or off"&lt;/li&gt;
&lt;/ul&gt;
&lt;dl&gt;&lt;dd&gt;Depending on the administrative tasks you want to perform, you 
choose the features to install. The following are recommended options to
 be installed for Samba Active Directory installations:&lt;/dd&gt;&lt;/dl&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinniK7vwijf7iBfymEdqFNa-2QcT3oxv0579iCFP5jWBUeJjR4I_bYu7sfNCM-sM6-R80kzWQl1BGZP-nyZXpyXaDrMC52CQtkTXMMltPMlCiGZNb83FBevDO3a-HE-coVwL2fJlUqn-Er/s1600/Turn+on+windows+features.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinniK7vwijf7iBfymEdqFNa-2QcT3oxv0579iCFP5jWBUeJjR4I_bYu7sfNCM-sM6-R80kzWQl1BGZP-nyZXpyXaDrMC52CQtkTXMMltPMlCiGZNb83FBevDO3a-HE-coVwL2fJlUqn-Er/s1600/Turn+on+windows+features.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
Most of the RSAT tools hide content and menu options in their default
 setting. To enable all features and display the whole content in each 
program, go to the "View" menu and activate "Advanced Features". 
Typically this option is only visible, when you've marked the root of 
the tree view.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV3voLFw5MdgOdC43YhUR7GmfVfVmDCpRreLGDx2b1m3GDdYGA0G8pmupUKRLRpnprrjh7SMdtRFQQxHdyX3OfDCNCoXc2utDalBYIZDWCp8e4-Dp-EZyY_n9QLzdq-7vUXV4WFOnIzlL3/s1600/AD+enabling+advanced+features.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV3voLFw5MdgOdC43YhUR7GmfVfVmDCpRreLGDx2b1m3GDdYGA0G8pmupUKRLRpnprrjh7SMdtRFQQxHdyX3OfDCNCoXc2utDalBYIZDWCp8e4-Dp-EZyY_n9QLzdq-7vUXV4WFOnIzlL3/s1600/AD+enabling+advanced+features.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Ref:&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
1. &lt;a href="https://wiki.samba.org/index.php/Installing_RSAT" target="_blank"&gt;Installing RSAT&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Hope this helps :)&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2015/12/managing-your-samba-active-directory.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinniK7vwijf7iBfymEdqFNa-2QcT3oxv0579iCFP5jWBUeJjR4I_bYu7sfNCM-sM6-R80kzWQl1BGZP-nyZXpyXaDrMC52CQtkTXMMltPMlCiGZNb83FBevDO3a-HE-coVwL2fJlUqn-Er/s72-c/Turn+on+windows+features.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-458346070700020161</guid><pubDate>Thu, 10 Dec 2015 05:55:00 +0000</pubDate><atom:updated>2015-12-10T11:48:10.871+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Active Directory Alternatives</category><category domain="http://www.blogger.com/atom/ns#">Linux Active Directory</category><category domain="http://www.blogger.com/atom/ns#">Samba Domain Controller</category><title>Setup your free Active Directory in linux :)</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hey Guys!&lt;br /&gt;
&lt;br /&gt;
So we had to decommission our Active Directory server as it was running on pretty old hardware and win 2003. With the cost factor involved we decided to give linux based domain controller a try. All my initial thoughts was to use ldap as thats what we normally refer to as AD alternative for linux, unfortunately things were not as easy as it seemed to be. we could only add linux machines or users to the ldap and the guy who manages the system ( who provisions machines and user accounts ) found it difficult to use ldap frontend.&lt;br /&gt;
&lt;br /&gt;
So there started the search for something simpler and easy to manage and voila here comes SAMBA 4. Samba 4 ?? are you crazy its used for sharing files to windows machines how can you even compare it with Active Directory! its true :) I am just quoting the details from samba wiki here as its very much informative.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Things to look out for&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1. DNS - super important as everything depends on how dns setup is configured. So extra care needs to be done while this is setup. Almost 90% of issues arises due to incorrect DNS setups&lt;br /&gt;
2. Use of static IPs instead of dhcp.&lt;br /&gt;
&lt;br /&gt;
Explanations for the links shared below.&lt;br /&gt;
&lt;br /&gt;
1. This one pretty much helps you setup the primary DC&lt;br /&gt;
2. The second link helps you to setup a failover/setup&lt;br /&gt;
&lt;br /&gt;
Ref:&lt;br /&gt;
&lt;br /&gt;
1.&amp;nbsp;&lt;a href="https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller" target="_blank"&gt;Setup a Samba Active Directory Domain Controller&lt;/a&gt;&lt;br /&gt;
2.&amp;nbsp;&lt;a href="https://wiki.samba.org/index.php/Join_an_additional_Samba_DC_to_an_existing_Active_Directory" target="_blank"&gt;Join an additional Samba DC to an existing Active Directory&lt;/a&gt;&lt;br /&gt;
3. &lt;a href="https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins" target="_blank"&gt;Check and fix DNS entries on DC joins&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps ;)&lt;br /&gt;
&lt;br /&gt;
Check out the blog for more details on how to manage the Samba DC from a windows machine like you do with Active Directory.&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2015/12/setup-your-free-active-directory-in.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-5239734531053097915</guid><pubDate>Mon, 31 Aug 2015 09:11:00 +0000</pubDate><atom:updated>2015-08-31T14:41:02.721+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">pkg_resources.DistributionNotFound:</category><category domain="http://www.blogger.com/atom/ns#">python error</category><title>Python + pkg_resources.DistributionNotFound: </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This usually occurs if your python setuptools are old version. I tried upgrading them and the errors are gone :)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
pip install --upgrade setuptools&lt;/blockquote&gt;
&lt;br /&gt;
For those who want the latest stable version use the above command or you can try yum to install python-setuptools&lt;br /&gt;
&lt;br /&gt;
Hope it helps!&amp;nbsp;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2015/08/python-pkgresourcesdistributionnotfound.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-2480348563733167135</guid><pubDate>Mon, 31 Aug 2015 09:05:00 +0000</pubDate><atom:updated>2015-08-31T14:36:42.706+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">python.h</category><title>error: Python.h: No such file or directory</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Okay guys so I was trying to install locust using pip and the installation was failing due to the following error.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
"error: Python.h: No such file or directory"&lt;/blockquote&gt;
&lt;br /&gt;
Found out that the python devel package was not installed and hence the error. So I installed the devel package and voila.. things were back on track :)&lt;br /&gt;
&lt;br /&gt;
So in general if you find that something.h file is missing or not found, it usually means that the devel packages are not installed.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
#yum install python-devel&lt;/blockquote&gt;
&lt;br /&gt;
Hope this helps someone :)&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2015/08/error-pythonh-no-such-file-or-directory.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-1174556529789536941</guid><pubDate>Fri, 07 Nov 2014 05:27:00 +0000</pubDate><atom:updated>2014-11-07T10:57:57.932+05:30</atom:updated><title>system failure: POST failed, status=413 upload too large: file '/': upload too large -- Restoring Large Zimbra backups</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Okay so zimbra account restoration for large accounts ( above 1GB ) was not working for me. the following steps helped to restore large accounts.&lt;br /&gt;
&lt;br /&gt;
What you need to do is &amp;nbsp;to change parameter rest_request_max_upload_size to a larger value. Here we will change it to 10GB.&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;br /&gt;#
su zimbra&lt;br /&gt;#&amp;nbsp;/opt/zimbra/bin/zmlocalconfig -e rest_request_max_upload_size=10737418240&lt;br /&gt;# &amp;nbsp;zmmailboxdctl restart&lt;br /&gt;# exit&lt;/blockquote&gt;
&lt;br /&gt;
Then run the import backup account like this as root user.&lt;br /&gt;
&lt;br /&gt;
# /opt/zimbra/bin/zmmailbox -z -m "email@domain.com" postRestURL "//?fmt=tgz&amp;amp;resolve=reset" &amp;nbsp;backupfile.tar.gz&lt;br /&gt;
&lt;br /&gt;
Thanks to&amp;nbsp;Andrea for the tip :)&lt;br /&gt;
&lt;br /&gt;
ref url: &lt;a href="http://forums.zimbra.com/showthread.php?t=58626&amp;amp;page=2" rel="nofollow" target="_blank"&gt;LINK&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2014/11/system-failure-post-failed-status413.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-2637333164576838443</guid><pubDate>Wed, 20 Aug 2014 08:06:00 +0000</pubDate><atom:updated>2014-08-20T13:39:17.585+05:30</atom:updated><title>Ruby installation issue with openssl</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
So i was trying to install ruby 1.87 and the compilation broke due to openssl issue. The error was something like this.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:&lt;br /&gt;
ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a cast&lt;br /&gt;
ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)&lt;br /&gt;
ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once&lt;br /&gt;
ossl_pkey_ec.c:815: error: for each function it appears in.)&lt;br /&gt;
make[1]: *** [ossl_pkey_ec.o] Error 1&lt;br /&gt;
make[1]: Leaving directory `/usr/local/src/ruby-enterprise-1.8.7-2012.02/source/ext/openssl'&lt;br /&gt;
make: *** [all] Error 1&lt;/blockquote&gt;
So applied this patch to the openssl file in the extracted ruby source and finally the compilation was successfull. You will need to specify the location of the ossl_pkey.ec.c file in the below file or you can mention it while patching.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
--- ruby-1.8.7-p374/ext/openssl/ossl_pkey_ec.c&amp;nbsp; 2010-06-21 04:18:59.000000000 -0500&lt;br /&gt;
+++ /root/ruby-1.8.7-p374/ext/openssl/ossl_pkey_ec.c&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013-12-10 13:30:18.919963527 -0600&lt;br /&gt;
@@ -757,8 +757,10 @@&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method = EC_GFp_mont_method();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (id == s_GFp_nist) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method = EC_GFp_nist_method();&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if !defined(OPENSSL_NO_EC2M)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (id == s_GF2m_simple) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method = EC_GF2m_simple_method();&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (method) {&lt;br /&gt;
@@ -811,8 +813,10 @@&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (id == s_GFp) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_curve = EC_GROUP_new_curve_GFp;&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if !defined(OPENSSL_NO_EC2M)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (id == s_GF2m) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_curve = EC_GROUP_new_curve_GF2m;&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rb_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m");&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/blockquote&gt;
&lt;br /&gt;
Change your location to the ruby source directory and save the contents 
to a file named patch.txt. then issue the following command to patch.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
#patch &amp;lt; patch.txt&lt;/blockquote&gt;
&lt;br /&gt;
Hope this helps :) &lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2014/08/ruby-installation-issue-with-openssl.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-6055872972554344513</guid><pubDate>Wed, 06 Aug 2014 05:55:00 +0000</pubDate><atom:updated>2014-08-06T11:25:29.738+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">office 2007 issues with wine</category><category domain="http://www.blogger.com/atom/ns#">powerpoint not working in wine</category><title>For those who have Issues running Microsoft Office 2007 on Wine.</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;So I had to remove my windows altogether and run linux. I choose the latest stable release of Mint 17, i need to have ms office installed and figured out the wine package should handle this fine. however it was not smooth as i thought.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Installation was fine. But the excel and power point was not opening and had trouble. So here is something that I did made it work for me.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;1. Open the wine configuration ( gui --&amp;gt; Configure Wine ) and select the windows version to be "windows xp"&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGMfKeR6KNpdv5Dwll4IRhuJYjSI8xwc-CKK5OQLh8GZGMdm8z3Wu3kWFhFNDA5h1bDHocD9bSJ6HGeo0N2kh0dUQMm4e8x7emSrEdCrr0rIBJai3AqWz5KizPTAXh1UI3Y4PSV5NQ92i/s1600/wine+1.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGMfKeR6KNpdv5Dwll4IRhuJYjSI8xwc-CKK5OQLh8GZGMdm8z3Wu3kWFhFNDA5h1bDHocD9bSJ6HGeo0N2kh0dUQMm4e8x7emSrEdCrr0rIBJai3AqWz5KizPTAXh1UI3Y4PSV5NQ92i/s1600/wine+1.jpeg" height="400" width="345" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;2. Check the libraries tab next, you will need to add&amp;nbsp;&lt;/span&gt; a new override for the library, choose "riched 20" and click add. Then you need to edit this newly added override and change the load order to "native ( windows )"&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiazXYkSzOCJwejEaHnIVVd41Ijmdc9rVAVnFI4IsK3QI4dLND7MhM5CIIVYzI3fXVsarryBCvRyp4cOuLWeRjg7WU9RsdoXw-xYgXWhZZLucVu57JQYPscNUM1BJrIT-92OSjtZ5ZFn_A1/s1600/wine+2.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiazXYkSzOCJwejEaHnIVVd41Ijmdc9rVAVnFI4IsK3QI4dLND7MhM5CIIVYzI3fXVsarryBCvRyp4cOuLWeRjg7WU9RsdoXw-xYgXWhZZLucVu57JQYPscNUM1BJrIT-92OSjtZ5ZFn_A1/s1600/wine+2.jpeg" height="400" width="340" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Apply the wine configuration and then try launching the powerpoint or excel, it should work :)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2014/08/for-those-who-have-issues-running.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGMfKeR6KNpdv5Dwll4IRhuJYjSI8xwc-CKK5OQLh8GZGMdm8z3Wu3kWFhFNDA5h1bDHocD9bSJ6HGeo0N2kh0dUQMm4e8x7emSrEdCrr0rIBJai3AqWz5KizPTAXh1UI3Y4PSV5NQ92i/s72-c/wine+1.jpeg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-1245693388853774683</guid><pubDate>Mon, 26 Aug 2013 08:10:00 +0000</pubDate><atom:updated>2013-08-26T13:42:07.463+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">hosts</category><category domain="http://www.blogger.com/atom/ns#">hosts disappear</category><category domain="http://www.blogger.com/atom/ns#">nagios</category><title>Nagios - Hosts Disappear</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Well I had configured my nagios setup and everything seemed to be fine, then i noticed something strange! The hosts keep disappearing time to time. They do come up at an odd time but not always. Well lot of time was spent on configurations analyzing what went wrong and what ! no LUCK!! :(&lt;br /&gt;
&lt;br /&gt;
So to all those who has this problem, here's something that you might want to check for. Such an issue arises due to more number of nagios PIDs, ie the shutdown of previous nagios was not proper and that PID is messing up with the new one. So to troubleshoot stop nagios, check for orphaned PIDs.. kill it and start nagios again. Voila the hosts started appearing with no issues again!! :)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
[root@server ~]#&amp;nbsp;&amp;nbsp;&amp;nbsp; ps -ef | grep -i&amp;nbsp; nagios&lt;br /&gt;
nagios&amp;nbsp;&amp;nbsp; 23581&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 Aug22 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;
nagios&amp;nbsp;&amp;nbsp; 24686&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 Aug19 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:01 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;
root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29749 27976&amp;nbsp; 0 07:14 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep -i nagios&lt;br /&gt;
&lt;br /&gt;
[root@server ~]#&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/init.d/nagios stop&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# &amp;nbsp;&amp;nbsp;&amp;nbsp; ps -ef | grep -i&amp;nbsp; nagios&lt;br /&gt;
nagios&amp;nbsp;&amp;nbsp; 24686&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 Aug19 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:01 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;
root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29760 27976&amp;nbsp; 0 07:14 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep -i nagios&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# &amp;nbsp;&amp;nbsp;&amp;nbsp; kill -9 24686&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# &amp;nbsp;&amp;nbsp;&amp;nbsp; ps -ef | grep -i&amp;nbsp; nagios&lt;br /&gt;
root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29762 27976&amp;nbsp; 0 07:14 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep -i nagios&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# &amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/init.d/nagios start&lt;br /&gt;
Starting nagios: done.&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# &amp;nbsp;&amp;nbsp;&amp;nbsp; ps -ef | grep -i&amp;nbsp; nagios&lt;br /&gt;
nagios&amp;nbsp;&amp;nbsp; 29791&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp; 0 07:14 ?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;
root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29795 27976&amp;nbsp; 0 07:14 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 grep -i nagios&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2013/08/nagios-hosts-disappear.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-4803223355924436021</guid><pubDate>Thu, 06 Jun 2013 08:50:00 +0000</pubDate><atom:updated>2013-06-06T14:21:33.352+05:30</atom:updated><title>Hard Disk Cloning - Data Recovery</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Okay, you can use various Linux commands that can be used to clone the hard drive. This can be helpful while recovering data.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&amp;nbsp;&lt;strong&gt;dd&lt;/strong&gt;&lt;/blockquote&gt;
&lt;br /&gt;
The simplest program to clone. &lt;br /&gt;
&lt;br /&gt;
Usage: &lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;blockquote class="tr_bq"&gt;
dd if=/dev/sda/ of=/dev/sdb &lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
It will copy partition table and boot loader and all partitions within this disk&lt;/blockquote&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
Here "if" option specifies your input and "of" specifies your output.&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
Make sure that both hard disks are of the same size.&lt;/blockquote&gt;
&lt;/div&gt;
&lt;span style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 14px/21.98px Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
How to get the status of disk cloning. Open a new terminal and issue the following commands.&lt;/blockquote&gt;
&lt;/div&gt;
&lt;span style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 14px/21.98px Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
# pgrep -l dd&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
56452 dd&lt;/blockquote&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
# kill -USR1 &lt;span style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 14px/21.98px Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;56452&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="-webkit-text-stroke-width: 0px; background-color: white; color: #111111; display: inline !important; float: none; font-size-adjust: none; font-stretch: normal; font: 14px/21.98px Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"&gt;
&lt;/span&gt;&lt;br /&gt;
Here the first command will out put the process id of the dd command and the second command will make dd throw the output in the same shell where its running.&lt;br /&gt;
&lt;br /&gt;
Hope it helps.&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2013/06/hard-disk-cloning-data-recovery.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-2219817919548460863</guid><pubDate>Tue, 11 Dec 2012 07:53:00 +0000</pubDate><atom:updated>2012-12-11T13:23:29.251+05:30</atom:updated><title>Postfix + DKIM setup</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;header&gt;&lt;h2&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;/header&gt;
            
            &lt;article&gt;
            &lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;&lt;span style="text-decoration: underline;"&gt;Installation&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;1) Get the rpmforge repo and install it.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;/em&gt;&lt;br /&gt;&lt;em&gt;# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;/em&gt;&lt;br /&gt;&lt;em&gt;# yum install opendkim postfix&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;2) stop sendmail and remove from auto start.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# /etc/init.d/sendmail stop&lt;/em&gt;&lt;em&gt;# chkconfig remove sendmail&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;3) add postfix and opendkim to the autostart pool&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# chkconfig postfix on&lt;/em&gt;&lt;em&gt;# chkconfig opendkim on&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;4) configure postfix.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# vi /etc/postfix/main.cf&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;configuration options: change the following or comment out the existing and add accordingly.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;myhostname = server.yourdomainname.com ( your server hostname )&lt;/em&gt;&lt;em&gt;mydomain = yourdomainname.com&lt;/em&gt;&lt;em&gt;myorigin = $mydomain&lt;/em&gt;&lt;em&gt;inet_interfaces = all&lt;/em&gt;&lt;em&gt;mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain&lt;/em&gt;&lt;em&gt;home_mailbox = Maildir/&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;Add the following for DKIM in postfix main.cf&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;smtpd_milters = inet:localhost:8891&lt;/em&gt;&lt;em&gt;non_smtpd_milters&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $smtpd_milters&lt;/em&gt;&lt;em&gt;milter_default_action&amp;nbsp;&amp;nbsp; = accept&lt;/em&gt;&lt;em&gt;milter_protocol&amp;nbsp;&amp;nbsp; = 2&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;5) configure Opendkim&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Configuration files of OpenDKIM&lt;br /&gt;&lt;br /&gt;1. /etc/opendkim.conf – OpenDKIM’s main configuration file&lt;br /&gt;2. /etc/opendkim/KeyTable – a list of keys available for signing&lt;br /&gt;3. /etc/opendkim/SigningTable – a list of domains and accounts allowed to sign&lt;br /&gt;4. /etc/init.d/opendkim — Service start up file.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# vi /etc/opendkim.conf&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;Configuration options:&lt;/span&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;em&gt;PidFile /var/run/opendkim/opendkim.pid&lt;/em&gt;&lt;em&gt;Mode&amp;nbsp;&amp;nbsp;&amp;nbsp; sv&lt;/em&gt;&lt;em&gt;Canonicalization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; relaxed/simple&lt;/em&gt;&lt;em&gt;Syslog&amp;nbsp; yes&lt;/em&gt;&lt;em&gt;SyslogSuccess&amp;nbsp;&amp;nbsp; yes&lt;/em&gt;&lt;em&gt;LogWhy&amp;nbsp; yes&lt;/em&gt;&lt;em&gt;UserID&amp;nbsp; opendkim:opendkim&lt;/em&gt;&lt;em&gt;Socket&amp;nbsp; inet:8891@localhost&lt;/em&gt;&lt;em&gt;Umask&amp;nbsp;&amp;nbsp; 002&lt;/em&gt;&lt;em&gt;Selector&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;/em&gt;&lt;em&gt;KeyTable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; refile:/etc/opendkim/KeyTable&lt;/em&gt;&lt;em&gt;SigningTable&amp;nbsp;&amp;nbsp;&amp;nbsp; refile:/etc/opendkim/SigningTable&lt;/em&gt;&lt;em&gt;ExternalIgnoreList&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; refile:/etc/opendkim/TrustedHosts&lt;/em&gt;&lt;em&gt;InternalHosts&amp;nbsp;&amp;nbsp; refile:/etc/opendkim/TrustedHosts&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# cd /etc/opendkim&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;We will create the public and private keys now.&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;em&gt;# cd keys&lt;/em&gt;&lt;em&gt;# mkdir yourdomainname.com; cd yourdomainname.com&lt;/em&gt;&lt;em&gt;# opendkim-genkey -d yourdomainname.com -s default&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;here -d denotes your domain and -s is for selector.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# chown opendkim.opendkim ../yourdomainname.com -R&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# cd ..&lt;/em&gt;&lt;em&gt;# vi KeyTable&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;default._domainkey.yourdomainname.com yourdomainname.com:default:/etc/opendkim/keys/yourdomainname.com/default.private&lt;/em&gt;&lt;br /&gt;&lt;em&gt;# vi SigningTable&lt;/em&gt;&lt;br /&gt;&lt;em&gt;*@yourdomainname.com default._domainkey.yourdomainname.com&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# vi TrustedHosts&lt;/em&gt;&lt;br /&gt;&lt;em&gt;127.0.0.1&lt;/em&gt;&lt;em&gt;localhost&lt;/em&gt;&lt;em&gt;server.yourdomainname.com&lt;/em&gt;&lt;em&gt;yourdomainname.com&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;Note: ensure that localhost is mentioned in TrustedHosts file.&lt;br /&gt;&lt;br /&gt;Now we are ready to test this. Start opendkim first and then postfix.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# /etc/init.d/opendkim start&lt;/em&gt;&lt;em&gt;# /etc/init.d/postfix start&lt;/em&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;Ensure
 that OpenDKIM logs has written on mail log file. This is the only file 
where you ca see any issue with the opendkim errors.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# tail -f /var/log/maillog&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Sep
 20 09:43:50 server opendkim[8535]: OpenDKIM Filter v2.5.2 starting 
(args: -x /etc/opendkim.conf -P /var/run/opendkim/opendkim.pid)&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;br /&gt;Add the DNS records to your domain name. You can get the public dns record from the following file. This is TXT record.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# cat /etc/opendkim/keys/mydomain.com/default.txt&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;ensure to add&amp;nbsp; a "k" ahead of &lt;em&gt;&lt;strong&gt;;=rsa;&lt;/strong&gt;&lt;/em&gt; by default it will be without k, after the mentioned changes the dns record will have &lt;em&gt;&lt;strong&gt;;k=rsa; &lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;default._domainkey IN TXT "v=DKIM1;&lt;strong&gt;k=rsa;&lt;/strong&gt;
 
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJmb2F+hGx+/1Y4dadbsTzg/thhJVsZHT5chFhaoZH6SMALX6J9IIIPSW3NRsap/mUQQ5GVG9IHIBfpAsIJr8CILOVcqAWQbG5XTn9Sk1p76abg3tyR01rhSTG2CljLmkNAPqOSrE5uUEXRq1T+eGhS1EVHFWmQ5lF8ZAyoyEHewIDAQAB"
 ; ----- DKIM default for yourdomainname.com&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="text-decoration: underline;"&gt;Important&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; : Don’t forget to set SPF record that may boost the email delivery. &lt;br /&gt;&lt;br /&gt;Send out a test email and verify.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;em&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;# echo " This is a test mail " | mail -s "OpenDKIM test mail" mygmail@gmail.com&lt;/span&gt;&lt;/em&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;If everything goes well you see a messages “DKIM-Singnature header added” in mail log.&lt;br /&gt;&lt;/span&gt;&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;# tail -f /var/log/messages&lt;br /&gt; &lt;/em&gt;&lt;br /&gt;&lt;em&gt;Sep 20 09:47:33 server opendkim[8535]: 33040108639: DKIM-Signature header added (s=default, d=yourdomainname.com)&lt;/em&gt;&lt;em&gt;Sep 20 09:47:33 server postfix/qmgr[2390]: 33040108639: from=&lt;user yourdomainname.com="yourdomainname.com"&gt;, size=3016, nrcpt=1 (queue active)&lt;/user&gt;&lt;/em&gt;&lt;em&gt;Sep
 20 09:47:33 server sendmail[8671]: q8KDlXa9008671: 
to=mygmail@gmail.com, ctladdr=user@yourdomainname.com (503/503), 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32554, 
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 
33040108639)&lt;/em&gt;&lt;em&gt;Sep 20 09:47:33 server postfix/smtpd[8636]: disconnect from GF-P-server.yourserver.com[127.0.0.1]&lt;/em&gt;&lt;em&gt;Sep
 20 09:47:34 server postfix/smtp[8642]: 33040108639: 
to=&lt;mygmail gmail.com="gmail.com"&gt;, 
relay=mailin-04.mx.aol.com[205.188.146.194]:25, delay=1.3, 
delays=0.1/0/0.24/0.95, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 
05217380000B9)&lt;/mygmail&gt;&lt;/em&gt;&lt;em&gt;Sep 20 09:47:34 server postfix/qmgr[2390]: 33040108639: remove&lt;/em&gt;&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;


&lt;br /&gt;

&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Check the email header for confirmation : you should see dkim= pass&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;

&lt;br /&gt;

&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Hope this helps :)&lt;/span&gt;&lt;br /&gt;

&lt;/article&gt;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2012/12/postfix-dkim-setup.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-651793293456598086</guid><pubDate>Sat, 13 Oct 2012 06:46:00 +0000</pubDate><atom:updated>2012-10-13T12:18:26.500+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">kvm</category><category domain="http://www.blogger.com/atom/ns#">libvirtd</category><category domain="http://www.blogger.com/atom/ns#">virt-install</category><category domain="http://www.blogger.com/atom/ns#">virt-manager</category><title>Quick Setup KVM aka Kernel-based Virtual Machine</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Well, I thought this was something difficult, but trust me its not brain twister to setup the virtual machines using KVM.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Note: This tutorial assumes you understand the basics of linux and aware of the commands usage.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ok here is how I setup the same.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. Install CentOS 6 &amp;nbsp;( minimal Installation )&lt;/div&gt;
&lt;div&gt;
2. Turn of selinux&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class="tr_bq"&gt;
# vi /etc/selinux/config&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
make the following change.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class="tr_bq"&gt;
SELINUX=disabled&amp;nbsp;&lt;/blockquote&gt;
Now reboot your machine to have this applied.&lt;br /&gt;
&lt;br /&gt;
3. Update the system using yum&lt;br /&gt;
&lt;br /&gt;
4. Install packages for Virtualization to work.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
#&amp;nbsp;yum install -y&amp;nbsp;openssh-server openssh-client&amp;nbsp;qemu-kvm &amp;nbsp;libvirt&amp;nbsp;bridge-utils&amp;nbsp;virt-manager.x86_64 &amp;nbsp;virt-top.x86_64 screen&lt;/blockquote&gt;
&lt;br /&gt;
5. Lets setup the network now. For the kvm to work, we will need to setup bridge network. The following is the configuration options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0&lt;br /&gt;
DEVICE="eth0"&lt;br /&gt;
NM_CONTROLLED="no"&lt;br /&gt;
ONBOOT=yes&lt;br /&gt;
HWADDR=00:01:6C:53:82:72&lt;br /&gt;
BRIDGE="br0"&lt;br /&gt;
[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0&lt;br /&gt;
DEVICE="br0"&lt;br /&gt;
NM_CONTROLLED="no"&lt;br /&gt;
ONBOOT=yes&lt;br /&gt;
HWADDR=00:01:6C:53:82:72&lt;br /&gt;
TYPE=Bridge&lt;br /&gt;
IPADDR=192.168.1.10&lt;br /&gt;
PREFIX=24&lt;br /&gt;
GATEWAY=192.168.1.1&lt;br /&gt;
DNS1=8.8.8.8&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4. Save the settings and open a screen to restart the network.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class="tr_bq"&gt;
# screen -S network&lt;br /&gt;
# /etc/init.d/network restart&lt;/blockquote&gt;
5. Now you should see the bridge network up and running.&lt;br /&gt;
&lt;br /&gt;
6. Start libvirtd&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
# /etc/init.d/libvirtd start&lt;/blockquote&gt;
&lt;br /&gt;
Oops. it did not start for me :D&amp;nbsp;here's&amp;nbsp;what was missing&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
# &amp;nbsp;yum -y install avahi&lt;/blockquote&gt;
&lt;br /&gt;
Now libvirtd will start..&lt;br /&gt;
&lt;br /&gt;
7. Copy an ISO to your home directory so that we can use this for creating Virtual Machines, we will be using centos here.&lt;br /&gt;
&lt;br /&gt;
8. Create your VMs now&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
# virt-install --name=server_name --ram=512 --arch=x86_64 --vcpus=2 --location=/home/packages/CentOS-6.0-x86_64-bin-DVD1.iso &amp;nbsp;--os-type=linux --os-variant=rhel6 --file /home/images/server.img &amp;nbsp;--nonsparse --nographics -s15 --extra-args='console=tty0 console=ttyS0,115200n8' --prompt&lt;/blockquote&gt;
9. Use Man pages for exact options.&lt;br /&gt;
&lt;br /&gt;
Hope this helps :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2012/10/quick-setup-kvm-aka-kernel-based.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total><georss:featurename>Kakkanad, Kerala, India</georss:featurename><georss:point>10.010122116905332 76.363112926483154</georss:point><georss:box>10.009144616905333 76.361878926483158 10.011099616905332 76.364346926483151</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-919890187513966766</guid><pubDate>Fri, 17 Feb 2012 13:18:00 +0000</pubDate><atom:updated>2012-02-17T18:48:58.220+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">gem</category><category domain="http://www.blogger.com/atom/ns#">ruby</category><title>Unable to install applications using GEM</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
I faced an issue today, I was trying to install a package using gem command but ended up in the following error&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
Building native extensions. &amp;nbsp;This could take a while...&lt;br /&gt;ERROR: &amp;nbsp;Error installing cassandra:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ERROR: Failed to build gem native extension.&lt;br /&gt;/usr/bin/ruby extconf.rb&lt;br /&gt;mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So in order to fix this you need to install the ruby-devel package.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
you can use yum or rpm or which ever you are comfortable with.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2012/02/unable-to-install-applications-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-1537000466602065461</guid><pubDate>Wed, 14 Dec 2011 15:17:00 +0000</pubDate><atom:updated>2011-12-14T20:47:03.252+05:30</atom:updated><title>cPanel + mysql slow queries to TABLE_SCHEMA</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;If you are seeing the following in mysqladmin proc for a long time then its basically cPanel calculating account disk usage from the information_schema, this tends to increase the load on some servers.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;| 14436 | root &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | localhost | mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Query &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 2227 | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| SELECT TABLE_SCHEMA as DB,SUM(DATA_LENGTH)+SUM(INDEX_LEN&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;GTH) AS SPACEUSED from information_schema.ta |&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;You can place the following in your cpanel conifg 
(/var/cpanel/cpanel.config) to force /scripts/update_db_cache to utilize
 a `du` style disk calculation.  This should help you.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;use_information_schema=0&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
restart cpanel once done :)&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2011/12/cpanel-mysql-slow-queries-to.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-5283505898232668392</guid><pubDate>Sun, 27 Nov 2011 16:42:00 +0000</pubDate><atom:updated>2011-11-27T22:18:45.620+05:30</atom:updated><title>Unable to mount hard disk/Partition</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Yesterday I faced a strange issue, after rebooting the server I noticed that our back drives did not mount automatically. The fstab entries were proper but still the device did not mount. I tried manually&lt;br /&gt;
&lt;br /&gt;
# mount /dev/sdb1 /backup&lt;br /&gt;
&lt;br /&gt;
unable to mount /dev/sdb1 /backup busy or already mounted.&lt;br /&gt;
&lt;br /&gt;
Googled a lot but did not find any fix, checked if the raid setup was causing the issue since we had raid setup sometime back ( although it was not in use )&lt;br /&gt;
&lt;br /&gt;
Did the following to fix this ( try as a last attempt if no other method works :D )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;root@server [~]# dmsetup ls&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;ddf1_4035305a0590430220202020202020201d9400003a354a45 &amp;nbsp; (253, 2)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;VolGroup00-swap (253, 1)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;VolGroup00-root (253, 0)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;root@server [~]# dmsetup remove ddf1_4035305a0590430220202020202020201d9400003a354a45&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;root@server [~]# dmsetup ls&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;VolGroup00-swap (253, 1)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;VolGroup00-root (253, 0)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;root@server [~]# mount /dev/sdb1 /backup&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;root@server [~]# df -h&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #ccffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;"&gt;/dev/sdb1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 276G&amp;nbsp;&amp;nbsp;223G&amp;nbsp;&amp;nbsp; 39G&amp;nbsp;&amp;nbsp;86% /backup&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #ccffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #ccffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Hope this helps :)&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2011/11/unable-to-mount-hard-diskpartition.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-7623950343218197929</guid><pubDate>Sat, 20 Nov 2010 03:50:00 +0000</pubDate><atom:updated>2010-11-20T09:22:45.481+05:30</atom:updated><title>Cpanel upcp error</title><description>&lt;span style="font-family: georgia;"&gt;Issue: root@server [~]# /scripts/upcp --force&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;                                           /scripts/upcp syntax OK&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;                                            Running Futex Check/Fix......Done&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;                                            Undefined subroutine &amp;amp;Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;Solution: wget -O /root/updatenow.static &lt;/span&gt;&lt;a style="font-family: georgia;" href="http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static" target="_blank"&gt;http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static&lt;/a&gt;&lt;span style="font-family: georgia;"&gt; &amp;amp;&amp;amp; perl /root/updatenow.static --manual&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;               Then run  /scripts/upcp --force.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;It should fix it!!&lt;/span&gt;</description><link>http://admin4you.blogspot.com/2010/11/cpanel-upcp-error.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-8405794087581531324</guid><pubDate>Wed, 27 Oct 2010 07:46:00 +0000</pubDate><atom:updated>2013-08-27T13:11:31.022+05:30</atom:updated><title>mount/Unmount a partition in Linux</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: 'courier new';"&gt;I was trying to umount a partition, it gave me error saying the device is busy and un mount was not working. I then started to troubleshoot this and came to the conclusion that something was still accessing the partition and hence the Linux was not allowing me to unmount it. So what do you do to know what process is using this? There are couple of command utilities that can assist you in this. One is &lt;strong&gt;lsof&lt;/strong&gt;&amp;nbsp;and the other one is &lt;strong&gt;fuser,&lt;/strong&gt;&amp;nbsp; so how do you use this? lets see that below.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Courier New;"&gt;# lsof /dev/sda2&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Courier New;"&gt;&lt;/span&gt;&amp;nbsp;&lt;span style="font-family: Courier New;"&gt;or &lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Courier New;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Courier New;"&gt;# fuser -m /dev/sda2&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;it will list you the process that is using that partition, either stop the process or kill it and then you can umount it. Hope it helps ;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2010/10/mountunmount-partition.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-373401499195565682</guid><pubDate>Fri, 01 Oct 2010 14:27:00 +0000</pubDate><atom:updated>2012-10-16T15:37:41.887+05:30</atom:updated><title>Recovering files/settings from a cPanel server from a Harddisk failure/Crash</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;Bad things happen...Same is the case with a server, Suppose you have a cPanel server and one fine morning, you get this alert.. Site DOWN!!!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;
oops your hdd crashed? well dont panick... contact your datacentre and get the same OS installed on a new hdd, lets do the data recovery real fast!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;
Once the server is UP with new OS, install cPanel and connect your old hdd as slave and mount it to /oldHD&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# mount /dev/sdb1 /oldHD&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;Run these rsync commands to move everything over;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/usr/local/apache/conf /usr/local/apache&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/var/named /var&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/home/* /home&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/usr/local/cpanel /usr/local&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/var/lib/mysql /var/lib&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/var/cpanel /var&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, 'Times New Roman', serif;"&gt;# rsync -vrplogDtH /oldHD/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/var/log/bandwidth /var/log&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/usr/local/frontpage /usr/local&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/var/spool/cron /var/spool&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/root/.my.cnf /root&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/etc/httpd/conf/httpd.conf /etc/httpd/conf&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH /oldHD/etc/sysconfig/network /etc/sysconfig&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;almost done.. now some configuration files need to be copied.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;go to the old etc directory&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# cd /oldHD/etc&lt;/span&gt;&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;Once this is complete run&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# /scripts/fixeverything&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# /scripts/upcp –force&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;# /scripts/easyapache&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style="font-family: Times, Times New Roman, serif;"&gt;everything should be working fine now :)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://admin4you.blogspot.com/2010/10/recovering-filessettings-from-cpanel.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-1752672718762503925</guid><pubDate>Thu, 08 Jul 2010 08:24:00 +0000</pubDate><atom:updated>2011-11-27T22:23:45.836+05:30</atom:updated><title>Extended logging in Exim</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;1. Open /etc/exim.conf&lt;img alt="Remove Formatting from selection" border="0" class="gl_clean" src="http://www.blogger.com/img/blank.gif" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;#vi /etc/exim.conf&lt;/span&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;2. Enter the following&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #222222; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;log_selector=+all&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #222222; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;3. Save the file and change its attribute&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;# chattr + i &amp;nbsp;/etc/exim.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;4. Restart Exim&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;# /etc/init.d/exim restart&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Thats it! now check the exim log&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;# tail -f /var/log/exim_mainlog&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2010/07/enabling-extended-logging-in-exim.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-4347516643948248889</guid><pubDate>Sat, 28 Nov 2009 05:39:00 +0000</pubDate><atom:updated>2011-11-27T22:24:20.382+05:30</atom:updated><title>Enable Quota in VPS ( openvz )</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;If you are experiencing an issue with OpenVZ VPS disk quota, please make sure that the following values are set in the VPS conf.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;VPS conf Location : &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/etc/vz/conf/VEId.conf&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;In the main node, do the following steps.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;1) #&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;grep DISK_QUOTA /etc/vz/conf/VEId.conf&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;If no disk quota value has found ot it is disabled, change the value to&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;DISK_QUOTA=yes&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;2) Check that disk quota is enabled in the main server itself.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;grep DISK_QUOTA /etc/sysconfig/vz&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;If not enable the value to yes in the conf.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;DISK_QUOTA=yes&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;3) Check for the value quotaugidlimit .&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;#grep -i quotaugidlimit /etc/vz/conf/veid.conf&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;4) Check the quota module "vzdquota" is loaded or notin main node.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# lsmod |grep -i vzdquota&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;5) You can set the value quotaugidlimit from the main node using the below command.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;vzctl set veid –quotaugidlimit 500 –save&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;6) Make sure to reboot the mentioned node from the main node.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;vzctl restart veid&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;7) Enter the the node for which you are experiencing the problem.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;vzctl enter veid&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Type the command 'mount'. It should give a similar output.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# mount&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/dev/simfs on / type reiserfs (rw,usrquota,grpquota)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/proc on /proc type proc (rw)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/sys on /sys type sysfs (rw)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;none on /dev type tmpfs (rw)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;none on /dev/pts type devpts (rw)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Also make sure that symbolic links are existing from aquota.group and aquota.user to their respectve physical locations.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;#&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; ll&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;total 64&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;lrwxrwxrwx  1 root root   39 Oct 19 11:41 aquota.group -&amp;gt; /proc/vz/vzaquota/00000030/aquota.group&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;lrwxrwxrwx  1 root root   38 Oct 19 11:41 aquota.user -&amp;gt; /proc/vz/vzaquota/00000030/aquota.user &lt;/span&gt;&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2009/11/enable-vps-quota.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-4873063011757749342</guid><pubDate>Sun, 22 Nov 2009 11:39:00 +0000</pubDate><atom:updated>2011-11-27T22:29:09.664+05:30</atom:updated><title>Create VPS nodes in OpenVZ</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Steps for creating nodes in OpenVZ.&lt;br /&gt;
&lt;br /&gt;
1. First of all check if the templates are available.&amp;nbsp;Go to the vz cache directory&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# cd /vz/template/cache&lt;br /&gt;
&lt;br /&gt;
[root@server cache]# pwd&lt;br /&gt;
/vz/template/cache&lt;br /&gt;
[root@server cache]# ll&lt;br /&gt;
total 1356612&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;158160318 Jul 10 &amp;nbsp;2010 centos-4-x86.tar.gz&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;158609159 Sep 14 16:11 centos-4-x86.tar.gz.1&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;130092151 May 13 &amp;nbsp;2008 centos-5-i386-default.tar.gz&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;191595463 Sep 14 16:16 centos-5-x86_64.tar.gz&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;180022352 Apr 26 &amp;nbsp;2010 centos-5-x86.tar.gz&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;212917989 Sep 14 16:25 centos-6-x86_64.tar.gz&lt;br /&gt;
-rw-r--r-- 1 root &amp;nbsp;root &amp;nbsp;117087334 Nov 12 &amp;nbsp;2010 debian-4.0-x86.tar.gz&lt;br /&gt;
[root@server cache]#&lt;br /&gt;
[root@server cache]#&lt;br /&gt;
&lt;br /&gt;
if you do not have any templates you can download the precreated templates from the openvz website&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://wiki.openvz.org/Download/template/precreated"&gt;http://wiki.openvz.org/Download/template/precreated&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once downloaded follow the steps below to create the nodes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@server ~]# vzctl create 101 --ostemplate centos-5-i386-default --config vps.basic&lt;br /&gt;
[root@server ~]# vzctl set 101 --onboot yes --save&lt;br /&gt;
[root@server ~]# vzctl set 101 --hostname training.server.com --save&lt;br /&gt;
[root@server ~]# vzctl set 101 --ipadd 192.168.0.101 --save&lt;br /&gt;
[root@server ~]# vzctl set 101 --nameserver 4.2.2.2 --save&lt;br /&gt;
[root@server ~]# vzctl start 101&lt;br /&gt;
[root@server ~]# vzctl exec 101 /etc/init.d/sshd start&lt;br /&gt;
[root@server ~]# vzctl exec 101 passwd&lt;br /&gt;
&lt;br /&gt;
Hope this helps!&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2009/11/vps.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-3685890050277591718</guid><pubDate>Sun, 22 Nov 2009 11:25:00 +0000</pubDate><atom:updated>2009-11-22T16:55:49.151+05:30</atom:updated><title>cpDav service failed : Solution</title><description>&lt;span style="font-family: courier new;"&gt;There have been a number of tickets (and a few forum posts), regarding emails for the perl modules Net::DAV::Server and XML::LibXML not being installed properly.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;It turns out this is an issue with the libxml2 package (not the perl module) on 64-bit CentOS systems.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Anyone encountering this, here is the fix (from the cPanel 11 release notes):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div style="font-family: courier new;" class="codetop"&gt;CODE&lt;/div&gt;&lt;div style="font-family: courier new;" class="codemain"&gt;&lt;!--ec1--&gt;Issue: Conflicting libxml installs cause cpdavd (Web Disk Server) to fail. 64 bit linux only&lt;br /&gt;Symptoms: cpdavd won’t start, running /usr/local/cpanel/bin/checkperlmodules shows that XML::libXML will not install and Net::DAV::Server will not install&lt;br /&gt;&lt;br /&gt;Solution: Run https://your.IP.here:2087/scripts2/autofixer and enter libxml64fix.&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;This fix downloads the libxml2 source code and compiles the newest versions. The yum package manage apparently doens't have the latest version for CentOS in their repository, I guess.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Here's a relevent Cpanel forums topic:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-family: courier new;" href="http://forums.cpanel.net/showthread.php?t=67047" class="bbc_url" title="External link" rel="nofollow"&gt;http://forums.cpanel...ead.php?t=67047&lt;/a&gt;</description><link>http://admin4you.blogspot.com/2009/11/cpdav-service-failed-solution.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-5453996797708782343</guid><pubDate>Sun, 22 Nov 2009 11:13:00 +0000</pubDate><atom:updated>2009-11-22T16:44:14.068+05:30</atom:updated><title>cPanel Logs</title><description>&lt;div style="font-family: courier new;" class="snap_preview"&gt;&lt;p style="text-align: justify;"&gt;Applications can log the system activity in two ways, one being according to their autonomous logic &amp;amp; the other through the system’s log daemon, well know as syslog..&lt;/p&gt; &lt;p style="text-align: justify;"&gt;The syslog daemon’s configuration file &lt;strong&gt;/etc/syslog.conf &lt;/strong&gt;contains all the necessary paths/locations as to where the logs are stored.&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Usually the directory /var/log/ is used for the system logs but other applications use the applications specified directories to store their log files…&lt;br /&gt;Many distributions provide tools to manage and analyze the system logs.&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Logrotate is a well known log rotation tool which usually is configured in the /etc/logrotate.conf file.&lt;br /&gt;It may also have additional package-defined configurations in the /etc/logrotate.d/ directory..&lt;br /&gt;In order to understand what’s happening on the system a brief analysis of /etc/syslog.conf is mandatory for checking the main logs positions.&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Here are some basic log files, their locations &amp;amp; a brief description which can be found in Linux distros [mostly in cPanel ]:&lt;br /&gt;&lt;strong&gt;General:&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;cPanel/WHM Initial Installation Errors:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/cpanel*install*&lt;br /&gt;Description : These log files contain cPanel installation logs &amp;amp; should be referenced first for any issues resulting from new cPanel installations..&lt;br /&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Cpanel/WHM Service Status Logs&lt;/em&gt;&lt;/strong&gt;:&lt;br /&gt;Location : /var/log/chkservd.log&lt;br /&gt;Description :The service monitoring demon (chkservd) logs all service checks here. Failed service are represented with a [-] and active services are represented by [+].&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Cpanel/WHM Accounting Logs&lt;/strong&gt;&lt;/em&gt;:&lt;br /&gt;Location : /var/cpanel/accounting.log&lt;br /&gt;Description : Contains a list of accounting functions performed through WHM, including account removal and creation..&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;strong&gt;cPanel/WHM Specific Requests and Errors:&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;cPanel error logs:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/error_log&lt;br /&gt;Description : cPanel logs any error it incurs here. This should be checked when you encounter errors or strange behavior in cPanel/WHM…&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;cPanel License Error Logs:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/license_log&lt;br /&gt;Description : All license update attempts are logged here. If you run into any errors related to license when logging in, check here.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Stats Daemon Logs:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/stats_log&lt;br /&gt;Description : The stats daemon (cpanellogd) logs the output from all stats generators (Awstats, Webalizer, Analog) here.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Client Information, Requested URL Logs:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/access_log&lt;br /&gt;Description : General information related to access cPanel requests is logged here.&lt;br /&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;cPanel/WHM Update Logs:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Location : /var/cpanel/updatelogs/update-[TIMESTAMP].log&lt;br /&gt;Description : Contains all output from each cPanel update [upcp]. It’s named with the timestamp at which the upcp process was initiated..&lt;br /&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Bandwidth Logs:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Location : /var/cpanel/bandwidth&lt;br /&gt;Description : Files contain a list of the bandwidth history for each account. Each named after their respective user.&lt;br /&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Tailwatchd [New]:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/tailwatchd_log&lt;br /&gt;Description : Logs for daemon configuired under tailwatchd ie. cPBandwd, Eximstats, Antirelayd.&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;strong&gt;Apache Logs:&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;General Error and Auditing Logs&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/apache/logs/error_log&lt;br /&gt;Description : All exceptions caught by httpd along with standard error output from CGI applications are logged here..&lt;br /&gt;The first place you should look when httpd crashes or you incur errors when accessing website.&lt;br /&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Apache SuExec Logs:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Location : /usr/local/apache/logs/suexec_log&lt;br /&gt;Description : Auditing information reported by suexec each time a CGI application is executed. Useful for debugging internal server errors, with no relevant information being reported to the Apache error_log, check here for potential suexec policy violations…&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Domain Access Logs:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/apache/domlogs/domain.com&lt;br /&gt;Description : General access log file for each domain configured with cPanel.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Apache Access Logs:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/apache/logs/access_log&lt;br /&gt;Description : Complete web server access log records all requests processed by the server.&lt;br /&gt;&lt;strong&gt;Exim :&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Message Reception and Delivery:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/exim_mainlog or /var/log/exim/mainlog&lt;br /&gt;Description : Receives an entry every time a message is received or delivered.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Exim ACLs/Policies based RejectLog :&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/exim_rejectlog&lt;br /&gt;Description : An entry is written to this log every time a message is rejected based on either ACLs or other policies eg: aliases configured to :fail&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Unexpected or Fatal Errors:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/exim_paniclog&lt;br /&gt;Description : Logs any entries exim doesn’t know how to handle. It’s generally a really bad thing when log entries are being written here, and they should be properly investigated..&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;IMAP/POP/SpamAssassin General Logging and Errors:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/maillog &amp;amp; /var/log/messages&lt;br /&gt;Description : The IMAP, POP, and SpamAssassin services all log here. This includes all general logging information (login attempts, transactions, spam scoring), along with fatal errors.&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;strong&gt;FTP:&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;FTP Logins and General Errors:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/messages&lt;br /&gt;Description : General information and login attempts are logged here..&lt;br /&gt;Quote:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;FTP Transactions logging:&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Location : /var/log/xferlog or /var/log/messages&lt;br /&gt;Description : Is a symbolic link in most cases to /usr/local/apache/domlogs/ftpxferlog, which contains a history of the transactions made by FTP users…&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;strong&gt;MySQL:&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;MySQL General Information and Errors :&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/lib/mysql/$(hostname).err&lt;br /&gt;Description : This path could vary, but is generally located in /var/lib/mysql. Could also be located at /var/log/mysqld.log&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&lt;strong&gt;Security:&lt;/strong&gt;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Authentication attempts:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/secure&lt;br /&gt;Description : Logs all daemons which requires PAM Authentication.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Tracking all Bad Logins and Logouts:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/btmp&lt;br /&gt;Description : Log of all attempted bad logins to the system. Accessed via the lastb command..&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Tracking all Logins and Logouts:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/wtmp&lt;br /&gt;Description : The wtmp file records all logins and logouts.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Last Logins:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/lastlog&lt;br /&gt;Description : Database times of previous user logins. The lastlog file is a database which contains info on the last login of each user.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;WebDav or WebDisk Log :&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/cpdavd_error_log&lt;br /&gt;Description : The cpdavd daemon is “WebDav” (better known as “WebDisk”) which was introduced in cPanel 11 to allow users to mount their home directory on their personal computer, always having access to the files and content…&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Cphulkd Logs:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /usr/local/cpanel/logs/cphulkd_errors.log&lt;br /&gt;Description : cPHulk Brute Force Protection prevents malicious forces from trying to access your server’s services by guessing the login password for that service….&lt;br /&gt;It blacklists IPs that it thinks are trying to run a brute force attack.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Failure Logging:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/faillog&lt;br /&gt;Description : Faillog formats the contents of the failure log from /var/log/faillog database. It also can be used for maintains failure counters and limits. Run faillog without arguments display only list of user faillog records who have ever had a login failure.&lt;br /&gt;Quote:&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Startup/Boot, Kernel &amp;amp; Hardware error messages :&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Location : /var/log/dmesg&lt;br /&gt;Description : dmesg is a “window” into the kernels ring-buffer. It’s a message buffer of the kernel. The content of this file is referred to by the dmesg command. It shows bootlog and the hardware errors..&lt;/p&gt; &lt;/div&gt;</description><link>http://admin4you.blogspot.com/2009/11/cpanel-logs.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-6407973933814495814</guid><pubDate>Sat, 07 Nov 2009 05:32:00 +0000</pubDate><atom:updated>2011-11-27T22:37:22.311+05:30</atom:updated><title>How to change your Exim outgoing mail IP, A Quick setup</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;1. Open the file&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;/etc/mailips&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;[root@server ~]# vi /etc/mailips&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
enter the following and save the file&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;*: IP&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;example: &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&lt;b&gt;*: 192.168.0.10&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
assuming 192.168.0.10 is your secondary IP.&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
IP - the IP you wish to send emails from. The * symbol specifies all domains to send emails from this IP&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;2. Now edit &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;/etc/mail_reverse_dns&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
Enter the reverse DNS aka rDNS for the above IP and save the file&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;IP rdns&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;Example: &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;192.168.0.10 server.mail.com&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
3. Now change the attributes to immutable&lt;/div&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[root@server ~]#&amp;nbsp;&amp;nbsp;chattr +i &amp;nbsp;&lt;b&gt;/etc/mail_reverse_dns&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[root@server ~]# &amp;nbsp;chattr +i&amp;nbsp;&amp;nbsp;/etc/mailips&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;4. Restart exim and thats it!&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[root@server ~]# /etc/init.d/exim restart&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Send a test email as root and check the headers to confirm.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Hope this helps :)&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: georgia;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://admin4you.blogspot.com/2009/11/change-outgoing-mail-server-ip-in-exim.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7844592531339216751.post-2590439815043798007</guid><pubDate>Wed, 05 Aug 2009 11:32:00 +0000</pubDate><atom:updated>2009-08-05T17:02:50.253+05:30</atom:updated><title>Useful Exim Commands continued...</title><description>[1] Removing Bad Mail&lt;br /&gt;&lt;br /&gt;      for i in `exiqgrep -i -f nobody`; do exim -Mrm $i; done &gt;&gt; Removes Nobody Mail&lt;br /&gt;&lt;br /&gt;      for i in `exiqgrep -i -o 259200`; do exim -Mrm $i; done &gt;&gt; Removes Mail Older than 3 Days&lt;br /&gt;&lt;br /&gt;      for i in `exiqgrep -i -f "^&lt;&gt;$"`; do exim -Mrm $i; done &gt;&gt; Removes Mail with Weird Characters (Spam)&lt;br /&gt;&lt;br /&gt;[2] Delete Mail by a Domain&lt;br /&gt;&lt;br /&gt;      for i in `exiqgrep -i -f domain.com`; do exim -Mrm $i; done&lt;br /&gt;&lt;br /&gt;[3] Delete Mail for a Domain&lt;br /&gt;&lt;br /&gt;      for i in `exiqgrep -i -r domain.com`; do exim -Mrm $i; done&lt;br /&gt;&lt;br /&gt;[4] Remove Whole Mail Queue&lt;br /&gt;&lt;br /&gt;      for i in `exiqgrep -i -f `; do exim -Mrm $i; done&lt;br /&gt;&lt;br /&gt;[5] Run Mail Queue&lt;br /&gt;&lt;br /&gt;      runq -qqff&amp;amp;</description><link>http://admin4you.blogspot.com/2009/08/useful-exim-commands-continued.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>