<?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>cPanel Admins &#187; Exim</title>
	<atom:link href="http://www.cpaneladmins.com/category/exim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpaneladmins.com</link>
	<description>Random Notes for cPanel Admins</description>
	<lastBuildDate>Tue, 01 Feb 2011 02:22:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Lowest numbered MX record points to localhost</title>
		<link>http://www.cpaneladmins.com/lowest-numbered-mx-record-points-to-localhost/</link>
		<comments>http://www.cpaneladmins.com/lowest-numbered-mx-record-points-to-localhost/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:20:45 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=359</guid>
		<description><![CDATA[If you see the following in exim&#8217;s main_log: temporarily rejected RCPT : lowest numbered MX record points to local host This indicates that the domain doesn&#8217;t exist in /etc/localdomains. Edit the file with your favorite editor and ensure it&#8217;s listed there. At the same time, you&#8217;ll want to ensure it isn&#8217;t listed in /etc/remotedomains.]]></description>
			<content:encoded><![CDATA[<p>If you see the following in exim&#8217;s main_log:</p>
<p><code>temporarily rejected RCPT <name@domain.tld>: lowest numbered MX record points to local host</code></p>
<p>This indicates that the domain doesn&#8217;t exist in /etc/localdomains.  Edit the file with your favorite editor and ensure it&#8217;s listed there.</p>
<p>At the same time, you&#8217;ll want to ensure it <strong>isn&#8217;t</strong> listed in /etc/remotedomains.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Flowest-numbered-mx-record-points-to-localhost%2F&amp;title=Lowest%20numbered%20MX%20record%20points%20to%20localhost" id="wpa2a_2"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/lowest-numbered-mx-record-points-to-localhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically Create DomainKeys Records When Creating Account</title>
		<link>http://www.cpaneladmins.com/automatically-create-domainkeys-records-when-creating-account/</link>
		<comments>http://www.cpaneladmins.com/automatically-create-domainkeys-records-when-creating-account/#comments</comments>
		<pubDate>Sat, 22 May 2010 05:29:20 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[domainkeys]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=311</guid>
		<description><![CDATA[Hopefully this will someday be an option in &#8220;Tweak Settings&#8221;, but in the meantime, you can add DomainKeys records to your customers DNS zones automatically by creating a &#8220;hook&#8221; which will be run after /scripts/wwwacct (the script behind &#8220;Create an Account&#8221; in WHM). You&#8217;ll want to create a file called /scripts/postwwwacct, and add the following [...]]]></description>
			<content:encoded><![CDATA[<p>Hopefully this will someday be an option in &#8220;Tweak Settings&#8221;, but in the meantime, you can add DomainKeys records to your customers DNS zones automatically by creating a &#8220;hook&#8221; which will be run after /scripts/wwwacct (the script behind &#8220;Create an Account&#8221; in WHM).</p>
<p>You&#8217;ll want to create a file called /scripts/postwwwacct, and add the following content:</p>
<p><code>my %OPTS = @ARGV;<br />
my $user = $OPTS{’user’};<br />
/usr/local/cpanel/bin/domain_keys_installer $user</code></p>
<p>You&#8217;re all set now &#8212; there&#8217;s nothing else that needs to be done.  Note that this only creates the DomainKeys records for <strong>new</strong> accounts.  If you want to create DomainKeys records for all your <strong>existing</strong> users at once, check out my other article on the topic: http://www.cpaneladmins.com/2009/12/07/install-domainkeys-and-spf-records-for-all-users/</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fautomatically-create-domainkeys-records-when-creating-account%2F&amp;title=Automatically%20Create%20DomainKeys%20Records%20When%20Creating%20Account" id="wpa2a_4"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/automatically-create-domainkeys-records-when-creating-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding SPF records for a user via SSH</title>
		<link>http://www.cpaneladmins.com/adding-spf-records-for-a-user-via-ssh/</link>
		<comments>http://www.cpaneladmins.com/adding-spf-records-for-a-user-via-ssh/#comments</comments>
		<pubDate>Fri, 07 May 2010 00:18:59 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[spf]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=305</guid>
		<description><![CDATA[# /usr/local/cpanel/bin/spf_installer USERNAME]]></description>
			<content:encoded><![CDATA[<p><code># /usr/local/cpanel/bin/spf_installer USERNAME</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fadding-spf-records-for-a-user-via-ssh%2F&amp;title=Adding%20SPF%20records%20for%20a%20user%20via%20SSH" id="wpa2a_6"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/adding-spf-records-for-a-user-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim Guide</title>
		<link>http://www.cpaneladmins.com/exim-cheatshee/</link>
		<comments>http://www.cpaneladmins.com/exim-cheatshee/#comments</comments>
		<pubDate>Tue, 04 May 2010 02:59:53 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=291</guid>
		<description><![CDATA[I could write up a post on exim commands, but it would take some time, and &#8220;Bradthemad&#8221; has already done it. With that, the exim cheatsheet.]]></description>
			<content:encoded><![CDATA[<p>I could write up a post on exim commands, but it would take some time, and &#8220;Bradthemad&#8221; has already done it.  With that, the <a href="http://bradthemad.org/tech/notes/exim_cheatsheet.php">exim cheatsheet</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fexim-cheatshee%2F&amp;title=Exim%20Guide" id="wpa2a_8"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/exim-cheatshee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bug in Mailman version 2.1.12.cp3</title>
		<link>http://www.cpaneladmins.com/bug-in-mailman-version/</link>
		<comments>http://www.cpaneladmins.com/bug-in-mailman-version/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 03:23:42 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[mailman]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=194</guid>
		<description><![CDATA[Error:Bug in Mailman version 2.1.12.cp3 We're sorry, we hit a bug! Let&#8217;s make sure that all other permissions are set properly: # ./usr/local/cpanel/3rdparty/mailman/bin/check_perms No problems found As mailman is working properly on this server, no errors were discovered, but as you&#8217;re received the error above, you&#8217;ll likely see some errors displayed.]]></description>
			<content:encoded><![CDATA[<p><strong>Error:</strong><code>Bug in Mailman version 2.1.12.cp3</p>
<p>We're sorry, we hit a bug!</code></p>
<p>Let&#8217;s make sure that all other permissions are set properly:</p>
<p><code># ./usr/local/cpanel/3rdparty/mailman/bin/check_perms<br />
No problems found</code></p>
<p>As mailman is working properly on this server, no errors were discovered, but as you&#8217;re received the error above, you&#8217;ll likely see some errors displayed.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fbug-in-mailman-version%2F&amp;title=Bug%20in%20Mailman%20version%202.1.12.cp3" id="wpa2a_10"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/bug-in-mailman-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DomainKeys and SPF Record Checking</title>
		<link>http://www.cpaneladmins.com/domainkeys-and-spf-check/</link>
		<comments>http://www.cpaneladmins.com/domainkeys-and-spf-check/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 03:00:36 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[domainkeys]]></category>
		<category><![CDATA[spf]]></category>
		<category><![CDATA[SPF Records]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=183</guid>
		<description><![CDATA[You probably know that you can configure DomainKeys and SPF records in cPanel >> Email Authentication (if you didn&#8217;t, there you go ). If you&#8217;d like to confirm that your TXT records are working properly, here are some resources for you: SPF Record Check &#8211; via HTTP PoliteMail&#8217;s SPF Check &#8211; outputs a brief breakdown [...]]]></description>
			<content:encoded><![CDATA[<p>You probably know that you can configure DomainKeys and SPF records in cPanel >> Email Authentication (if you didn&#8217;t, there you go <img src='http://www.cpaneladmins.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).  If you&#8217;d like to confirm that your TXT records are working properly, here are some resources for you:</p>
<p><strong>SPF Record Check</strong> &#8211; via HTTP<br />
<a href="http://www.politemail.com/check-spf.aspx">PoliteMail&#8217;s SPF Check</a> &#8211; outputs a brief breakdown of your records details &#8211; the IP addresses permitted in the record, the hostname, and the mailserver name.  Then outputs the TXT record it queried.</p>
<p><a href="http://www.mxtoolbox.com/SuperTool.aspx">MXToolBox&#8217;s SuperTool</a> &#8211; Provides SPF checks, among other useful queries.</p>
<p><a href="http://www.kitterman.com/spf/validate.html">kitterman.com</a></p>
<p><strong>SPF Record Check</strong> &#8211; via email<br />
This is pretty neat &#8211; you can send an email to spf-test@openspf.org from the domain you want to test, and it will reject the message, but in that rejection message, you&#8217;ll see the results of your test:</p>
<p><code>  spf-test@openspf.org<br />
    SMTP error from remote mail server after RCPT TO:<spf-test@openspf.org>:<br />
    host mailout02.controlledmail.com [72.81.252.18]:<br />
    550 5.7.1 <spf-test@openspf.org>: Recipient address rejected:<br />
    SPF Tests: Mail-From Result="pass": Mail From="test@cpaneladmins.com" HELO name="server.cpaneladmins.com" HELO Result="none" Remote IP="12.34.56.78"</code></p>
<p><strong>DomainKeys Record Check</strong></p>
<p>http://www.mailradar.com/domainkeys/</p>
<p><strong>Other Resources:</strong><br />
<a href="http://old.openspf.org/wizard.html">OpenSPF.org&#8217;s Wizard</a> &#8211; If you want to configure SPF records manually, go here.  Note that you won&#8217;t be able to edit the records via cPanel >> Email Authentication later on, though.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fdomainkeys-and-spf-check%2F&amp;title=DomainKeys%20and%20SPF%20Record%20Checking" id="wpa2a_12"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/domainkeys-and-spf-check/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install DomainKeys and SPF Records for All Users</title>
		<link>http://www.cpaneladmins.com/install-domainkeys-and-spf-records-for-all-users/</link>
		<comments>http://www.cpaneladmins.com/install-domainkeys-and-spf-records-for-all-users/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:14:02 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[DKIM]]></category>
		<category><![CDATA[domainkeys]]></category>
		<category><![CDATA[SPF Records]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=138</guid>
		<description><![CDATA[cd /var/cpanel/users for user in * ; do /usr/local/cpanel/bin/domain_keys_installer $user ; done for user in * ; do /usr/local/cpanel/bin/spf_installer $user ; done]]></description>
			<content:encoded><![CDATA[<p><code><br />
cd /var/cpanel/users<br />
for user in * ; do /usr/local/cpanel/bin/domain_keys_installer $user ; done<br />
for user in * ; do /usr/local/cpanel/bin/spf_installer $user ; done<br />
</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Finstall-domainkeys-and-spf-records-for-all-users%2F&amp;title=Install%20DomainKeys%20and%20SPF%20Records%20for%20All%20Users" id="wpa2a_14"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/install-domainkeys-and-spf-records-for-all-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring DomainKeys from the CLI</title>
		<link>http://www.cpaneladmins.com/configuring-domainkeys-from-the-cli/</link>
		<comments>http://www.cpaneladmins.com/configuring-domainkeys-from-the-cli/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 19:22:11 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[domainkeys]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=70</guid>
		<description><![CDATA[/usr/local/cpanel/bin/domain_keys_installer USERNAME]]></description>
			<content:encoded><![CDATA[<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
/usr/local/cpanel/bin/domain_keys_installer USERNAME
</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fconfiguring-domainkeys-from-the-cli%2F&amp;title=Configuring%20DomainKeys%20from%20the%20CLI" id="wpa2a_16"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/configuring-domainkeys-from-the-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Track down “nobody” spammers, Add Extended Logging To Exim</title>
		<link>http://www.cpaneladmins.com/add-extended-logging-to-exim/</link>
		<comments>http://www.cpaneladmins.com/add-extended-logging-to-exim/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 18:54:43 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=47</guid>
		<description><![CDATA[If you&#8217;re seeing outgoing spam from nobody@your.hostname.tld, you can track it down fairly easily. In WHM, go to Exim Configuration Editor, then select Advanced Editor. In the first field, paste in: log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re seeing outgoing spam from nobody@your.hostname.tld, you can track it down fairly easily.</p>
<p>In WHM, go to Exim Configuration Editor, then select Advanced Editor.  In the first field, paste in:</p>
<p><code><br />
log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject<br />
</code></p>
<p>You will then see extended logging in /var/log/exim_mainlog.  You can simply run </p>
<p><code>grep cwd=/home /var/log/exim_mainlog</code> </p>
<p>and that will show you the path for any user that is sending email via sendmail through exim.  It won&#8217;t give you the filename, but at least you&#8217;ll have the user/folder name, and you can look through the scripts from there.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fadd-extended-logging-to-exim%2F&amp;title=Track%20down%20%E2%80%9Cnobody%E2%80%9D%20spammers%2C%20Add%20Extended%20Logging%20To%20Exim" id="wpa2a_18"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/add-extended-logging-to-exim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run Exim on a Secondary Port</title>
		<link>http://www.cpaneladmins.com/how-to-run-exim-on-a-secondary-port/</link>
		<comments>http://www.cpaneladmins.com/how-to-run-exim-on-a-secondary-port/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 14:15:55 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Exim]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=6</guid>
		<description><![CDATA[Some ISPs will filter or completely block traffic on port 25, so you may want to make another port available to your customers.  To configure exim to listen on a secondary port: Navigate to WHM -&#62; Service Configuration -&#62; Service Manager, then check the box for &#8220;exim on another port.&#8221;  You can use the default [...]]]></description>
			<content:encoded><![CDATA[<p>Some ISPs will filter or completely block traffic on port 25, so you may want to make another port available to your customers.  To configure exim to listen on a secondary port:</p>
<p>Navigate to WHM -&gt; Service Configuration -&gt; Service Manager, then check the box for &#8220;exim on another port.&#8221;  You can use the default secondary port of 26, or enter your own.</p>
<p><img class="alignnone size-full wp-image-13" title="Picture 3" src="http://www.cpaneladmins.com/wp-content/uploads/2009/09/Picture-3.png" alt="Picture 3" width="446" height="85" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fhow-to-run-exim-on-a-secondary-port%2F&amp;title=How%20to%20run%20Exim%20on%20a%20Secondary%20Port" id="wpa2a_20"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/how-to-run-exim-on-a-secondary-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

