Hello,

I have two Zimbra 8 OS (Release 8.0.3.GA.5664.UBUNTU12.64 UBUNTU12_64 FOSS edition. in Ubuntu 12.04) for the same "mydomain.com". Some email accounts will go to the first one and others to the second. I have a postfix as a mail gateway in front of them which has all the accounts in its transport_maps. For the zimbras I have read Transport Table for external servers - Zimbra :: Wiki but it doesn't work for me :/


Mail gateway: 10.10.20.1 mail.mydomain.com
Zimbra1: 10.10.20.2 zimbra1.mail.mydomain.com
Zimbra2: 10.10.20.2 zimbra2.mail.mydomain.com

In the mail gateway the config is working great:
Code:
relay_recipient_maps = hash:/etc/postfix/recipient
transport_maps = hash:/etc/postfix/transport
And the file recipient:
Code:
admin.1@mydomain.com OK
admin.2@mydomain.com OK
account.1@mydomain.com OK
account.2@mydomain.com OK
And the file transport:
Code:
admin.1@mydomain.com smtp:[10.10.20.2]:25
admin.2@mydomain.com smtp:[10.10.20.3]:25
account.1@mydomain.com smtp:[10.10.20.2]:25
account.2@mydomain.com smtp:[10.10.20.3]:25
As I said, it's working great, the postfix send the mail to the zimbra where the account exists. Of course, I have maid the portmap for those files.

The problem is when I try to send the mail from zimbra1 to the account account.2@mydomain.com which is in the zimbra2.

In both zimbras I have the modified the config :
Code:
zimbra@zimbra1:~/scripts$ zmlocalconfig   |grep -i postfix_transport_maps
postfix_transport_maps = hash:/opt/zimbra/scripts/transport proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
Code:
zimbra@zimbra2:~/scripts$ zmlocalconfig   |grep -i postfix_transport_maps
postfix_transport_maps = hash:/opt/zimbra/scripts/transport proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
And the /opt/zimbra/scripts/transport in the zimbra1 has:
Code:
admin.2@mydomain.com smtp:[10.10.20.3]:25
account.2@mydomain.com smtp:[10.10.20.3]:25
And in the zimbra2:
Code:
admin.1@mydomain.com smtp:[10.10.20.2]:25
account.1@mydomain.com smtp:[10.10.20.2]:25
When I try to send the mail from the web interface in the zimbra1 it said:
Code:
Mar 27 11:05:55 mad postfix/smtpd[20597]: connect from zimbra1.mail.mydomain.com[10.10.0.238]
Mar 27 11:05:55 mad postfix/smtpd[20597]: NOQUEUE: reject: RCPT from zimbra1.mail.mydomain.com[10.10.0.238]: 550 5.1.1 <account.2@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<account.1@mydomain.com> to=<account.2@mydomain.com> proto=ESMTP helo=<mail.mydomain.com>
Mar 27 11:05:55 mad postfix/smtpd[20597]: disconnect from mail.mydomain.com[10.10.0.238]
10.10.0.238 is the internal IP, because 10.10.20.0 is a VPN between them (I can connect between servers, they have no IPTABLES rules).

Of course I have made transport /opt/zimbra/scripts/transport but it doesn't work.

I have missed something but not sure what :/

Any help what have I missed?

Thanks!