<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sohail Riaz, Linux and Open Source Blog &#187; CPanel / WHM</title>
	<atom:link href="http://www.sohailriaz.com/category/cpanel-whm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sohailriaz.com</link>
	<description>Sohail Riaz, Linux and Open Source Blog</description>
	<lastBuildDate>Sat, 14 Jan 2012 09:40:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Add DomainKeys and SPF Records on CPanel Servers</title>
		<link>http://www.sohailriaz.com/how-to-add-domainkeys-and-spf-records-on-cpanel-servers/</link>
		<comments>http://www.sohailriaz.com/how-to-add-domainkeys-and-spf-records-on-cpanel-servers/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 11:34:42 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[CPanel / WHM]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=67</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-add-domainkeys-and-spf-records-on-cpanel-servers/"><img src=""  alt="" title="" /></a>
This how to describe how to add domainkeys and SPF (Sender Policy Framework) records on CPanel Servers. Whenever you create a domain on CPanel server using WHM, it wont add domainkeys and SPF records for particular domains. To add domainkeys and SPF records please use following steps.
We consider here we have a domain sohailriaz.com with [...]]]></description>
			<content:encoded><![CDATA[<p>This how to describe how to add domainkeys and SPF (Sender Policy Framework) records on CPanel Servers. Whenever you create a domain on CPanel server using WHM, it wont add domainkeys and SPF records for particular domains. To add domainkeys and SPF records please use following steps.<span id="more-67"></span></p>
<p>We consider here we have a domain <strong>sohailriaz.com</strong> with cpanel username <strong>sohailri</strong></p>
<p>Please note on CPanel servers most of the work is done using cpanel username which then reflect setting on particular domains. If you have several domains / sub domains under one username, it will add domainkeys and SPF records for all domains / subdomains.</p>
<p>Execute the following command on your CPanel server using root.</p>
<h3>1 DomainKeys</h3>
<h3>1.1 Add DomainKeys for single user</h3>
<blockquote><p>/usr/local/cpanel/bin/domain_keys_installer sohailri</p></blockquote>
<p>where <strong>sohailri</strong> is a username</p>
<h3>1.2 Add DomainKeys for all CPanel users.</h3>
<p>If you wish to add DomainKeys for all Cpanel users on your server, execute following command.</p>
<blockquote><p>ls /var/cpanel/users | while read a; do<br />
/usr/local/cpanel/bin/domain_keys_installer $a<br />
done</p></blockquote>
<h3>2 SPF (Sender Policy Framework)</h3>
<h3>2.1 Add SPF for single account.</h3>
<blockquote><p>/usr/local/cpanel/bin/spf_installer sohailri</p></blockquote>
<h3>2.2 Add SPF for all Cpanel accounts.</h3>
<p>If you want to add SPF records for all cpanel accounts exist on your server then use the following command.</p>
<blockquote><p>ls /var/cpanel/users | while read a; do<br />
/usr/local/cpanel/bin/spf_installer $a<br />
done</p></blockquote>
<h3>3 Enable DomainKeys and SPF for every new CPanel account.</h3>
<p>If you want to add DomainKeys and SPF for every new account created on Cpanel, then do the following.</p>
<blockquote><p>vi /scripts/postwwwacct</p></blockquote>
<p>postwwwacct is a file which execute after wwwacct (used to create account), paste following lines in the file</p>
<blockquote><p>#!/usr/bin/perl</p>
<p>my %OPTS = @ARGV;<br />
$ENV{USER} = &#8220;$OPTS{&#8216;user&#8217;}&#8221;;<br />
system q(/usr/local/cpanel/bin/domain_keys_installer $USER);<br />
system q(/usr/local/cpanel/bin/spf_installer $USER);</p></blockquote>
<p>Happy Mailing <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you have any question / suggestion please comment.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=67&amp;ts=1328437778" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-add-domainkeys-and-spf-records-on-cpanel-servers/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Mod_GeoIP Custom Module for CPanel WHM</title>
		<link>http://www.sohailriaz.com/mod_geoip-custom-module-for-cpanel-whm/</link>
		<comments>http://www.sohailriaz.com/mod_geoip-custom-module-for-cpanel-whm/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 07:23:46 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[CPanel / WHM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mod_GeoIP]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=42</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/mod_geoip-custom-module-for-cpanel-whm/"><img src=""  alt="" title="" /></a>
I have created first mod_geoip custom module for CPanel WHM using CPanel Easy Framework POD.
which will be then install using /scripts/easyapache on command line or Apache Update using WHM on your choice whether to install it or not.
I wroted it in february and published on my site, but after few days CPanel Developer DAN contacted [...]]]></description>
			<content:encoded><![CDATA[<p>I have created first mod_geoip custom module for CPanel WHM using CPanel Easy Framework POD.</p>
<p>which will be then install using /scripts/easyapache on command line or Apache Update using WHM on your choice whether to install it or not.</p>
<p>I wroted it in february and published on my site, but after few days CPanel Developer DAN contacted me to enhance with there requirements that it can be added to CPanel Custom Module Listing. I made several changes to first version as suggested by CPanel Developers and alhamdulillah succeeded in it and now its listing in CPanel Custom Module. <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You can install it by using following steps</p>
<h3>1) Download</h3>
<blockquote><p>wget http://easyapache.cpanel.net/optmods/custom_opt_mod-mod_geoip.tar.gz</p></blockquote>
<p>or</p>
<blockquote><p>wget http://www.sohailriaz.com/downloads/custom_opt_mod-mod_geoip.tar.gz</p></blockquote>
<h3>2) Installation</h3>
<blockquote><p>tar -C /var/cpanel/easy/apache/custom_opt_mods  custom_opt_mod-mod_geoip.tar.gz</p></blockquote>
<p>Thats it, now you can run</p>
<blockquote><p>/scripts/easyapache</p></blockquote>
<p>or</p>
<p style="font-size: 12px;"><strong>Login into WHM and go to EasyApache Update</strong></p>
<p>It will show you the Mod_GeoIP included in it and you can install it by checking the box.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=42&amp;ts=1328437778" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/mod_geoip-custom-module-for-cpanel-whm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

