<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — iRedMail backup mx]]></title>
		<link>http://www.iredmail.org/forum/topic4267-iredmail-backup-mx.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic4267.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in iRedMail backup mx.]]></description>
		<lastBuildDate>Tue, 11 Dec 2012 15:26:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: iRedMail backup mx]]></title>
			<link>http://www.iredmail.org/forum/post19497.html#p19497</link>
			<description><![CDATA[<p>Thanks for your sharing. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 11 Dec 2012 15:26:02 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19497.html#p19497</guid>
		</item>
		<item>
			<title><![CDATA[Re: iRedMail backup mx]]></title>
			<link>http://www.iredmail.org/forum/post19486.html#p19486</link>
			<description><![CDATA[<p>Thanks I&#039;ve got it working.</p><p>For those wondering the exact process (I&#039;m sure there may be better ways!)</p><p>Comment out the following line in /etc/postfix/main.cf. <br /></p><div class="codebox"><pre><code>#content_filter = smtp-amavis:[127.0.0.1]:10024</code></pre></div><p>We don&#039;t need to do any virus scanning or spam checking on the relay server.</p><br /><br /><p>Modify /etc/postfix/ldap/virtual_mailbox_domains.cf and replace the following:<br /></p><div class="codebox"><pre><code># comment out this line below
# query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(&amp;(enabledService=domainalias)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail))

# add this line
query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(&amp;(enabledService=domainalias2)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail2))</code></pre></div><p>It doesn&#039;t really matter what you use in query_filter as long as it returns nothing from the query.</p><br /><br /><br /><p>Modify /etc/postfix/ldap/transport_maps_domain.cf like the following:<br /></p><div class="codebox"><pre><code># comment out this line below
# query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail))

# add this line
query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail2))</code></pre></div><p>It doesn&#039;t really matter what you use in query_filter as long as it returns nothing from the query.</p><br /><br /><br /><p>Modify /etc/postfix/ldap/relay_domains.cf like the following:<br /></p><div class="codebox"><pre><code># comment out this line below
# query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(&amp;(enabledService=domainalias)(domainAliasName=%s)))(domainBackupMX=yes)(accountStatus=active)(enabledService=mail))

# add this line
query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(&amp;(enabledService=domainalias)(domainAliasName=%s)))(accountStatus=active)(enabledService=mail))</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (orphans)]]></author>
			<pubDate>Tue, 11 Dec 2012 10:16:32 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19486.html#p19486</guid>
		</item>
		<item>
			<title><![CDATA[Re: iRedMail backup mx]]></title>
			<link>http://www.iredmail.org/forum/post19485.html#p19485</link>
			<description><![CDATA[<p>Thanks this was my initial idea, I&#039;ll give it another try. Just wanted to make sure I was thinking along the right lines.</p>]]></description>
			<author><![CDATA[null@example.com (orphans)]]></author>
			<pubDate>Tue, 11 Dec 2012 09:24:03 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19485.html#p19485</guid>
		</item>
		<item>
			<title><![CDATA[Re: iRedMail backup mx]]></title>
			<link>http://www.iredmail.org/forum/post19476.html#p19476</link>
			<description><![CDATA[<p>How about this:</p><p>- Modify ldap filter in /etc/postfix/ldap/virtual_mailbox_domains.cf to make it always return empty (no hosting virtual domains).<br />- Modify ldap filter in /etc/postfix/ldap/relay_domains.cf to make it always return valid virtual domains as relay domains.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 11 Dec 2012 02:25:13 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19476.html#p19476</guid>
		</item>
		<item>
			<title><![CDATA[iRedMail backup mx]]></title>
			<link>http://www.iredmail.org/forum/post19466.html#p19466</link>
			<description><![CDATA[<p>==== Required information ====<br />- iRedMail version: latest<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Linux/BSD distribution name and version: <br />- Related log if you&#039;re reporting an issue: <br />====</p><p>Hi, me yet again.</p><p>We&#039;re looking to set up a backup MX for our new iRedMail/iRedAdmin-Pro setup. However we DON&#039;T want the standard setup advised here in other posts. (That being, you manually flag each domain to be a backup MX on the backup MX server).</p><p>We are running openldap with syncrepl to make sure all new domains are also synced across to the backup server, this means we can&#039;t really make amends to the local LDAP database on the backup MX server. We&#039;d prefer to have this server accept and forward mail for all valid/enabled domains in LDAP. </p><p>I&#039;ve been fiddling around with /etc/postfix/ldap/relay_domains.cf and /etc/postfix/main.cf, but I can&#039;t seem to get postfix to relay all mail for all domains without either attempting to deliver it locally, or the whole server acting as an open relay.</p>]]></description>
			<author><![CDATA[null@example.com (orphans)]]></author>
			<pubDate>Mon, 10 Dec 2012 15:30:08 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19466.html#p19466</guid>
		</item>
	</channel>
</rss>
