<?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>SupportSages &#187; exim</title>
	<atom:link href="http://www.supportsages.com/blog/tag/exim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Fri, 16 Jul 2010 02:47:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Prevent your mail/IP from getting marked as SPAM/Blacklisted, A few TIPS!</title>
		<link>http://www.supportsages.com/blog/2010/07/prevent-your-mailip-from-getting-marked-as-spamblacklisted-a-few-tips/</link>
		<comments>http://www.supportsages.com/blog/2010/07/prevent-your-mailip-from-getting-marked-as-spamblacklisted-a-few-tips/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 02:47:40 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Webmail]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DKIM]]></category>
		<category><![CDATA[dkim cpanel]]></category>
		<category><![CDATA[DomainKeys]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[SenderID]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[SPF]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1031</guid>
		<description><![CDATA["<strong>SPAM</strong>"! A word familiar to all Netizens.

Emails plays a major role in today's business, one must be keen to preserve the authenticity of mails they sent to the users and fail to do so may result in getting your mail server IP blacklisted and mails ends-up in users junk folder and they die!

This post is not a perfect guide to prevent you from getting blacklisted by the spamcops, but a few tips that could save your "Time" and "Reputation".

1) All email is filtered against published blacklists of spam servers. Check whether your mailserver IP is already blacklisted : http://www.mxtoolbox.com/. If ...]]></description>
			<content:encoded><![CDATA[<p>&#8220;<strong>SPAM</strong>&#8220;! A word familiar to all Netizens.</p>
<p>Emails plays a major role in today&#8217;s business, one must be keen to preserve the authenticity of mails they sent to the users and fail to do so may result in getting your mail server IP blacklisted and mails ends-up in users junk folder and they die!</p>
<p>This post is not a perfect guide to prevent you from getting blacklisted by the spamcops, but a few tips that could save your &#8220;Time&#8221; and &#8220;Reputation&#8221;.</p>
<p>1) All email is filtered against published blacklists of spam servers. Check whether your mailserver IP is already blacklisted : http://www.mxtoolbox.com/. If listed, take necessary actions to remove it. You can temporarily switch the mail server IP to get the mails moving until your regular IP is released.</p>
<p>2) All mails will be filtered based on certain rules. It looks for senders email address, mail subject line and words on the message content. Avoid using blank subject line and using common spammers words like &#8220;offer, discount, sale, free etc&#8230; There are a lot more..</p>
<p>3) Maintain a regular time intervals while sending mails to a particular sender. This could be setup on exim configuration file. (Needs admin privileges)</p>
<p>4) <strong>Enable SPF</strong>:<br />
Sender Policy Framework (SPF), is an e-mail validation system designed to prevent e-mail spam by addressing a common vulnerability, source address spoofing. SPF allows administrators to specify which hosts are allowed to send e-mail from a given domain by creating a specific DNS SPF record in the public DNS for that domain. Mail exchangers then use the DNS to check that mail from a given domain is being sent by a host sanctioned by that domain&#8217;s administrators.</p>
<p>If SPF record is enabled for a domain, spammers and phishers are less likely to forge e-mails pretending to be from that domain. Spam filters now check for SPF records and hence eliminate the chance of forged mails, spams. Hence an SPF protected domain is less attractive to spammers and phishers and is less likely to be blacklisted by spam filters and ligitimate mails will go through.</p>
<p>SPF keeps the detail of the machine which is only authorized to send mails for that particular domain. This is done by adding additional a TXT record to their existing DNS records. Mail receivers that checks for SPF records check the domain DNS and finds whether the server is allowed to send mails for that domain.</p>
<p><span id="more-1031"></span></p>
<p>The key issue in SPF is the specification for the new DNS information that domains set and receivers use. Eg is :</p>
<p>example.com. IN SPF &#8220;v=spf1 a mx -all&#8221;</p>
<p>&#8220;v=&#8221; defines the version of SPF used. &#8220;v=&#8221; defines the version of SPF used. The following words provide mechanisms to use to determine if a domain is eligible to send mail. The &#8220;a&#8221; and &#8220;mx&#8221; specify the systems permitted to send messages for the given domain. The &#8220;-all&#8221; at the end specifies that, if the previous mechanisms did not match, the message should be rejected.</p>
<p>On a cPanel server, one can easily enable SPF records.</p>
<p>Login to cPanel account for that particular domain ==&gt; Email Authentication ==&gt; Scroll down to SPF section ==&gt; and Click on Enable.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spf_disabled.jpg" class="thickbox no_icon" rel="gallery-1031" title="spf_disabled"><img class="aligncenter size-medium wp-image-1033" title="spf_disabled" src="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spf_disabled-260x300.jpg" alt="" width="260" height="300" /></a></p>
<p>Enable SPF :</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spf_enabled.jpg" class="thickbox no_icon" rel="gallery-1031" title="spf_enabled"><img class="aligncenter size-medium wp-image-1034" title="spf_enabled" src="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spf_enabled-300x90.jpg" alt="" width="300" height="90" /></a></p>
<p>SPF record on Domain DNS.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spf_dns.jpg" class="thickbox no_icon" rel="gallery-1031" title="spf_dns"><img class="aligncenter size-medium wp-image-1035" title="spf_dns" src="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spf_dns-300x12.jpg" alt="" width="300" height="12" /></a></p>
<p>5) <strong>Enable SenderID:</strong></p>
<p>SenderID is also an anti-spoofing method to save emails from Junk. SenderID is heavily based on SPF with a few additions. Like in SPF, DNS entries are used on the domain DNS to ensure the authenticity of emal. But they differ on what rules they apply to what fields contained in the message header.</p>
<p>How SenderID works:</p>
<ul>
<li>Sender sends an e-mail to Receiver.</li>
<li>Receiver’s inbound e-mail server receives e-mail and calls its Sender ID Framework.</li>
<li>The Sender ID Framework looks up the SPF record of the domain that Sender is using for sending the mail.</li>
<li>The receiving Mail Transfer Agent (MTA) determines if the outbound Mail Server IP address matches IP addresses that are authorized to send mail for the user</li>
</ul>
<p>DNS entry for SenderID enabled domain looks like,</p>
<p style="text-align: center;"><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/07/senderid.jpg" class="thickbox no_icon" rel="gallery-1031" title="senderid"><img class="aligncenter size-full wp-image-1090" title="senderid" src="http://www.supportsages.com/blog/wp-content/uploads/2010/07/senderid.jpg" alt="" width="500" height="18" /></a></p>
<p>You can Generate SenderID from here : <a  href="http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/" target="_blank">http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/</a></p>
<p>6) <strong>Enable Domain Keys:</strong></p>
<p>DomainKeys is the branded name created by Yahoo. It has been introduced by Yahoo to fight against spams. DomainKeys is a PGP-like (Pretty Good Privacy) protocol for validating and authenticating an email. This system includes the creation of a public and private key. You keep your private key private and give your public key to your trusties. We encrypt data with our private key and users can decrypt messages with our public key.  This prevents others from seeing our data. Domain Keys takes this idea one step further. Instead of encrypting the email, it encrypts the email headers and creates a hash value from that encryption. The hash value is send/placed in the email header. When a site receives an email, it locates the public key which is located in the DNS server for the user listed in the From: line of the email and encrypts the email once again to compare the hash value.  If the hash values match after the second encryption test, the email passes validation.</p>
<p>DomainKeys is an system that allows for incoming mail to be checked against the server it was sent from to verify that the mail has not been modified and thereby ensures that messages are actually coming from the listed sender and allows abusive messages to be tracked with more ease.</p>
<p>Yahoo check for domankeys  on a domain if they are requested to whitelist the IP. Below are the steps to enable DomanKeys on a cPanel server.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spfndkenabled.jpg" class="thickbox no_icon" rel="gallery-1031" title="spfndkenabled"><img class="aligncenter size-medium wp-image-1036" title="spfndkenabled" src="http://www.supportsages.com/blog/wp-content/uploads/2010/07/spfndkenabled-300x113.jpg" alt="" width="300" height="113" /></a></p>
<p>DNS entries for DomainKeys and SPF</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/07/domain_keysnspf.jpg" class="thickbox no_icon" rel="gallery-1031" title="domain_keysnspf"><img class="aligncenter size-large wp-image-1039" title="domain_keysnspf" src="http://www.supportsages.com/blog/wp-content/uploads/2010/07/domain_keysnspf-1024x85.jpg" alt="" width="491" height="41" /></a></p>
<p>Once DomainKeys are enabled you can check whether it is setup correctly by sending a test mail addresses set up to  dk@dk.crynwr.com</p>
<p>7) <strong>Enable DKIM</strong> :</p>
<p>DKIM is the result of combining Yahoo’s DomainKeys technology with Identified Internet Mail which was developed at Cisco which is another methodology of PGP-like technique.<br />
DomainKeys and DKIM sounds similar but there are different. DKIM was created to provide a more robust solution that would survive more types of modification to which messages are frequently subjected. DomainKeys Identified Mail (DKIM) lets an organization take responsibility for a message while it is in transit.  The organization is a handler of the message, either as its originator or as an intermediary. Their reputation is the basis for evaluating whether to trust the message for delivery. Technically DKIM provides a method for validating a domain name identity that is associated with a message through cryptographic authentication.</p>
<p>DKIM is not available as a ready-made option in cPanel server till now. If you are running an VPS and know basic administration, you can get it enabled. Login to the server via SSH and check if if exim is compiled with DKIM support enabled.</p>
<pre class="brush: bash;">﻿root@server # /usr/sbin/exim -dd 2&gt;&amp;1 | grep Experimental_DKIM

