Milan Petrovic
2016-11-25 08:40:43 UTC
So, I have Kolab 3.4 installed on Ubuntu 3.4 with the multi domain patch.
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.
I had first issue while creating users on this account so I had to edit
/usr/share/kolab-webadmin/lib/api/kolab_api_service_form_value.php and
comment out a line:
if (in_array('alias', $conf->get_list('mail_attributes'))) {
if
(!$this->_validate_email_address_in_any_of_my_domains($mail_address)) {
//throw new Exception("Email address '$mail_address'
not in local domain", 693);
}
if (!$this->_validate_crossdomain_alias($mail_address,
$postdata['mail'])) {
throw new Exception("Alias '$mail_address' must be
configured manually for '".$postdata['mail']."'");
}
}
Now I could add users with emails like ***@domain5, ***@domain6, but
cannot also have them have more than one address on both domains at the
same time (I cannot add ***@dom5, ***@dom6, ***@dom5 and ***@dom6 -
if I skip the ***@dom6, user can be created).
Then I had an issue with reception, users couldnât be found, so Iâve edited
the /etc/postfix/virtual_alias_maps_manual.cf and include this file in
main.cf (in virtual_alias_maps), so it looked like this:
# you can manually set aliases, across domains.
# for example:
#***@test2.de ***@test.de
#@test4.de @test.de
#@pokorra.it ***@test1.de
@domain6 @domain5
server_host = localhost
server_port = 389
version = 3
search_base = dc=%2,dc=%1
scope = sub
domain = ldap:/etc/postfix/ldap/mydestination.cf
bind_dn = uid=kolab-service,ou=Special Users,dc=myprimarydomain,dc=tld
bind_pw = mypass
query_filter = (&(|(mail=%s)(alias=%s))(objectclass=inetorgperson))
result_attribute = mailForwardingAddress
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
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â).
So, how to have the domain alias email addresses in a multi domain setup of
Kolab 3.4?
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.
I had first issue while creating users on this account so I had to edit
/usr/share/kolab-webadmin/lib/api/kolab_api_service_form_value.php and
comment out a line:
if (in_array('alias', $conf->get_list('mail_attributes'))) {
if
(!$this->_validate_email_address_in_any_of_my_domains($mail_address)) {
//throw new Exception("Email address '$mail_address'
not in local domain", 693);
}
if (!$this->_validate_crossdomain_alias($mail_address,
$postdata['mail'])) {
throw new Exception("Alias '$mail_address' must be
configured manually for '".$postdata['mail']."'");
}
}
Now I could add users with emails like ***@domain5, ***@domain6, but
cannot also have them have more than one address on both domains at the
same time (I cannot add ***@dom5, ***@dom6, ***@dom5 and ***@dom6 -
if I skip the ***@dom6, user can be created).
Then I had an issue with reception, users couldnât be found, so Iâve edited
the /etc/postfix/virtual_alias_maps_manual.cf and include this file in
main.cf (in virtual_alias_maps), so it looked like this:
# you can manually set aliases, across domains.
# for example:
#***@test2.de ***@test.de
#@test4.de @test.de
#@pokorra.it ***@test1.de
@domain6 @domain5
server_host = localhost
server_port = 389
version = 3
search_base = dc=%2,dc=%1
scope = sub
domain = ldap:/etc/postfix/ldap/mydestination.cf
bind_dn = uid=kolab-service,ou=Special Users,dc=myprimarydomain,dc=tld
bind_pw = mypass
query_filter = (&(|(mail=%s)(alias=%s))(objectclass=inetorgperson))
result_attribute = mailForwardingAddress
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
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â).
So, how to have the domain alias email addresses in a multi domain setup of
Kolab 3.4?