<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Mail Lists and Aliases for Aliased Domains]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3571.xml" />
	<updated>2012-12-26T16:52:15Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3571-mail-lists-and-aliases-for-aliased-domains.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19659.html#p19659" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I have created a domain called mail.xxx.com &amp; alias name given was xxx.com. I tried to create a mailing list called sfs-bm@mail.xxx.com &amp; added few members. When i try to send email to sfs-bm@xxx.com It says users unknow in virtual mail box table. Can you help me on this</p><p>Error message in mail log</p><p> NOQUEUE: reject: RCPT from unknown[115.248.220.98]: 550 5.1.1 &lt;sfs-bm@xxx.in&gt;: Recipient address rejected: User unknown in virtual mailbox table;</p><p> </p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Hi @swiss2011,</p><p>Could you please clearly explain what your issue is in a new topic? And show us original error message to help troubleshoot.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[swiss2011]]></name>
				<uri>http://www.iredmail.org/forum/user16931.html</uri>
			</author>
			<updated>2012-12-26T16:52:15Z</updated>
			<id>http://www.iredmail.org/forum/post19659.html#p19659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19658.html#p19658" />
			<content type="html"><![CDATA[<p>Hi @swiss2011,</p><p>Could you please clearly explain what your issue is in a new topic? And show us original error message to help troubleshoot.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-12-26T16:31:47Z</updated>
			<id>http://www.iredmail.org/forum/post19658.html#p19658</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19657.html#p19657" />
			<content type="html"><![CDATA[<p>Hi ZhangHuangbin</p><p>I tried with the above steps. Its not working for me. It shows me an error message users not in virutal mailbox. Could you help me. </p><p>I am using&nbsp; iRedAdmin-Pro-LDAP-1.7.2/</p><p>My ldiff file for mailing list</p><p>dn: mail=sfs-bm@mail.xxxx.in,ou=Groups,domainName=mail.xxxx.in,o=domains,dc=xxx,dc=com<br />accessPolicy: subdomain<br />accountStatus: active<br />cn: SFS-BM<br />enabledService: mail<br />enabledService: deliver<br />mail: sfs-bm@mail.xxxx.in<br />objectClass: mailList</p><p>Thanks</p><p> </p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>chrisjrob wrote:</cite><blockquote><p>Please note that the instructions for debian/ubuntu would appear to be incorrect - /etc/init.d/ldap is not a service - it should be &quot;slapd&quot;.</p></blockquote></div><p>Fixed. it&#039;s a typo error caused by copy-paste. Thanks for your feedback. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[swiss2011]]></name>
				<uri>http://www.iredmail.org/forum/user16931.html</uri>
			</author>
			<updated>2012-12-26T16:18:16Z</updated>
			<id>http://www.iredmail.org/forum/post19657.html#p19657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16660.html#p16660" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>chrisjrob wrote:</cite><blockquote><p>Please note that the instructions for debian/ubuntu would appear to be incorrect - /etc/init.d/ldap is not a service - it should be &quot;slapd&quot;.</p></blockquote></div><p>Fixed. it&#039;s a typo error caused by copy-paste. Thanks for your feedback. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-06-26T01:52:22Z</updated>
			<id>http://www.iredmail.org/forum/post16660.html#p16660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16636.html#p16636" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>It&#039;s confirmed this is a bug in both iRedMail and iRedAdmin-Pro-LDAP. The latest iRedMail-0.8.1 and iRedAdmin-Pro-LDAP-1.7.2 handles alias domain for mail users and mail aliases, but not mail lists. Sorry about this trouble.</p></blockquote></div><p>No problem, bugs are a fact of life - it&#039;s how developers deal with them that matters - and this level of support is simply amazing.</p><div class="quotebox"><blockquote><p>1: Use the latest iRedMail LDAP schema file. Please follow this tutorial to use the latest schema file:<br /><a href="http://www.iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.8.1-0.8.2#Use_the_newest_schema_file">http://www.iredmail.org/wiki/index.php? … chema_file</a></p></blockquote></div><p>Please note that the instructions for debian/ubuntu would appear to be incorrect - /etc/init.d/ldap is not a service - it should be &quot;slapd&quot;.&nbsp; In Ubuntu, it should be </p><div class="codebox"><pre><code>service slapd restart</code></pre></div><p> although </p><div class="codebox"><pre><code>/etc/init.d/slapd restart</code></pre></div><p> works fine and is probably more Debian friendly.</p><div class="quotebox"><blockquote><p>You have to remove alias domain first, then add it again. So that (patched) iRedAdmin-Pro-LDAP will handle alias domain for all mail accounts correctly.<br />That&#039;s all. Let me know whether it works for you or not.</p></blockquote></div><p>Yes it worked, thank you so much, I cannot say how impressed I am.</p>]]></content>
			<author>
				<name><![CDATA[chrisjrob]]></name>
				<uri>http://www.iredmail.org/forum/user31532.html</uri>
			</author>
			<updated>2012-06-25T08:33:12Z</updated>
			<id>http://www.iredmail.org/forum/post16636.html#p16636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16613.html#p16613" />
			<content type="html"><![CDATA[<p>Dear chrisjrob,</p><p>It&#039;s confirmed this is a bug in both iRedMail and iRedAdmin-Pro-LDAP. The latest iRedMail-0.8.1 and iRedAdmin-Pro-LDAP-1.7.2 handles alias domain for mail users and mail aliases, but not mail lists. Sorry about this trouble.</p><p>You can fix it with below steps:</p><p>1: Use the latest iRedMail LDAP schema file. Please follow this tutorial to use the latest schema file:<br /><a href="http://www.iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.8.1-0.8.2#Use_the_newest_schema_file">http://www.iredmail.org/wiki/index.php? … chema_file</a></p><p>NOTE: The upgrade tutorial for upcoming iRedMail-0.8.2 is still a draft, please just apply section &quot;Use the newest schema file&quot;, do NOT try others.</p><p>2: Apply attached patch for iRedAdmin-Pro-LDAP-1.7.2.</p><p>Steps to apply this patch on your server:</p><p>1): Download attached patch, upload it to your server which has iRedAdmin-Pro-LDAP-1.7.2 running. Assume uploaded file is /root/maillist_shadowaddress.patch</p><p>2): Change working directory to the root directory of iRedAdmin-Pro-LDAP-1.7.2. For example:<br /></p><div class="codebox"><pre><code># cd /usr/share/apache2/iRedAdmin-Pro-LDAP-1.7.2/</code></pre></div><p>3): Verify the patch with command &#039;patch --dry-run -p1&#039;:<br /></p><div class="codebox"><pre><code># patch --dry-run -p1 &lt; /root/maillist_shadowaddress.patch
patching file libs/ldaplib/domain.py</code></pre></div><p>4): If you see the same output message, it&#039;s safe to apply it without &#039;--dry-run&#039;:<br /></p><div class="codebox"><pre><code># patch -p1 &lt; /root/maillist_shadowaddress.patch
patching file libs/ldaplib/domain.py</code></pre></div><p>5): Restart Apache web server.</p><p>You have to remove alias domain first, then add it again. So that (patched) iRedAdmin-Pro-LDAP will handle alias domain for all mail accounts correctly.</p><p>That&#039;s all. Let me know whether it works for you or not.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-06-23T10:18:30Z</updated>
			<id>http://www.iredmail.org/forum/post16613.html#p16613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16610.html#p16610" />
			<content type="html"><![CDATA[<p>virtual_alias_maps and query_filter settings in Postfix are correct. But output of postmap commands is not expected.<br />Could you please paste LDIF data of account &#039;composite@surreyhonda.co.uk&#039;? You can get the LDIF data with iRedAdmin-Pro-LDAP:</p><p>1: Log in to iRedAdmin-Pro-LDAP as global admin<br />2: Go to account profile page of mail list &#039;composite@<span style="color: red">tridentgarages.co.uk</span>&#039; (not composite@surreyhonda.co.uk)<br />3: Under profile page tab &#039;General&#039;, you can see link &quot;Export account to LDIF&quot;. That&#039;s what we want.</p><p>Then paste the whole LDIF data here to help troubleshoot.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-06-23T09:40:15Z</updated>
			<id>http://www.iredmail.org/forum/post16610.html#p16610</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16607.html#p16607" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Alias domain for mail alias/list should be handled correctly with iRedAdmin-Pro.</p></blockquote></div><p>That&#039;s good to know!&nbsp; Responses below:</p><div class="codebox"><pre><code># postconf virtual_alias_maps
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf</code></pre></div><div class="codebox"><pre><code># cd /etc/postfix/ldap/
/etc/postfix/ldap# for cf in $(ls *.cf); do echo $cf; postmap -q &#039;composite@surreyhonda.co.uk&#039; ldap:./$cf; done
catchall_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_group_maps.cf
virtual_group_members_maps.cf
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf
/etc/postfix/ldap#</code></pre></div><div class="codebox"><pre><code>/etc/postfix/ldap# grep &#039;query_filter&#039; *.cf
catchall_maps.cf:query_filter    = (&amp;(objectClass=mailUser)(accountStatus=active)(|(mail=@%d)(shadowAddress=@%d)))
recipient_bcc_maps_domain.cf:query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
recipient_bcc_maps_user.cf:query_filter    = (&amp;(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
relay_domains.cf:query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(&amp;(enabledService=domainalias)(domainAliasName=%s)))(domainBackupMX=yes)(accountStatus=active)(enabledService=mail))
sender_bcc_maps_domain.cf:query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
sender_bcc_maps_user.cf:query_filter    = (&amp;(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
sender_login_maps.cf:query_filter    = (&amp;(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=smtp)(|(mail=%s)(&amp;(enabledService=shadowaddress)(shadowAddress=%s))))
transport_maps_domain.cf:query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail))
transport_maps_user.cf:query_filter    = (&amp;(objectClass=mailUser)(mail=%s)(accountStatus=active)(enabledService=mail))
virtual_alias_maps.cf:query_filter    = (&amp;(|(mail=%s)(shadowAddress=%s))(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailAlias)(&amp;(objectClass=mailUser)(enabledService=forward))))
virtual_group_maps.cf:query_filter    = (&amp;(memberOfGroup=%s)(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailUser)(objectClass=mailExternalUser)))
virtual_group_members_maps.cf:query_filter    = (&amp;(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(mail=%s)(&amp;(enabledService=shadowaddress)(shadowAddress=%s))))
virtual_mailbox_domains.cf:query_filter    = (&amp;(objectClass=mailDomain)(|(domainName=%s)(&amp;(enabledService=domainalias)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail))
virtual_mailbox_maps.cf:query_filter    = (&amp;(objectClass=mailUser)(|(mail=%s)(&amp;(enabledService=shadowaddress)(shadowAddress=%s)))(accountStatus=active)(enabledService=mail)(enabledService=deliver))</code></pre></div>]]></content>
			<author>
				<name><![CDATA[chrisjrob]]></name>
				<uri>http://www.iredmail.org/forum/user31532.html</uri>
			</author>
			<updated>2012-06-22T13:59:13Z</updated>
			<id>http://www.iredmail.org/forum/post16607.html#p16607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16601.html#p16601" />
			<content type="html"><![CDATA[<p>Alias domain for mail alias/list should be handled correctly with iRedAdmin-Pro.</p><p>- Could you please show me output of below command:<br /></p><div class="codebox"><pre><code># postconf virtual_alias_maps</code></pre></div><p>- Show me output of below commands. Please replace sales@ by real email address in commands, but you can replace real email address/domain while pasting here to hide sensitive info.<br /></p><div class="codebox"><pre><code># cd /etc/postfix/ldap/
# for cf in $(ls *.cf); do echo $cf; postmap -q &#039;sales@surreyhonda.co.uk&#039; ldap:./$cf; done</code></pre></div><p>- Paste output of below command:<br /></p><div class="codebox"><pre><code># cd /etc/postfix/ldap/
# grep &#039;query_filter&#039; *.cf</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-06-22T12:38:10Z</updated>
			<id>http://www.iredmail.org/forum/post16601.html#p16601</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mail Lists and Aliases for Aliased Domains]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post16587.html#p16587" />
			<content type="html"><![CDATA[<p>- iRedMail 0.8.1 (LDAP)<br />- Ubuntu Server 12.04</p><p>I am commissioning a new mailserver using iRedMail with iRedAdmin-Pro.&nbsp; All seems as expected, with one exception, emails sent to aliases or mail lists for aliased domains are bouncing.</p><p>For example:</p><p>tridentgarages.co.uk - primary domain<br />surreyhonda.co.uk - aliased to tridentgarages.co.uk<br />tridenthonda.co.uk - aliased to tridentgarages.co.uk</p><p>Emails sent to user@surreyhonda.co.uk are arriving perfectly, but emails sent to alias or mail list e.g. sales@surreyhonda.co.uk are bouncing, presumably because the aliases or mail lists have not been set up on the aliased domains.</p><p>I suppose I can set up all 100 or so mail lists and aliases for each and every aliased domain (please no), but this seems so unnecessary.&nbsp; Worse, trying to keep them all synchronised will be a challenge. Having set up the domains to alias, surely anyone would expect that the mail lists and aliases would also be aliased?</p><p>On our previous mailserver, which also used postfix, dovecot, and openldap, we used Phamm for the administration.&nbsp; Under Phamm you set up a Catch-all for the domain &quot;@tridentgarages.co.uk&quot;, after which it all just worked.</p><p>Is this possible in some way?&nbsp; Or is this one for the wishlist?</p><p>Thanks!</p><p>Chris Roberts</p>]]></content>
			<author>
				<name><![CDATA[chrisjrob]]></name>
				<uri>http://www.iredmail.org/forum/user31532.html</uri>
			</author>
			<updated>2012-06-22T10:24:14Z</updated>
			<id>http://www.iredmail.org/forum/post16587.html#p16587</id>
		</entry>
</feed>