Support for: crypteq iconv() IPv6 PAM Perl OpenSSL Content_Scanning Old_Demime Experimental_SPF Experimental_SRS
Experimental_DomainKeys Experimental_DKIM</pre>
<p>Generate the SSL keys</p>
<pre class="brush: bash;">cd /usr/local/cpanel/etc/exim</pre>
<pre class="brush: bash;">openssl genrsa -out dkim.key 1024</pre>
<pre class="brush: bash;">openssl rsa -in dkim.key -out dkim.public -pubout -outform PEM</pre>
<p>You will find two keys, dkim.key &amp; dkim.public</p>
<p>Open dkim.public and copy the contents excluding the –Begin– and –End– section. This is your DKIM key.  Now open exim configuration file and append the below entries under the section ‘remote_smtp’</p>
<p>Sample file:<br />
vi /etc/exim.conf</p>
<pre class="brush: plain;">remote_smtp
driver = smtp
dkim_domain=your_domain_name.com
dkim_selector=mail
dkim_private_key=/usr/local/cpanel/etc/exim/dkim.key #path to the dkim.key key.
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}
{$primary_hostname}}</pre>
<p>Now on WHM, open DNS editor for the particular domain and add the TXT entry with DKIM key like below.</p>
<pre class="brush: plain;">mail._domainkey.example.com. IN TXT &quot;v=DKIM1;g=*;k=rsa; p=GIGmGA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDv4PSEG9PcxlI2tRojAUQ9hpRQ0Zj/XG4SK08/DrhG/CaspJAKZm9rZDAw18TrmuXeRgsGWAdS2vJ4Oa/kXqX0NG2eBJcGasu4GeNXANGXvC1uGz+8GC6rEPlE/Ucau4tGAHOZL0HJ9IDd/PIxoTkeTG3GjGeqvKBLbdvVIDXbcQIDAQAB&quot;</pre>
<p>Here p=the_key_you_have_copied_from_dkim.public</p>
<p>Restart exim and named services.</p>
<pre class="brush: bash;">/scripts/restartsrv exim</pre>
<pre class="brush: bash;">/scripts/restartsrv named</pre>
<p>To check whether DKIM is setup properly, send a mail to dkimtest@atmail.org , if setup properly, you will get a reply like below ,else a failure message.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Subject:    AutoReply from dkimtest@atmail.org<br />
From:    spftest@example.com<br />
Date:    Fri, Jul 9, 2010 10:27 pm<br />
To:    spftest@example.com<br />
*** DKIM TEST SUCCESSFUL ***<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>8 ) <strong>Join JMRP : </strong></p>
<p>JMRP/Junk Mail Report Program is a free service to provide reports on junk e-mail issues reported by  Windows Live Hotmail users. You can use this free service to which is developed commercial mailers and e-mail administrators to identify/fix issues in sending mails to hotmails ID&#8217;s. JMRP returns the full message with headers of any e-mail marked as “junk” or “phishing” by a recipient.  Provides senders an opportunity to clean their e-mail lists and improve the quality of their content and helps identify potential problems with your marketing practices and content and also improves sender reputation by removing unwanted subscribers from lists.</p>
<p>You can join LMRP from here : <a  href="https://support.msn.com/default.aspx?st=1&#038;website=msn&#038;tenant=oss&#038;brand=msn&#038;as=1&#038;timestmp=634147865953276556&#038;acty=ProductList&#038;ctl=oss%2fcontent%2fmsn_support_home&#038;wf=OSS&#038;trl=OSS~ProductList&#038;c=oss_msn&#038;ln=en-us&#038;productKey=edfsjmrpp&#038;sub=free" target="_blank">http://bit.ly/JMRP</a></p>
<p>N:B :- Mail server mentioned here is cPanel Exim, you may replace this with any other mail server.</p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=Prevent+your+mail%2FIP+from+getting+marked+as+SPAM%2FBlacklisted%2C+A+few+TIPS%21+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1031" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Prevent+your+mail%2FIP+from+getting+marked+as+SPAM%2FBlacklisted%2C+A+few+TIPS%21+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1031" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/07/prevent-your-mailip-from-getting-marked-as-spamblacklisted-a-few-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim cheat sheet &#8211; Commands for  troubleshoot mail issues in cPanel/DirectAdmin or any exim mail server</title>
		<link>http://www.supportsages.com/blog/2009/08/exim-commands/</link>
		<comments>http://www.supportsages.com/blog/2009/08/exim-commands/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 09:35:50 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cheat sheets]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[exim -bt]]></category>
		<category><![CDATA[exim tips and tricks]]></category>
		<category><![CDATA[mail server]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=499</guid>
		<description><![CDATA[Below are the most common exim commands which helps an Administrator to ease his life

Print a count of the messages in the queue:
<blockquote>exim -bpc</blockquote>
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
<blockquote>exim -bp</blockquote>
Print a summary of messages in the queue (count, volume, oldest, newest, domain, and total
<blockquote>exim -bp&#124; exiqsumm</blockquote>
Print what Exim is doing right now:
<blockquote>exiwhat</blockquote>
To check if the server routes the mail properly use exim -bt
<blockquote>
<pre><strong>#</strong> exim -bt alias@localdomain.com
user@thishost.com
    &#60;-- alias@localdomain.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@thishost.com
user@thishost.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@remotehost.com
 ...]]></description>
			<content:encoded><![CDATA[<p>Below are the most common exim commands which helps an Administrator to ease his life</p>
<p>Print a count of the messages in the queue:</p>
<blockquote><p>exim -bpc</p></blockquote>
<p>Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):</p>
<blockquote><p>exim -bp</p></blockquote>
<p>Print a summary of messages in the queue (count, volume, oldest, newest, domain, and total</p>
<blockquote><p>exim -bp| exiqsumm</p></blockquote>
<p>Print what Exim is doing right now:</p>
<blockquote><p>exiwhat</p></blockquote>
<p>To check if the server routes the mail properly use exim -bt</p>
<blockquote>
<pre><strong>#</strong> exim -bt alias@localdomain.com
user@thishost.com
    &lt;-- alias@localdomain.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@thishost.com
user@thishost.com
  router = localuser, transport = local_delivery
<strong>root@localhost#</strong> exim -bt user@remotehost.com
  router = lookuphost, transport = remote_smtp
  host mail.remotehost.com [1.2.3.4] MX=0</pre>
</blockquote>
<p>Display all of Exim&#8217;s configuration settings:</p>
<blockquote><p>exim -bp</p></blockquote>
<h3>exiqgrep</h3>
<p>Its used for grepping through the  exim queue.</p>
<p>search the queue for messages from a specific sender :</p>
<blockquote><p>exigrep -f  user@domainname.com</p></blockquote>
<p>Search the queue for a specific reciepient</p>
<blockquote><p>exigrep -r user@domainname.com</p></blockquote>
<p>To print messages older than the specified number of seconds use -o .</p>
<p>For example, messages older than 1 day:</p>
<blockquote><p>exigrep -o 86400</p></blockquote>
<p>To print messages younger than specified number of seconds use -y</p>
<p>Messages younger than one day can be listed  using the command</p>
<blockquote><p>exigrep -y 86400</p></blockquote>
<p>Print just the message-id of the entire queue:</p>
<blockquote><p>exiqgrep -i</p></blockquote>
<h3>Managing the queue</h3>
<p>Start a queue run:</p>
<blockquote><p>exim -q -v</p></blockquote>
<p>Start a queue run for just local deliveries:</p>
<blockquote><p>exim -ql  -v</p></blockquote>
<p>Remove a message from the queue:</p>
<blockquote><p>exim -Mrm &lt;message id &gt;</p></blockquote>
<p>Freeze a message:</p>
<blockquote><p>exim -Mf &lt;message id &gt;</p></blockquote>
<p>Thaw a message:</p>
<blockquote><p>exim -Mt &lt;message id&gt;</p></blockquote>
<p>Deliver a message, whether it&#8217;s frozen or not, whether the retry time has been reached or not:</p>
<blockquote><p>exim -M &lt;message id&gt;</p></blockquote>
<p>Deliver a message, but only if the retry time has been reached:</p>
<blockquote><p>exim -Mc &lt;message_id&gt;</p></blockquote>
<p>Force a message to  Freeze and bounce as &#8220;Canceled by Admin&#8221;</p>
<blockquote><p>exim -Mg &lt;message id&gt;</p></blockquote>
<p>Remove all frozen mails</p>
<blockquote><p>exigrep -z -i | xargs exim -Mrm</p></blockquote>
<p>Remove all messages older than five days (86400 * 5 = 432000 seconds):</p>
<blockquote><p>exigrep -o 432000 -i | xargs exim -Mrm</p></blockquote>
<p>Freeze all queued mail from a given sender</p>
<blockquote><p>exiqgrep -i -f user@domain.com | xargs exim -Mf</p></blockquote>
<p>View a message&#8217;s headers:</p>
<blockquote><p>exim -Mvh &lt;messageid&gt;</p></blockquote>
<p>View a message&#8217;s body:</p>
<blockquote><p>exim -Mvb &lt;message id&gt;</p></blockquote>
<p>View a message&#8217;s logs:</p>
<blockquote><p>exim -Mvl &lt;message id&gt;</p></blockquote>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=Exim+cheat+sheet+-+Commands+for++troubleshoot+mail+issues+in+cPanel%2FDirectAdmin+or+any+exim+mail+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F499" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Exim+cheat+sheet+-+Commands+for++troubleshoot+mail+issues+in+cPanel%2FDirectAdmin+or+any+exim+mail+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F499" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/08/exim-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto change the email sending IP to an IP other than the main shared IP in exim on a cPanel server</title>
		<link>http://www.supportsages.com/blog/2009/05/howto-change-the-email-sending-ip-to-an-ip-other-than-the-main-shared-ip-in-exim-on-a-cpanel-server/</link>
		<comments>http://www.supportsages.com/blog/2009/05/howto-change-the-email-sending-ip-to-an-ip-other-than-the-main-shared-ip-in-exim-on-a-cpanel-server/#comments</comments>
		<pubDate>Fri, 22 May 2009 14:20:05 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email hosting]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[ip change]]></category>
		<category><![CDATA[mail hosting]]></category>
		<category><![CDATA[mail ip]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=384</guid>
		<description><![CDATA[Often it happens that a mail server's main IP gets black listed by Yahoo, Gmail, Hotmail etc, there by causing issues to the web hosting customers in the server yelling and raising lots of support tickets.

When yahoo generates a permanently deferred message, it will take approximately 4 days or 96 hours - sometimes even a week to get it start accepting the mails from the servers. Gmail and Hotmail, simply accept the mails, but it blackholes the email , means mails will simply be deleted, without any error message from the servers.

So the solution would be to identify the spam ...]]></description>
			<content:encoded><![CDATA[<p>Often it happens that a mail server&#8217;s main IP gets black listed by Yahoo, Gmail, Hotmail etc, there by causing issues to the web hosting customers in the server yelling and raising lots of support tickets.</p>
<p>When yahoo generates a permanently deferred message, it will take approximately 4 days or 96 hours &#8211; sometimes even a week to get it start accepting the mails from the servers. Gmail and Hotmail, simply accept the mails, but it blackholes the email , means mails will simply be deleted, without any error message from the servers.</p>
<p>So the solution would be to identify the spam sources and remove them. However even after we remove the spam sources, customers wont start getting emails immediately. So a temporary work around is to change the IPs from which the emails are sent out. </p>
<p>By default emails are sent out from a mail server using it&#8217;s main shared IP. Here we are changing it. You can change it on per-account basis or for a entire server</p>
<p>The easiest method to see a full version of the files with proper syntax is to temporarily enable the following &#8220;automatic&#8221; option under WHM >> Main >> Service Configuration >> Exim Configuration Editor >> Standard Options >> Domains and IPs<br />
&#8220;Automatically send outgoing mail from the account&#8217;s IP address instead of the main IP address.&#8221;</p>
<p>/etc/mailips will have the following format to be followed.</p>
<p><code>domain.com: xx.xx.xx.1<br />
sub.domain.com: xx.xx.xx.2<br />
addondomain.com: xx.xx.xx.2<br />
*: xx.xx.xx.xx </code></p>
<p>If you want the entire server to use an alternate IP, use the last line alone which is the wild card entry. </p>
<p><code>*: new.ip.for.smtp</code></p>
<p>Sometimes you would want to set <code>chattr +i /etc/mailips</code> since, a cPanel update can clear the lines in it. And once you believe the main server is unblocked, remove the chattr. Please restart the exim server as well, after you made the changes in /etc/mailips</p>
<p>You would need to search for<br />
<code><br />
remote_smtp:<br />
driver = smtp</code></p>
<p>and make sure that a line similar to below exists, which does literal search for the IPs in /etc/mailips. If /etc/mailips lines are not there, you can simply add interface=xx.xx.xx.xx entries.</p>
<blockquote><p>
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{$<br />
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value$</p></blockquote>
<p>Ref : <a  href="http://forums.cpanel.net/f43/formats-etc-mailhelo-mailips-etc-111977.html">http://forums.cpanel.net/f43/formats-etc-mailhelo-mailips-etc-111977.html</a> for more details and few more formats. </p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=Howto+change+the+email+sending+IP+to+an+IP+other+than+the+main+shared+IP+in+exim+on+a+cPanel+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F384" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Howto+change+the+email+sending+IP+to+an+IP+other+than+the+main+shared+IP+in+exim+on+a+cPanel+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F384" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/05/howto-change-the-email-sending-ip-to-an-ip-other-than-the-main-shared-ip-in-exim-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In cPanel, howto make exceptions in the email sending limit, per domain ?</title>
		<link>http://www.supportsages.com/blog/2009/05/in-cpanel-how-do-imake-exceptions-in-the-email-sending-limit-per-domain/</link>
		<comments>http://www.supportsages.com/blog/2009/05/in-cpanel-how-do-imake-exceptions-in-the-email-sending-limit-per-domain/#comments</comments>
		<pubDate>Sat, 16 May 2009 12:17:33 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email sending limit]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[per domain limit]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=351</guid>
		<description><![CDATA[You may have already know about the following option: Main --&#62; Server Configuration --&#62; Tweak Settings --&#62; The maximum each domain can send out per hour

We recommend you to set it as low as possible. And then make per domain restrictions as below, to increase the numbers.
<ol>
	<li>Login to your server</li>
	<li>Edit /var/cPanel/maxemails</li>
	<li>Add a new line saying "domain.com = increased_number" (eg: supportsages.com = 800)</li>
	<li>Save the file.</li>
	<li>And finally run /scripts/build_maxemails_config</li>
</ol>

And you are done!!!]]></description>
			<content:encoded><![CDATA[<p>You may have already know about the following option: Main &#8211;&gt; Server Configuration &#8211;&gt; Tweak Settings &#8211;&gt; The maximum each domain can send out per hour</p>
<p>We recommend you to set it as low as possible. And then make per domain restrictions as below, to increase the numbers.</p>
<ol>
<li>Login to your server</li>
<li>Edit /var/cPanel/maxemails</li>
<li>Add a new line saying &#8220;domain.com = increased_number&#8221; (eg: supportsages.com = 800)</li>
<li>Save the file.</li>
<li>And finally run /scripts/build_maxemails_config</li>
</ol>
<p>And you are done!!!</p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=In+cPanel%2C+howto+make+exceptions+in+the+email+sending+limit%2C+per+domain+%3F+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F351" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=In+cPanel%2C+howto+make+exceptions+in+the+email+sending+limit%2C+per+domain+%3F+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F351" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/05/in-cpanel-how-do-imake-exceptions-in-the-email-sending-limit-per-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
