<div dir="ltr">I was able to have the email delivered to the addr1@domain6 by changing the alias line in <a href="http://virtual_alias_maps_manual.cf">virtual_alias_maps_manual.cf</a> to:<div><br></div><div><span style="font-size:14.4px">addr1@domain6 = addr1@domain5</span><br></div><div><span style="font-size:14.4px"><br></span></div><div><span style="font-size:14.4px">If I leave the "=" sign out, the mail log complains that:</span></div><div><span style="font-size:14.4px">fatal: /etc/postfix/<a href="http://virtual_alias_maps_manual.cf">virtual_alias_maps_manual.cf</a>, line 1-10: missing '=' after attribute name: "addr1@domain6 addr1@domain5"</span><br></div><div><span style="font-size:14.4px"><br></span></div><div><span style="font-size:14.4px">But, after adding it, the email is received and shown in inbox but the account from which I've sent the email to addr1@domain6 get (I'm sending from gmail) gets an automatic reply saying:</span></div><div><span style="font-size:14.4px"><br></span></div><div><div><span style="font-size:14.4px">Reporting-MTA: dns; myHostName</span></div><div><span style="font-size:14.4px">X-Postfix-Queue-ID: BB400242398</span></div><div><span style="font-size:14.4px">X-Postfix-Sender: rfc822; myGmail</span></div><div><span style="font-size:14.4px">Arrival-Date: Fri, 25 Nov 2016 12:00:35 +0100 (CET)</span></div><div><span style="font-size:14.4px"><br></span></div><div><span style="font-size:14.4px">Final-Recipient: rfc822; =@myPrimaryKolabDomain.com</span></div><div><span style="font-size:14.4px">Original-Recipient: rfc822;=@</span><span style="font-size:14.4px"> myPrimaryKolabDomain</span><span style="font-size:14.4px">.com</span></div><div><span style="font-size:14.4px">Action: failed</span></div><div><span style="font-size:14.4px">Status: 5.1.1</span></div><div><span style="font-size:14.4px">Diagnostic-Code: X-Postfix; unknown user: "="</span></div></div><div><span style="font-size:14.4px"><br></span></div><div><span style="font-size:14.4px"><br></span></div><div><span style="font-size:14.4px">How to fix this?</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 25, 2016 at 9:40 AM, Milan Petrovic <span dir="ltr"><<a href="mailto:petrovic.milan@gmail.com" target="_blank">petrovic.milan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So, I have Kolab 3.4 installed on Ubuntu 3.4 with the multi domain patch.<br><br>I already have 4 single, separate domains added. I wanted to add a 5th one as a separate and a 6th one as its alias domain.<br><br>I had first issue while creating users on this account so I had to edit /usr/share/kolab-webadmin/lib/<wbr>api/kolab_api_service_form_<wbr>value.php and comment out a line:<br><br> if (in_array('alias', $conf->get_list('mail_<wbr>attributes'))) {<br> if (!$this->_validate_email_<wbr>address_in_any_of_my_domains($<wbr>mail_address)) {<br> //throw new Exception("Email address '$mail_address' not in local domain", 693);<br> }<br> if (!$this->_validate_<wbr>crossdomain_alias($mail_<wbr>address, $postdata['mail'])) {<br> throw new Exception("Alias '$mail_address' must be configured manually for '".$postdata['mail']."'");<br> }<br> }<br><br>Now I could add users with emails like addr1@domain5, addr1@domain6, but cannot also have them have more than one address on both domains at the same time (I cannot add addr1@dom5, addr1@dom6, addr2@dom5 and addr2@dom6 - if I skip the addr2@dom6, user can be created).<br><br>Then I had an issue with reception, users couldn’t be found, so I’ve edited the /etc/postfix/<a href="http://virtual_alias_maps_manual.cf" target="_blank">virtual_alias_<wbr>maps_manual.cf</a> and include this file in <a href="http://main.cf" target="_blank">main.cf</a> (in virtual_alias_maps), so it looked like this:<br><br> # you can manually set aliases, across domains.<br> # for example:<br> #<a href="mailto:myalias@test2.de" target="_blank">myalias@test2.de</a> <a href="mailto:mymailbox@test.de" target="_blank">mymailbox@test.de</a><br> #@<a href="http://test4.de" target="_blank">test4.de</a> @<a href="http://test.de" target="_blank">test.de</a><br> #@<a href="http://pokorra.it" target="_blank">pokorra.it</a> <a href="mailto:timotheus.pokorra@test1.de" target="_blank">timotheus.pokorra@test1.de</a><br> <br> @domain6 @domain5<br><br> server_host = localhost<br> server_port = 389<br> version = 3<br> search_base = dc=%2,dc=%1<br> scope = sub<br> <br> domain = ldap:/etc/postfix/ldap/<a href="http://mydestination.cf" target="_blank">mydesti<wbr>nation.cf</a><br><br> bind_dn = uid=kolab-service,ou=Special Users,dc=myprimarydomain,dc=<wbr>tld<br> bind_pw = mypass<br><br>query_filter = (&(|(mail=%s)(alias=%s))(<wbr>objectclass=inetorgperson))<br>result_attribute = mailForwardingAddress<br><br>Log showed I was missing a “=“ sign, and emails were not delivered to either domain5 or domain6, so I’ve changed the alias line to: @domain6 = @domain5<br><br>Now I have emails delivered to domain5 but log shows that emails cannot be delivered to domain6 ("Recipient address rejected: User unknown in local recipient table”).<br><br><br>So, how to have the domain alias email addresses in a multi domain setup of Kolab 3.4?<br></div>
</blockquote></div><br></div>