Not sure how to solve: multiple email domains
-
Recently i re-installed Kopano Core 8.6.2 & Kopano Webapp after a crash.
Collecting mail from remote providers now only works for my main mail domain, not any additional domains.
I use multiple emaildomains, but in this example i will limit it to 2.
My setup:
UCS Invention server with Kopano Core, Kopano Webapp & Z-push.When i setup my UCS server, i named it server.domain1.net. Therefore, my primary mail domain on my server is ‘domain1.net’.
I have created a user1 with email address user1@domain1.net, and a user2 with email addres user2@domain2.net.
I have created 2 mail domains; domain1.net and domain2.net.In de Administration part of my public email provider, i have setup a forwarding rule so any mail sent to @domain1.net is forwarded to domain1@gmail.com, and any mail sent to @domain2.net is forwarded to domain2@gmail.com.
In the user settings mail retrieval settings of user 1, i have set up that it polls domain1@gmail.com (imap.googlemail.com).
In the user settings mail retrieval settings of user 2, i have set up that it polls domain2@gmail.com (imap.googlemail.com).Mail which is retrieved for user 1 (which was originally sent to i.e. user1@domain1.net and then forwarded to domain1@gmail.com) is delivered correctly to the Kopano mailbox of user1
Mail which is sent to user2@domain2.net and then forwarded to domain2@gmail.com) is not delivered to the Kopano mailbox of user2. The domain2 is rewritten to the primary domain in mail.log. I have pasted the mail.log lines for the succesfull delivery, and for the failed deliverySuccesfull:
Nov 23 19:42:04 server postfix/lmtp[6938]: 0BE4F31D02B4: to=<user1@domain1.net>, relay=127.0.0.1[127.0.0.1]:2003, delay=0.63, delays=0.13/0.03/0.03/0.44, dsn=2.1.5, status=sent (250 2.1.5 user1@domain1.net Ok)
Error:
Nov 23 19:42:30 server postfix/smtpd[6928]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <user2@domain1.net>: Recipient address rejected: User unknown in virtual mailbox table; from=<NoReplyTo@logius.nl> to=<user2@domain1.net> proto=ESMTP helo=<server.domain1.net>
Note that the domain part in the email address is rewritten to domain1, while it weas originally sent to domain2. Because i have no user2 configured with an email address user2@domain1.net, the user cannot be found.
I don’t know where to start looking, in my previous kopano setup, the only thing i had to do was set mail/relayauth to yes, and set mail/relayhost. Sending mail outside my server works fine.
-
I have found a work around: add a secondary emailaddress user2@domain1.net to user2.