Thanks guys. I ll provide more info later.
I checked on my configuration and we have the following for the
virtual_mailbox_maps:

virtual_mailbox_maps = regexp:$config_directory/domain_rewriting
ldap:$config_directory/ldap-virtual-maps.cf

*<domain_rewriting>*
/^(.*)@mydomain1.com$/    ${1}@mydomain2.it
*</domain_rewriting>*


*<ldap-virtual-maps.cf <http://ldap-virtual-maps.cf>>*
server_host = ldap.mydomain2.it
search_base = dc=mydomain2,dc=it
version = 3
query_filter = mail=%s
result_attribute = homeDirectory
bind_pw = xxxxxxxx
bind_dn = cn=admin,dc=mydomain2,dc=it
*</ldap-virtual-maps.cf <http://ldap-virtual-maps.cf>>*



To me seems to be ok. So if I send an email to not existing user on
mydomain2.it I got an email back, instead if I send one to mydomain1.com
....nothing.

Thanks




On Wed, Apr 18, 2018 at 4:44 PM, /dev/rob0 <r...@gmx.co.uk> wrote:

> On Wed, Apr 18, 2018 at 04:15:19PM +0200, Alfredo De Luca wrote:
> > We have 2 domain managed by postfix.
> >
> > When I send an email to an not existing user in the first donain I
> > got back an email user unknown...
>
> "User unknown in virtual mailbox table" means the domain was found in
> virtual_mailbox_domains, but the user@domain was NOT found in
> virtual_mailbox_maps.
>
> > ..while if I send it to the second domain I don't
> > receive anything.
> >
> > Any issue/clue on this?
>
> See your logs, and see Angelo's post if you need help with it.
> --
>   http://rob0.nodns4.us/
>   Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
>



-- 
*Alfredo*

Reply via email to