I have a setup that is slowly migrating away from MS Exchange. I've setup Zimbra on the front end accepting SMTP for "domain.com" and all is well. However, some departments are slower to migrate away from Exchange to Zimbra so I'd like to forward emails from "firstname.lastname@example.org" to "email@example.com".
I've setup a local zone file which resolves the MX and A records necessary for delivery to "domain.local". However, I get an error upon delivery to the Exchange server:
I've tested delivery via telnet to "firstname.lastname@example.org" mimicking the actual delivery and it succeeded. But when I attempt a legitimate delivery through Zimbra I get the error above.postfix/smtp: 38920141184DD: to=<email@example.com>, relay=exchange.domain.local[192.168.12.2], delay=0, status=bounced (mail for exchange.domain.local loops back to myself)
A command line test from Zimbra to Exchange:~# host domain.local
domain.local has address 192.168.12.2
domain.local mail is handled by 10 exchange.domain.local.
~# host domain.com
domain.com has address 192.168.12.99
domain.com mail is handled by 10 mail.domain.com.
... and the email message arrives correctly in firstname.lastname@example.org's inbox on the Exchange server. I don't see where the mail loop is happening.~# telnet exchange.domain.local 25
Connected to exchange.domain.local (192.168.12.2).
Escape character is '^]'.
220 mail.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Sun, 28 Oct 2007 23:41:41 -0700
250 mail.domain.com Hello [192.168.12.99]
250 2.1.0 email@example.com....Sender OK
250 2.1.5 firstname.lastname@example.org
354 Start mail input; end with <CRLF>.<CRLF>
250 2.6.0 <SERVERpFVjCRGryWtII00000003@mail.domain.com> Queued mail for delivery