<?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>The cPanel Admin &#187; spam</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using Custom RBL&#8217;s with Exim and cPanel</title>
		<link>http://www.thecpaneladmin.com/custom-rbls-exim-cpanel/</link>
		<comments>http://www.thecpaneladmin.com/custom-rbls-exim-cpanel/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 21:34:19 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=683</guid>
		<description><![CDATA[cPanel 11.28 introduces an way to easily implement your own RBLs for Exim to perform lookups against.  To get started, log into WHM &#62; Exim Configuration Editor and click on the RBLs tab, then Manage custom RBLs. From here, enter in the information for your RBL as follows: The DNS list would be the hostname [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/' rel='bookmark' title='Copy Outgoing Email on a cPanel Server with Exim'>Copy Outgoing Email on a cPanel Server with Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/modifying-smtp-relay-settings-exim/' rel='bookmark' title='Modifying SMTP Relay Settings for Exim'>Modifying SMTP Relay Settings for Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/exim-acl-ratelimit-database-not-available/' rel='bookmark' title='Exim ACL Ratelimit Database Not Available'>Exim ACL Ratelimit Database Not Available</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>cPanel 11.28 introduces an way to easily implement your own RBLs for Exim to perform lookups against.  To get started, log into <em>WHM</em> &gt; <em>Exim Configuration Editor </em>and click on the <strong>RBLs</strong> tab, then Manage custom RBLs.</p>
<p style="text-align: center;"><a href="../wp-content/uploads/2010/11/1.png"><img class="aligncenter" title="exim config 1" src="../wp-content/uploads/2010/11/1-300x100.png" alt="" width="300" height="100" /></a></p>
<p>From here, enter in the information for your RBL as follows:</p>
<p style="text-align: center;"><a href="../wp-content/uploads/2010/11/2.png"><img class="aligncenter" title="exim config 2" src="../wp-content/uploads/2010/11/2-300x122.png" alt="" width="300" height="122" /></a></p>
<p>The DNS list would be the hostname of the server that Exim will do  DNS lookups against, and the info URL is generally what appears in  bounceback messages where senders can go to either look up their IP, or  find out more information on the RBL.</p>
<p>Once you&#8217;ve saved, go back into the Exim Configuration Editor under RBLs, and select &#8220;On&#8221; next to your RBL name.</p>
<h2>Automation</h2>
<p>You can also automate this by using an RBL template, rather than  going through WHM. This is particularly useful for server setup scripts,  or applying this change across multiple servers.</p>
<p>First, go into <strong>/var/cpanel/rbl_info</strong> (if the folder doesn&#8217;t exist, create it), and create a file called <strong>yourdnsbllist.yaml</strong></p>
<p>The YAML file would look something like this:</p>
<p><code>---<br />
dnslists:<br />
- dns.myrbl.org<br />
name: myrbl<br />
url: http://fakeurl.org/checkmyip.php<br />
</code><br />
Now in<strong> /etc/exim.conf.localopts</strong>, add the following:</p>
<blockquote><p>acl_myrbl_rbl=1</p></blockquote>
<p>Of course, the <strong>myrbl</strong> part would reflect the name of the actual RBL you created.</p>
<p>To rebuild the Exim config, run<strong> /scripts/buildeximconf</strong></p>
<p><map name='google_ad_map_683_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/683?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_683_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=683&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fcustom-rbls-exim-cpanel%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=683&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/' rel='bookmark' title='Copy Outgoing Email on a cPanel Server with Exim'>Copy Outgoing Email on a cPanel Server with Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/modifying-smtp-relay-settings-exim/' rel='bookmark' title='Modifying SMTP Relay Settings for Exim'>Modifying SMTP Relay Settings for Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/exim-acl-ratelimit-database-not-available/' rel='bookmark' title='Exim ACL Ratelimit Database Not Available'>Exim ACL Ratelimit Database Not Available</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/custom-rbls-exim-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Tips for Improving Email Delivery</title>
		<link>http://www.thecpaneladmin.com/improving-email-delivery/</link>
		<comments>http://www.thecpaneladmin.com/improving-email-delivery/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 17:32:48 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=654</guid>
		<description><![CDATA[One of the most common problems that hosting providers face is the issue of user email not being delivered to other mail servers.  Not only does it annoy the end user, but it&#8217;s extremely frustrating for the server administrator to deal with since there&#8217;s not always a clear indication of why email doesn&#8217;t get delivered [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/opening-additional-exim-port/' rel='bookmark' title='Opening an Additional Exim Port'>Opening an Additional Exim Port</a></li>
<li><a href='http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/' rel='bookmark' title='Copy Outgoing Email on a cPanel Server with Exim'>Copy Outgoing Email on a cPanel Server with Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>One of the most common problems that hosting providers face is the issue of user email not being delivered to other mail servers.  Not only does it annoy the end user, but it&#8217;s extremely frustrating for the server administrator to deal with since there&#8217;s not always a clear indication of why email doesn&#8217;t get delivered successfully.   In this post I&#8217;ll explain a few tips for helping improve the reliability of your mail server, and some tips you can give to your end users that send mailing lists.&#8217;</p>
<p><strong>Note:</strong> You can&#8217;t control the incoming email policies of remote mail servers or RBL&#8217;s. However, most email providers will not intentionally inconvenience their own users by blocking legitimate email, so if you continue to have problems, I&#8217;d recommend contacting the email administrator of the remote server.</p>
<p><strong>1. Do you look like a spammer?</strong></p>
<p>First of all, if you&#8217;re sending out massive mailing lists, whether you consider it spam or not, you&#8217;re asking for it.  Out of a list of 100,000 people, you can expect that a couple hundred of them are going to prompt spam complaints to your email provider, especially of the emails are of a &#8220;spammy&#8221; nature.  If you&#8217;re not sure where you sit on the line between spam and email marketing, take a look at <a href="http://www.v-nessa.net/2010/06/03/the-fine-line-between-spam-and-email-marketing" target="_blank">this post</a>.</p>
<p><strong>2. Practice proper mailing list etiquette </strong></p>
<p>As a mailing list grows, you&#8217;re occasionally going to have email addresses that become invalid, or users that no longer want to receive your email.  Don&#8217;t think that by hiding your opt-out link, you&#8217;re going to keep a subscriber. The recipient is more likely to mark your email as spam than hunt around for a way to remove their email address from your list, so make things easier by putting your opt-out link at the top with a reminder of why you are sending the email. For example:</p>
<blockquote><p>You are receiving this newsletter because you purchased a product on mywebsite.com and requested to receive notifications. If you no longer want to be part of this mailing list, please click &lt;here&gt;</p></blockquote>
<p>That being said, it&#8217;s extremely important that you promptly honor opt-out requests, and regularly check for bounced email for addresses that may no longer exist.</p>
<p>In addition to this, when sending email locally, your SMTP hostname should simply be &#8220;localhost&#8221;.</p>
<p><strong>3. Limit outgoing email</strong></p>
<p>If you&#8217;re a hosting provider and aren&#8217;t specifically catering to users  that do bulk mailing, you may want to limit how much email each users  can send, and advise users with large mailing lists to use services like  Constant Contact.  Tweaking a mail server to effectively send huge amounts of email without issue can be very difficult, and isn&#8217;t something I&#8217;d recommend even offering for shared hosting platforms.  In a shared environment where the actions of one user can affect many, outgoing email should be limited and then allowed on a per-case basis. There are two simple ways to do this:</p>
<ul>
<li>In WHM &gt; Tweak Settings, set the outgoing mail limit . You can specifically allow domains to send more by adding them to <strong>/var/cpanel/maxemails </strong>on versions 11.26 and lower, or adding a <strong>MAX_EMAIL_PER_HOUR</strong> option to /var/cpanel/users/$user for cpanel 11.28 and higher.</li>
<li>In exim.conf, set the following options:</li>
</ul>
<blockquote><p>recipients_max_reject = true</p>
<p>recipients_max = 50</p></blockquote>
<p>The best way to do this so the change is retained over cPanel and Exim updates is to add the options in <strong>/etc/exim.conf.local</strong> under <strong>@CONFIG@</strong>, then run <strong>/scripts/buildeximconf</strong></p>
<p>Exim considers each email as one email, regardless of how many  recipients are in it.  This may be an inconvenience to some users, but  in reality any mailing list should be sent as one recipient per email.  For larger organizations that use mailing lists for discussion, a listserv software like Mailman is a better solution.</p>
<p><strong>4. Tighten up your mail server<br />
</strong></p>
<p>If you&#8217;ve ever wanted to be the target of a spam hack, allowing PHP nobody mail is the best way to accomplish this.  Hopefully by now you&#8217;re running suPHP, but if you&#8217;re still running PHP as a DSO, whenever a PHP script uses the mail() function to send email it&#8217;s going to do so as the user &#8220;nobody&#8221;, or whatever user that Apache runs as.  Since the user &#8220;nobody&#8221; is a system user, it bypasses mailing limitations that you may have already set up via cPanel or exim.conf. This means that a rogue mailing script on your server can send out unlimited amounts of email and cause your server to get blacklisted. You can adjust this setting in WHM &gt; Tweak Settings.</p>
<p>You&#8217;ll also want to make sure that <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/TweakMail" target="_blank">SMTP Tweak</a> is turned on:</p>
<blockquote><p>/scripts/smtpmailgidonly on</p></blockquote>
<p>It&#8217;s also a good idea to require sender verification, which can be enabled in WHM &gt; Exim Configuration Editor</p>
<p><strong>5. Always use SMTP</strong></p>
<p>Similarly, mailing list software should be configured to use SMTP with a valid email address, username, and password. Don&#8217;t rely on sendmail or the php/perl mail functions &#8211; you need to send as a valid authenticated user.  Most mailing list software supports the use of SMTP, and using PHP or perl it&#8217;s very easy to incorporate SMTP authentication.</p>
<p><strong>6. Use DomainKeys and SPF records</strong></p>
<p>You want other mail servers to know that when they get mail from you, it&#8217;s actually from your server and not spoofed.  Consider using DKIM and SPF records to allow remote mail servers to authenticate your email. You&#8217;ll find that this may instantly improve your email delivery to services like Yahoo, MSN, and Hotmail.</p>
<p>See: <a href="http://www.thecpaneladmin.com/installing-domainkeys-spf-records/" target="_blank">Installing DomainKeys and SPF Records</a></p>
<p><strong>7. Subscribe to Feedback loops</strong></p>
<p>It&#8217;s very important for email administrators and hosting provides to subscribe to feedback loops.  Many remote mail and blacklist providers offer them, and they can be a very useful tool for identifying possible spammers on your network, as well as preemptively resolving issues with mailing lists.  If you don&#8217;t have an Abuse contact set up your domain and IP addresses, you should do that now &#8211; and register your IP(s).   AOL, Hotmail, Yahoo, and Spamcop are excellent ones to be on.  It&#8217;s also important to have your abuse@domain.com address set up so people can contact you if they want to report spam from your server or network.</p>
<p><strong>8. Monitor your IPs</strong></p>
<p>As easy as it is to get blacklisted on the various RBL&#8217;s out there, you&#8217;ll want to be checking if your IPs may be listed and therefore causing your email to bounce.  <a href="http://rblmon.com" target="_blank">RBLmon.com</a> is a good way to get started, or you can implement <a href="http://www.v-nessa.net/2010/07/16/simple-php-script-for-rbl-checking" target="_blank">blacklist checking</a> into your existing monitoring solution.  The goal is to know when your IPs are blacklisted as soon as possible.</p>
<p><strong>9. Use different IPs for email</strong></p>
<p>By default, when you send email your email will go out on the main IP of the server. For sites that send large amounts of email, consider putting them on separate IPs so that they don&#8217;t affect the mail delivery of other users on the server, or the network in general.</p>
<p>See: <a href="http://www.thecpaneladmin.com/changing-exims-sending-ip/" target="_blank">Changing Exim&#8217;s Sending IP</a></p>
<p><strong>10. Set up your DNS properly<br />
</strong></p>
<p>It should go without saying that whatever IP you use to send mail should have a proper reverse DNS record, and the forward DNS of that PTR should match. For example, if your mail server is named mail.mydomain.com and points to 5.6.7.8, then the PTR for 5.6.7.8 should also be mail.mydomain.com.  Ideally these records should match the EHLO/HELO name given by your MTA (Exim). This name can be altered in <strong>/etc/mailhelo </strong>if you have this option checked in WHM &gt; Exim Configuration Editor.</p>
<p><map name='google_ad_map_654_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/654?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_654_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=654&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fimproving-email-delivery%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=654&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/opening-additional-exim-port/' rel='bookmark' title='Opening an Additional Exim Port'>Opening an Additional Exim Port</a></li>
<li><a href='http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/' rel='bookmark' title='Copy Outgoing Email on a cPanel Server with Exim'>Copy Outgoing Email on a cPanel Server with Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/improving-email-delivery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing DomainKeys and SPF Records</title>
		<link>http://www.thecpaneladmin.com/installing-domainkeys-spf-records/</link>
		<comments>http://www.thecpaneladmin.com/installing-domainkeys-spf-records/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 06:43:30 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=55</guid>
		<description><![CDATA[DomainKeys (DKIM) and SPF records are becoming a common, and annoying, demand among email providers, mainly Yahoo and Hotmail. In short, both are methods of email authentication designed to verify email integrity, by linking a sender to a specific server or hostname. In other words, DomainKeys and SPF records specify what servers can send email [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/using-dkim-with-exim-and-cpanel/' rel='bookmark' title='Using DKIM with Exim and cPanel'>Using DKIM with Exim and cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/improving-email-delivery/' rel='bookmark' title='10 Tips for Improving Email Delivery'>10 Tips for Improving Email Delivery</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-ssl-certificate-mysql/' rel='bookmark' title='Installing an SSL Certificate for MySQL'>Installing an SSL Certificate for MySQL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>DomainKeys (DKIM) and SPF records are becoming a common, and annoying, demand among email providers, mainly Yahoo and Hotmail. In short, both are methods of email authentication designed to verify email integrity, by linking a sender to a specific server or hostname. In other words, DomainKeys and SPF records specify what servers can send email on behalf of a domain name.</p>
<p>You&#8217;ll want DomainKeys and SPF records if your users have trouble sending email to certain providers, or they are having issues with spoofed (forged) email. CPanel currently allows two easy ways for you or your users to set up email verification. This is supported at least from cPanel 11.18 onward.</p>
<p><span id="more-55"></span></p>
<p><strong>User-Level:</strong></p>
<p>You can enable the &#8220;Email Authentication&#8221; feature in WHM ~&gt; Feature Manager, which will enable the Email Authentication icon in the users&#8217; cPanels where they can create DomainKeys and SPF records for their domain(s).</p>
<p><strong>Root-level:</strong></p>
<p>There are scripts in /usr/local/cpanel/bin that can install these on a per-user basis:</p>
<blockquote><p>/usr/local/cpanel/bin/domain_keys_installer $user</p>
<p>/usr/local/cpanel/bin/spf_installer $user</p></blockquote>
<p>(and corresponding scripts to remove, like spf_uninstaller and domain_keys_uninstaller)</p>
<p>If you want to hit up everyone on the server, you can run my for loop one-liner:</p>
<p><code>for user in `ls -A /var/cpanel/users` ; do /usr/local/cpanel/bin/domain_keys_installer $user &amp;&amp; /usr/local/cpanel/bin/spf_installer $user ; done</code></p>
<p>Now what about new users? cPanel already though of that, and has options to create hooks for when after an account is created. To set up the server to automatically create an SPF record and DomainKey for new accounts, edit <strong>/scripts/postwwwacct </strong>and paste in the following code:</p>
<p><code>#!/usr/bin/perl</code></p>
<p><code>my %OPTS = @ARGV;<br />
$ENV{USER} = “$OPTS{‘user’}”;<br />
system q(/usr/local/cpanel/bin/domain_keys_installer $USER);<br />
system q(/usr/local/cpanel/bin/spf_installer $USER);</code></p>
<p>To verify an SPF record and/or DomainKey, you can run a DNS check:</p>
<blockquote><p>dig default._domainkey.$domain TXT</p>
<p>dig $domain TXT</p></blockquote>
<p>A technical note about DKIM:</p>
<p>You might know that DKIM is actually a generated key pair, similar to an SSH or SSL Certificate&#8217;s RSA key. CPanel stores these files in <strong>/var/cpanel/domain_keys</strong>, where the <em>public</em> folder contains the key reflected in the DNS zone, and the <em>private</em> folder contains the private key. You may have users that actually authenticate via DKIM in their mail clients, in which case you may need to provide them with the private key in order for them to sent email.</p>
<p><map name='google_ad_map_55_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/55?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_55_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=55&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Finstalling-domainkeys-spf-records%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=55&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/using-dkim-with-exim-and-cpanel/' rel='bookmark' title='Using DKIM with Exim and cPanel'>Using DKIM with Exim and cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/improving-email-delivery/' rel='bookmark' title='10 Tips for Improving Email Delivery'>10 Tips for Improving Email Delivery</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-ssl-certificate-mysql/' rel='bookmark' title='Installing an SSL Certificate for MySQL'>Installing an SSL Certificate for MySQL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/installing-domainkeys-spf-records/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

