<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — MX records, SPF/DKIM and virtual domains...]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic79.xml" />
	<updated>2009-06-18T07:50:08Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic79-mx-records-spfdkim-and-virtual-domains.html</id>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post389.html#p389" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Rashef wrote:</cite><blockquote><p>What about DKIM entry? Do I need to repeat it in every domain DNS config? Is the main domain enough?</p></blockquote></div><p>You can use a &#039;catch-all&#039; DKIM for all domains, so that you don&#039;t need to create &amp; maintain dkim keys, DNS records for each domains. </p><p>Open /etc/amavisd.conf and read dkim related settings.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-06-18T07:50:08Z</updated>
			<id>http://www.iredmail.org/forum/post389.html#p389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post385.html#p385" />
			<content type="html"><![CDATA[<p>The last... I swear!!! :-P<br />What about DKIM entry? Do I need to repeat it in every domain DNS config? Is the main domain enough?</p>]]></content>
			<author>
				<name><![CDATA[Rashef]]></name>
				<uri>http://www.iredmail.org/forum/user39.html</uri>
			</author>
			<updated>2009-06-17T12:56:24Z</updated>
			<id>http://www.iredmail.org/forum/post385.html#p385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post381.html#p381" />
			<content type="html"><![CDATA[<p>What&#039;s more if I set:</p><p>domain2.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3600&nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; TXT&nbsp; &nbsp; &nbsp;&quot;v=spf1 mx mx:mail.domain2.com -all&quot;<br />domain2.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;399&nbsp; &nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; MX&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; mail.domain2.com.<br />mail&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 399&nbsp; &nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;my_public_ip&gt;</p><p>I can read in my outgoing mails&#039; header:<br />Received-SPF: fail (receiverdomain.com: domain of user@domain2.com does not designate &lt;my_public_ip&gt; as permitted sender) client-ip=&lt;my_public_ip&gt;;</p><p>This is why I previously set</p><p>domain2.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3600&nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; TXT&nbsp; &nbsp; &nbsp;&quot;v=spf1 ip4:&lt;my_public_ip&gt; -all&quot;</p>]]></content>
			<author>
				<name><![CDATA[Rashef]]></name>
				<uri>http://www.iredmail.org/forum/user39.html</uri>
			</author>
			<updated>2009-06-17T11:07:02Z</updated>
			<id>http://www.iredmail.org/forum/post381.html#p381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post379.html#p379" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>shake wrote:</cite><blockquote><p>no, my mean is</p><p>if the mailbox is on domain2.com , user@domain2.com<br />if the mailbox is on domain3.com,&nbsp; user@domain3.com</p></blockquote></div><p>Ok, this match my settings...</p><div class="quotebox"><blockquote><p>the spf setting is different.</p><br /><p>domain3.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3600&nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; TXT&nbsp; &nbsp; &nbsp;&quot;v=spf1 mx mx:mail.domain3.com -all&quot;<br />domain2.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3600&nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; TXT&nbsp; &nbsp; &nbsp;&quot;v=spf1 mx mx:mail.domain2.com -all&quot;</p></blockquote></div><p>Ok, I think I missed this one. Has this to be set even if users are using the same host of main server?<br />I mean that both user@domain1.com and user@domain2.com are using smtp.domain1.com to send mail... is this wrong?</p>]]></content>
			<author>
				<name><![CDATA[Rashef]]></name>
				<uri>http://www.iredmail.org/forum/user39.html</uri>
			</author>
			<updated>2009-06-17T10:36:30Z</updated>
			<id>http://www.iredmail.org/forum/post379.html#p379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post378.html#p378" />
			<content type="html"><![CDATA[<p>no, my mean is</p><p>if the mailbox is on domain2.com , user@domain2.com<br />if the mailbox is on domain3.com,&nbsp; user@domain3.com</p><br /><br /><p>the spf setting is different.</p><br /><p>domain3.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3600&nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; TXT&nbsp; &nbsp; &nbsp;&quot;v=spf1 mx mx:mail.domain3.com -all&quot;<br />domain2.com.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3600&nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; TXT&nbsp; &nbsp; &nbsp;&quot;v=spf1 mx mx:mail.domain2.com -all&quot;</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-06-17T10:28:55Z</updated>
			<id>http://www.iredmail.org/forum/post378.html#p378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post377.html#p377" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>shake wrote:</cite><blockquote><p>the email client, the user name must be www@domain.com&nbsp; or www@maindomain.com</p><p>if you have the multi domian.</p></blockquote></div><p>Do you mean that if I have more then one domain</p><p>domain1.com (domain of the server)<br />domain2.com (virtual domain on postfix)<br />domain3.com (virtual domain on postfix)</p><p>all users must authenticate as user@domain1.com even if the mailbox is on domain2.com?<br />At now every user is able to authenticate with his own mail address (real mailbox, not alias).</p>]]></content>
			<author>
				<name><![CDATA[Rashef]]></name>
				<uri>http://www.iredmail.org/forum/user39.html</uri>
			</author>
			<updated>2009-06-17T10:19:04Z</updated>
			<id>http://www.iredmail.org/forum/post377.html#p377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post376.html#p376" />
			<content type="html"><![CDATA[<p>the email client, the user name must be www@domain.com&nbsp; or www@maindomain.com</p><p>if you have the multi domian.</p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-06-17T10:02:13Z</updated>
			<id>http://www.iredmail.org/forum/post376.html#p376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post368.html#p368" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>shake wrote:</cite><blockquote><p>recommend point the mx record to A record.</p></blockquote></div><p>Oh yes, I didn&#039;t specify but I I pointed the MX record to a (A)HOST. And users point to imap.domain.com/smtp.domain.com which are CNAME of that (A)HOST.</p><p>And I pointed the MX record of all virtual domains each to a (A)HOST linked to the same external IP of the mailserver.</p>]]></content>
			<author>
				<name><![CDATA[Rashef]]></name>
				<uri>http://www.iredmail.org/forum/user39.html</uri>
			</author>
			<updated>2009-06-17T08:15:18Z</updated>
			<id>http://www.iredmail.org/forum/post368.html#p368</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post364.html#p364" />
			<content type="html"><![CDATA[<p>recommend point the mx record to A record.</p><p>the spf record also suggest use the A record.</p><p><a href="http://code.google.com/p/iredmail/wiki/DNS_SPF">http://code.google.com/p/iredmail/wiki/DNS_SPF</a></p>]]></content>
			<author>
				<name><![CDATA[shake]]></name>
				<uri>http://www.iredmail.org/forum/user3.html</uri>
			</author>
			<updated>2009-06-17T06:59:58Z</updated>
			<id>http://www.iredmail.org/forum/post364.html#p364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MX records, SPF/DKIM and virtual domains...]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post363.html#p363" />
			<content type="html"><![CDATA[<p>I have some problem receiving mails... Before boring all of you with long lists of logfiles, I have some doubts...</p><p>What&#039;s the right configuration of MX records for virtual domains?<br />Is it better to point every MX record to the public IP address of the server or to the same hostname used for main domain&#039;s MX record (e.g. mail.maindomain.com)?<br />I&#039;m using the first way at now, but I&#039;m starting to feel that I missed something... for example, do I need to add the same SPF and DKIM entries in every domains&#039; DNS zone? I added these entries only in the main domain DNS zone and all clients use imap.maindomain.com/smtp.maindomain.com even if they have a mailbox under firstvirtualdomain.com... But lots of mails do not arrive. And I have no entry into /var/log/maillog for the sender address...</p><p>Thank you again...</p>]]></content>
			<author>
				<name><![CDATA[Rashef]]></name>
				<uri>http://www.iredmail.org/forum/user39.html</uri>
			</author>
			<updated>2009-06-17T06:28:56Z</updated>
			<id>http://www.iredmail.org/forum/post363.html#p363</id>
		</entry>
</feed>
