Forward Mails to external domain - how this are possible?
-
Hello all,
this time we are in the middle of us migration from windows 2011 SBS Exchange Server to Kopano. We use Kopano with UCS 4.4 with more then one maildomain. But not all of the mailboxes ore aliases are part of kopano. We are ISP too the some malboxes are on the central postfix/dovecot Serversystems. So the problem is if we send from kopano to a mailbox, they doesn’t exists on kopano, the will not be forwarded to external mailservers. On exchange this was easy to configure, but on kopano a did not find the option. Can anyone tell me were such option are please? And with what tool we can solve this? We use Version 8.7.1.0 .
Thanks a lot and best Regards
boospy -
Hi @boospy,
so you are saying that you have multiple mailboxes on a domain, but not all of them are on the same server? If yes then you seem to be looking for the transport map feature of Postfix.
-
Hello @boospy,
maybe you can find some useful informations here:
https://wiki.z-hub.io/display/K4U/Setting+up+Univention+to+allow+multiple+e-mail+addresses+per+user
-
Hello and thanks,
@fbartelsso you are saying that you have multiple mailboxes on a domain, but not all of them are on the same server?
YES
@Martin so the Transportfeature is broken? But this was a long time ago, hoply it works now…
@fbartels Yes i confgiured the feature simply in the file /etc/postfix/transport.
mydom.at smtp:[bsmtp.mydom.at]
After that an “postmap /etc/postfix/transport” and restart of Postfix. But i did not work. If i send a mail i got it back and in the log i see that:
Jun 3 21:27:10 vsrv-app02 kopano-spooler[14484]: Starting kopano-spooler version 8.7.1 (pid 14484 uid 998) Jun 3 21:27:11 vsrv-app02 postfix/smtpd[14487]: connect from localhost[127.0.0.1] Jun 3 21:27:11 vsrv-app02 postfix/smtpd[14487]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <externtestadress@mydom.at>: Recipient address rejected: User unknown in virtual mailbox table; from=<maxi@mydom.at> to=<externtestadress@mydom.at> proto=ESMTP helo=<vsrv-app02> Jun 3 21:27:11 vsrv-app02 kopano-spooler[14484]: RCPT line gave SMTP error 550 5.1.1 <externtestadress@mydom.at>: Recipient address rejected: User unknown in virtual mailbox table. (no retry) Jun 3 21:27:11 vsrv-app02 postfix/smtpd[14487]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=3/5 Jun 3 21:27:11 vsrv-app02 kopano-spooler[14484]: SMTP: Error while executing command 'DATA'. Response: 554 5.5.1 Error: no valid recipients Jun 3 21:27:11 vsrv-app02 kopano-spooler[14484]: E-mail for user maxi could not be sent, notifying user: cancel message (40580)
I found someting like this
ucr set mail/maps/transport/domain="meinedomain.de relay:[smtp.hoster.de]"
But this did not work in ucs 4.4.
Thanks a lot
-
@boospy said in Forward Mails to external domain - how this are possible?:
Yes i confgiured the feature simply in the file /etc/postfix/transport.
[…]
I found someting like this
ucr set mail/maps/transport/domain=“meinedomain.de relay:[smtp.hoster.de]”But this did not work in ucs 4.4.
Generally one should use the ucr instead of manually changing files on UCS. The above command still works on my 4.3 test system, if it does not work on 4.4 then this would need to be reported to Univention.
@boospy said in Forward Mails to external domain - how this are possible?:
Recipient address rejected: User unknown in virtual mailbox table.
Yes, even with a transport definition for a domain in place UCS still tries to resolve the user locally (but after the user has been resolved you could have a per user transport rule). Some other possible scenarios exist. Since this is a hosting environment I would recommend to get in contact with our support to discuss options.
-
It works now really fine. I don’t really know the solution. It was fixed by an colleague. He have done something with postfix and LDAP. I asked him if he had time to post the solution here.