Not sure how to solve: multiple email domains
pwhooftman last edited by pwhooftman
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.
UCS Invention server with Kopano Core, Kopano Webapp & Z-push.
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 firstname.lastname@example.org, and any mail sent to @domain2.net is forwarded to email@example.com.
In the user settings mail retrieval settings of user 1, i have set up that it polls firstname.lastname@example.org (imap.googlemail.com).
In the user settings mail retrieval settings of user 2, i have set up that it polls email@example.com (imap.googlemail.com).
Mail which is retrieved for user 1 (which was originally sent to i.e. firstname.lastname@example.org and then forwarded to email@example.com) is delivered correctly to the Kopano mailbox of user1
Mail which is sent to firstname.lastname@example.org and then forwarded to email@example.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 delivery
Nov 23 19:42:04 server postfix/lmtp: 0BE4F31D02B4: to=<firstname.lastname@example.org>, 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 email@example.com Ok)
Nov 23 19:42:30 server postfix/smtpd: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <firstname.lastname@example.org>: Recipient address rejected: User unknown in virtual mailbox table; from=<NoReplyTo@logius.nl> to=<email@example.com> 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 firstname.lastname@example.org, 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.
pwhooftman last edited by
I have found a work around: add a secondary emailaddress email@example.com to user2.