Results 1 to 8 of 8

Thread: Problem with transport_maps in Zimbra 8 OS

  1. #1
    sisirontec is offline Junior Member
    Join Date
    Oct 2012
    Posts
    9
    Rep Power
    2

    Default Problem with transport_maps in Zimbra 8 OS

    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!

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,505
    Rep Power
    57

    Default

    Quote Originally Posted by sisirontec View Post
    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".
    Why do you have two Zimbra servers for the same domain?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    sisirontec is offline Junior Member
    Join Date
    Oct 2012
    Posts
    9
    Rep Power
    2

    Default

    Quote Originally Posted by phoenix View Post
    Why do you have two Zimbra servers for the same domain?
    They have two offices separated geographically, and they want that the accounts from office1 exists only in zimbra1 and the accounts from office2 only in zimbra2.

    Any idea?

  4. #4
    Join Date
    Mar 2013
    Posts
    11
    Rep Power
    2

    Default

    Hi sisirontec,

    This can be achived by having Two LDAP across location in replication mode. and two COS in which Server1 belong to first COS and server2 to second COS.

    While provisioninig account any user from Location1 can be created with First COS and for Location2 Respectively. So the user will be created on respective servers
    Md Safeek

  5. #5
    sisirontec is offline Junior Member
    Join Date
    Oct 2012
    Posts
    9
    Rep Power
    2

    Default

    After two zimbra-restarts all works great. I'm not sure what was wrong, but it's working now.

    Thanks for your responses.

  6. #6
    sisirontec is offline Junior Member
    Join Date
    Oct 2012
    Posts
    9
    Rep Power
    2

    Default

    It's not working again :/ and I didn't made any modification (just reboot the server).

    I have moved the transport file into /opt/zimbra/postfix/conf thinking maybe postfix need the config file in its home.

    if I made zmlocalconfig postfix_transport_maps I get:
    Code:
    postfix_transport_maps = hash:/opt/zimbra/postfix/conf/transport_internal,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
    And the file /opt/zimbra/postfix/conf/transport_internal in server1 has:
    Code:
     account2@mydomain.com smtp:[10.10.20.3]
    Code:
    Apr 11 17:59:27 mad postfix/smtpd[20523]: connect from server1.mydomain.com[192.168.140.223] 
    Apr 11 17:59:27 mad postfix/smtpd[20523]: NOQUEUE: reject: RCPT from server1.mydomain.com[192.168.140.223]: 550 5.1.1 <account2@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<account1@mydomain.com> to=<account2@mydomain.com> proto=ESMTP helo=<server1.mydomain.com>
    Apr 11 17:59:27 mad postfix/smtpd[20523]: disconnect from server1.mydomain.com[192.168.140.223]
    I have created in server1 the account for "account2@mydomain.com" and then execute in console:
    Code:
    zmprov ma account2@mydomain.com zimbraMailTransport smtp:10.10.20.3:25
    and after that, in the account, in advanced options, instead of "lmtp:server1.mydomain.com:7025" appears "smtp:server2.mydomain.com:25" which is correct (10.10.20.3 is the VPN address for server2.mydomain.com).

    This new account works great, and the mails is transported to server2...

    Any ideas?

  7. #7
    sisirontec is offline Junior Member
    Join Date
    Oct 2012
    Posts
    9
    Rep Power
    2

    Default

    I found the solution in the zimbra wiki Split Domain - Zimbra :: Wiki

    It works after doing this:
    Code:
    $ zmprov md example.com zimbraMailCatchAllAddress @example.com
    $ zmprov md example.com zimbraMailCatchAllForwardingAddress @example.com
    $ zmprov md example.com zimbraMailTransport smtp:mail.example.com

  8. #8
    snake_eyes's Avatar
    snake_eyes is offline Advanced Member
    Join Date
    Nov 2008
    Posts
    237
    Rep Power
    6

    Default

    I have the same idea but the external is google servers, I followed your steps but still sending to the local user instead of the google servers, any help with this? is it from the bind?
    - In a world without walls and fences who needs windows and gates?
    - I am Running Linux.. Finally, my PC is valid & Reliable Hereafter.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: 07-19-2013, 01:09 PM
  2. Replies: 0
    Last Post: 08-01-2010, 12:19 PM
  3. Replies: 4
    Last Post: 04-27-2010, 03:02 AM
  4. [SOLVED] zimbra transport_maps
    By hrch in forum Administrators
    Replies: 5
    Last Post: 08-25-2009, 04:54 PM
  5. Replies: 59
    Last Post: 12-05-2008, 10:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •