<?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>PHP Architect blog &#187; mail</title>
	<atom:link href="http://www.php-architect.com/blog/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>PHP, MySQL, ZF, Python, Linux, Mac, C++, Java, Flex, Air, ActionScript &#38; apps development.</description>
	<lastBuildDate>Tue, 24 Aug 2010 06:32:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mail System @ Office is back 2 life again.</title>
		<link>http://www.php-architect.com/blog/2008/01/16/mail-system-office-is-back-2-life-again/</link>
		<comments>http://www.php-architect.com/blog/2008/01/16/mail-system-office-is-back-2-life-again/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 13:33:47 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Mail System]]></category>
		<category><![CDATA[a record]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mdaemon]]></category>
		<category><![CDATA[mx record]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/?p=25</guid>
		<description><![CDATA[Recently we had this problem in the company, our mails doesn&#8217;t reach some of the recipients, after analyzing the situation, i discovered that we have 2 problems : 1- Our forward and reverse DNS doesn&#8217;t match check the error from DnsStuff.com when i test the reverse DNS on our mail server : 1 2 3 [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Recently we had this problem in the company, our mails doesn&#8217;t reach some of the recipients,</p>
<p>after analyzing the situation, i discovered that we have 2 problems :</p>
<p>1- Our forward and reverse DNS doesn&#8217;t match</p>
<p><strong>check the error from DnsStuff.com when i test the reverse DNS on our mail server :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Location: Egypt (high) [City: Cairo, Al Qahirah]Preparation:The  reverse DNS entry for an IP is found by reversing the IP, adding it to &quot;in-addr.arpa&quot;, and looking up the PTR record.So, the reverse DNS entry for 217.52.xx.xxx is found by looking up the PTR record forxxx.xx.52.217.in-addr.arpa.
&nbsp;
All DNS requests start by asking the root servers, and they let us know what to do next.
&nbsp;
See How Reverse DNS Lookups Work for more information.
&nbsp;
How I am searching:
&nbsp;
Asking g.root-servers.net for xxx.xx.52.217.in-addr.arpa PTR record:
&nbsp;
g.root-servers.net says to go to sec1.apnic.net. (zone: 217.in-addr.arpa.)
&nbsp;
Asking sec1.apnic.net. for xxx.xx.52.217.in-addr.arpa PTR record:
&nbsp;
sec1.apnic.net [202.12.xx.xx] says to go to ns2.xxxx-online.net. (zone: 52.217.in-addr.arpa.)
&nbsp;
Asking ns2.nile-online.net. for xxx.xx.52.217.in-addr.arpa PTR record:  Reports mail.xxx-xxxxxxxxxxxxx.com. [from 62.140.73.2]
&nbsp;
Answer:
&nbsp;
217.52.xx.xxx PTR record: mail.xxx-xxxxxxxxxxxxx.com. [TTL 86400s] [A=CNAME] *ERROR* A record for mail.xxx-xxxxxxxxxxxxx.com. does not point back to original IP.  RFC1912 2.1 disallows CNAMEs.
&nbsp;
To see the reverse DNS traversal, to make sure that all DNS servers are reporting the correct results, you can Click Here.</pre></td></tr></table></div>

<p>2- We don&#8217;t have any reference for the server in the office that we use to send direct emails in the MX Records of our domain, which makes some server doesn&#8217;t trust our emails.</p>
<p><strong>Check the headers of emails from gmail when we had the problem :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Received-SPF: neutral (google.com: 217.52.xx.xxx is neither permitted nor denied by best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com) client-ip=217.52.xx.xxx;Authentication-Results: mx.google.com; spf=neutral (google.com: 217.52.xx.xxx is neither permitted nor denied by best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com) smtp.mail=ahmed@xxx-xxxxxxxxxxxx.com</pre></td></tr></table></div>

<p><strong>I solved the 2 problems by following the next steps:</strong></p>
<p>1- Created A record mailer1.xxx-xxxxxxxxxxxx.com to point to our mail server IP 217.52.xx.xxx</p>
<p>2- Created MX record for the A record previously created.</p>
<p>3- Contacted our ISP to change the reverse DNS / PTR to reply with  mailer1.xxx-xxxxxxxxxxxx.com for any reverse lookup.</p>
<p>Now after 24 hours everything seems working perfectly,</p>
<p><strong>check the reverse lockup results from DnsStuff.com :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Location: Egypt (high) [City: Cairo, Al Qahirah]
&nbsp;
Preparation:
The  reverse DNS entry for an IP is found by reversing the IP, adding it to &quot;in-addr.arpa&quot;, and looking up the PTR record.
So, the reverse DNS entry for 217.52.xx.xxx is found by looking up the PTR record for
 xxx.xx.52.217.in-addr.arpa.
All DNS requests start by asking the root servers, and they let us know what to do next.
See How Reverse DNS Lookups Work for more information.
&nbsp;
How I am searching:
Asking i.root-servers.net for xxx.xx.52.217.in-addr.arpa PTR record:
       i.root-servers.net says to go to ns3.nic.fr. (zone: 217.in-addr.arpa.)
Asking ns3.nic.fr. for xxx.xx.52.217.in-addr.arpa PTR record:
       ns3.nic.fr [192.134.x.xx] says to go to ns2.nile-online.net. (zone: 52.217.in-addr.arpa.)
Asking ns2.nile-online.net. for xxx.xx.52.217.in-addr.arpa PTR record:  Reports mailer1.xxx-xxxxxxxxxxxx.com. [from 62.140.xx.x]
&nbsp;
Answer:
217.52.31.189 PTR record: mailer1.cha-international.com. [TTL 86400s] [A=217.52.xx.xxx]</pre></td></tr></table></div>

<p><strong>and the headers of our emails from gmail.</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Received-SPF: pass (google.com: best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com designates 217.52.xx.xxx as permitted sender) client-ip=217.52.xx.xxx;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com designates 217.52.xx.xxx as permitted sender) smtp.mail=ahmed@xxx-xxxxxxxxxxxx.com</pre></td></tr></table></div>

<p>I hope this would be useful for  you as it was for me, have a nice mail <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/16/mail-system-office-is-back-2-life-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
