<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Mail Alias]]></title>
		<link>http://www.iredmail.org/forum/topic3434-mail-alias.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic3434.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Mail Alias.]]></description>
		<lastBuildDate>Thu, 26 Jul 2012 12:32:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post17232.html#p17232</link>
			<description><![CDATA[<p>Query commands are all ok. I&#039;ve no idea why it doesn&#039;t work yet.<br />Does it work if you remove this alias domain then re-add it?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 26 Jul 2012 12:32:04 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17232.html#p17232</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post17214.html#p17214</link>
			<description><![CDATA[<p>Answers?</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Wed, 25 Jul 2012 17:01:56 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17214.html#p17214</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post17050.html#p17050</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Questions:</p><p>- Did you add alias domain with iRedAdmin-Pro or other tools/commands?</p></blockquote></div><p>Absolutely iRedAdmin-Pro</p><p> </p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>- Please show us output of SQL command:<br /></p><div class="codebox"><pre><code># mysql -uroot -p vmail
mysql&gt; SELECT alias_domain, target_domain, created, active FROM alias_domain;</code></pre></div></blockquote></div><p>+------------------------+-----------------+---------------------+--------+<br />| alias_domain&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| target_domain&nbsp; &nbsp;| created&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| active |<br />+------------------------+-----------------+---------------------+--------+<br />| aliasdomain.it&nbsp; &nbsp; &nbsp; &nbsp; | domain.it&nbsp; &nbsp; &nbsp; &nbsp; | 2012-06-25 10:54:39 |&nbsp; &nbsp; &nbsp; 1 |<br />+------------------------+-----------------+---------------------+--------+</p><br /><p> </p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>- Show me output of below command:<br /></p><div class="codebox"><pre><code># cd /etc/postfix/mysql/
# grep &#039;query&#039; *.cf</code></pre></div></blockquote></div><p>catchall_maps.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT alias.goto FROM alias,domain WHERE alias.address=&#039;%d&#039; AND alias.address=domain.domain AND alias.active=1 AND domain.active=1 AND domain.backupmx=0<br />domain_alias_catchall_maps.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT alias.goto FROM alias,alias_domain,domain WHERE alias_domain.alias_domain=&#039;%d&#039; AND alias.address=alias_domain.target_domain AND alias_domain.target_domain=domain.domain AND alias.active=1 AND alias_domain.active=1<br />domain_alias_maps.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT alias.goto FROM alias,alias_domain,domain WHERE alias_domain.alias_domain=&#039;%d&#039; AND alias.address=CONCAT(&#039;%u&#039;, &#039;@&#039;, alias_domain.target_domain) AND alias_domain.target_domain=domain.domain AND alias.active=1 AND alias_domain.active=1 AND domain.backupmx=0<br />recipient_bcc_maps_domain.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT bcc_address FROM recipient_bcc_domain WHERE domain=&#039;%d&#039; AND active=1<br />recipient_bcc_maps_user.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT recipient_bcc_user.bcc_address FROM recipient_bcc_user,domain WHERE recipient_bcc_user.username=&#039;%s&#039; AND recipient_bcc_user.domain=&#039;%d&#039; AND recipient_bcc_user.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND recipient_bcc_user.active=1<br />relay_domains.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT domain FROM domain WHERE domain=&#039;%s&#039; AND backupmx=1 AND active=1<br />sender_bcc_maps_domain.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT bcc_address FROM sender_bcc_domain WHERE domain=&#039;%d&#039; AND active=1<br />sender_bcc_maps_user.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT sender_bcc_user.bcc_address FROM sender_bcc_user,domain WHERE sender_bcc_user.username=&#039;%s&#039; AND sender_bcc_user.domain=&#039;%d&#039; AND sender_bcc_user.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND sender_bcc_user.active=1<br />sender_login_maps.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT mailbox.username FROM mailbox,domain WHERE mailbox.username=&#039;%s&#039; AND mailbox.domain=&#039;%d&#039; AND mailbox.domain=domain.domain AND mailbox.enablesmtp=1 AND mailbox.active=1 AND domain.backupmx=0 AND domain.active=1<br />transport_maps_domain.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT transport FROM domain WHERE domain=&#039;%s&#039; AND active=1<br />transport_maps_user.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT mailbox.transport FROM mailbox,domain WHERE mailbox.username=&#039;%s&#039; AND mailbox.domain=&#039;%d&#039; AND mailbox.domain=domain.domain AND mailbox.transport&lt;&gt;&#039;&#039; AND mailbox.active=1 AND mailbox.enabledeliver=1 AND domain.backupmx=0 AND domain.active=1<br />virtual_alias_maps.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT alias.goto FROM alias,domain WHERE alias.address=&#039;%s&#039; AND alias.domain=&#039;%d&#039; AND alias.domain=domain.domain AND alias.active=1 AND domain.backupmx=0 AND domain.active=1<br />virtual_mailbox_domains.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT domain FROM domain WHERE domain=&#039;%s&#039; AND backupmx=0 AND active=1 UNION SELECT alias_domain.alias_domain FROM alias_domain,domain WHERE alias_domain.alias_domain=&#039;%s&#039; AND alias_domain.active=1 AND alias_domain.target_domain=domain.domain AND domain.active=1 AND domain.backupmx=0<br />virtual_mailbox_maps.cf:query&nbsp; &nbsp; &nbsp; &nbsp;= SELECT CONCAT(mailbox.storagenode, &#039;/&#039;, mailbox.maildir, &#039;/Maildir/&#039;) FROM mailbox,domain WHERE mailbox.username=&#039;%s&#039; AND mailbox.active=1 AND mailbox.enabledeliver=1 AND domain.domain = mailbox.domain AND domain.active=1</p><p> </p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>- Show me output of below command. Please replace &#039;aliasdomain.com&#039; below with the real alias domain name.<br /></p><div class="codebox"><pre><code># cd /etc/postfix/mysql/
# for cf in $(ls *.cf); do echo $cf; postmap -q &#039;aliasdomain.com&#039; mysql:./$cf; done</code></pre></div></blockquote></div><br /><br /><p>catchall_maps.cf<br />domain_alias_catchall_maps.cf<br />domain_alias_maps.cf<br />recipient_bcc_maps_domain.cf<br />recipient_bcc_maps_user.cf<br />relay_domains.cf<br />sender_bcc_maps_domain.cf<br />sender_bcc_maps_user.cf<br />sender_login_maps.cf<br />transport_maps_domain.cf<br />transport_maps_user.cf<br />virtual_alias_maps.cf<br />virtual_mailbox_domains.cf<br />aliasdomain.it<br />virtual_mailbox_maps.cf</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Tue, 17 Jul 2012 11:01:48 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17050.html#p17050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post17047.html#p17047</link>
			<description><![CDATA[<div class="quotebox"><cite>infoaziende wrote:</cite><blockquote><p>I&#039;ve checked every single .cf file in mysql directory... and everything is fine according to the sample config files you told me to check.</p></blockquote></div><p>Then there must be something wrong in the data stored in SQL server.<br /></p><div class="quotebox"><cite>infoaziende wrote:</cite><blockquote><p>Now I&#039;have a new problem: Alias Domains!<br />Simply added an alias for one of my domain (and checked in the DB with a simple &quot;select * from alias_domain;&quot;)<br />But any mail sent to user1@aliasdomain.com is refused with code 550: Recipient address rejected: User unknown in virtual mailbox table;</p></blockquote></div><p>Questions:</p><p>- Did you add alias domain with iRedAdmin-Pro or other tools/commands?<br />- Please show us output of SQL command:<br /></p><div class="codebox"><pre><code># mysql -uroot -p vmail
mysql&gt; SELECT alias_domain, target_domain, created, active FROM alias_domain;</code></pre></div><p>- Show me output of below command:<br /></p><div class="codebox"><pre><code># cd /etc/postfix/mysql/
# grep &#039;query&#039; *.cf</code></pre></div><p>- Show me output of below command. Please replace &#039;aliasdomain.com&#039; below with the real alias domain name.<br /></p><div class="codebox"><pre><code># cd /etc/postfix/mysql/
# for cf in $(ls *.cf); do echo $cf; postmap -q &#039;aliasdomain.com&#039; mysql:./$cf; done</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 17 Jul 2012 10:19:29 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17047.html#p17047</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post17043.html#p17043</link>
			<description><![CDATA[<p>I&#039;ve checked every single .cf file in mysql directory... and everything is fine according to the sample config files you told me to check.<br />The issue is still present.<br />Anyway I&#039;ve changed the &quot;hosts&quot; parameter in every .cf file to make them pointing to the postfix server (I have separated the MTA/Antispam server from the mailboxes server)</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Tue, 17 Jul 2012 10:09:14 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post17043.html#p17043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16968.html#p16968</link>
			<description><![CDATA[<div class="quotebox"><cite>infoaziende wrote:</cite><blockquote><p>This is the output resulting from the operation above:</p></blockquote></div><p>There&#039;s no output related to alias domain, so there may be something wrong with your Postfix MySQL lookup files.</p><p>Could you please check value of parameter &quot;query =&quot; in all files under /etc/postfix/mysql/? Here are sample config files:<br /><a href="https://bitbucket.org/zhb/iredmail/src/e3052eea2223/iRedMail/samples/postfix/mysql/">https://bitbucket.org/zhb/iredmail/src/ … fix/mysql/</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 12 Jul 2012 11:04:56 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16968.html#p16968</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16937.html#p16937</link>
			<description><![CDATA[<div class="quotebox"><cite>infoaziende wrote:</cite><blockquote><p>any news?</p><p>tnx</p></blockquote></div><p>Sorry ZhangHuangbin, but I&#039;ve got no answer from you since 26/6... what happens?</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Wed, 11 Jul 2012 13:40:22 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16937.html#p16937</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16797.html#p16797</link>
			<description><![CDATA[<p>any news?</p><p>tnx</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Tue, 03 Jul 2012 09:46:26 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16797.html#p16797</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16674.html#p16674</link>
			<description><![CDATA[<p>This is the output resulting from the operation above:</p><br /><p>catchall_maps.cf<br />domain_alias_catchall_maps.cf<br />domain_alias_maps.cf<br />recipient_bcc_maps_domain.cf<br />recipient_bcc_maps_user.cf<br />relay_domains.cf<br />sender_bcc_maps_domain.cf<br />sender_bcc_maps_user.cf<br />sender_login_maps.cf<br />transport_maps_domain.cf<br />transport_maps_user.cf<br />virtual_alias_maps.cf<br />virtual_mailbox_domains.cf<br />virtual_mailbox_maps.cf</p><br /><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Tue, 26 Jun 2012 08:21:16 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16674.html#p16674</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16651.html#p16651</link>
			<description><![CDATA[<div class="quotebox"><cite>infoaziende wrote:</cite><blockquote><p>But any mail sent to user1@aliasdomain.com is refused with code 550: Recipient address rejected: User unknown in virtual mailbox table;</p></blockquote></div><p>Could you please paste output of below commands here to help troubleshoot? Replace &#039;user1@aliasdomain.com&#039; by the real email address (in alias domain) below:<br /></p><div class="codebox"><pre><code># cd /etc/postfix/mysql/
# for cf in $(ls *.cf); do echo $cf; postmap -q &#039;user1@aliasdomain.com&#039; mysql:./$cf; done</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 26 Jun 2012 01:12:17 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16651.html#p16651</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16650.html#p16650</link>
			<description><![CDATA[<p>Have you configured your dns correctly (mx records) for the alias domain?</p>]]></description>
			<author><![CDATA[null@example.com (frankbasti)]]></author>
			<pubDate>Mon, 25 Jun 2012 23:28:40 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16650.html#p16650</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16640.html#p16640</link>
			<description><![CDATA[<p>Now the external administrator of a domain, has added an alias user and it is working. Maybe an issue with the superadministrator.</p><p>Now I&#039;have a new problem: Alias Domains!</p><p>Simply added an alias for one of my domain (and checked in the DB with a simple &quot;select * from alias_domain;&quot;)<br />But any mail sent to user1@aliasdomain.com is refused with code 550: Recipient address rejected: User unknown in virtual mailbox table;</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Mon, 25 Jun 2012 14:23:32 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16640.html#p16640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16597.html#p16597</link>
			<description><![CDATA[<p>Does it work if you assign this user to mail alias in user profile page?</p><p>- Login to iRedAdmin-Pro<br />- Go to user profile page of user@example.com<br />- Assign this user to mail alias &#039;alias@example.com&#039;.<br />- Save changes.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 22 Jun 2012 12:14:04 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16597.html#p16597</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16584.html#p16584</link>
			<description><![CDATA[<p>Sorry for my late answer, but lately I&#039;ve been very busy.</p><p>I&#039;ve tried both solution, but there&#039;s no way to make it work.</p><p>Please, help!!</p>]]></description>
			<author><![CDATA[null@example.com (infoaziende)]]></author>
			<pubDate>Fri, 22 Jun 2012 09:28:47 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16584.html#p16584</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mail Alias]]></title>
			<link>http://www.iredmail.org/forum/post16096.html#p16096</link>
			<description><![CDATA[<p>- Did you try to add other mail users as alias member? Same issue?<br />- Did you try the latest iRedAdmin-Pro-MySQL-1.4.0?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 25 May 2012 15:56:22 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post16096.html#p16096</guid>
		</item>
	</channel>
</rss>
