Results 1 to 2 of 2

Thread: Hand-made split domain configuration

  1. #1
    Join Date
    Mar 2008
    Palma, Majorca, Balearic Islands, Spain
    Rep Power

    Default Hand-made split domain configuration

    Hello everyone!

    I have this quite common situation in which I have a customer that has a Postifx mail server ( and we have to gradually migrate to Zimbra ( So, I've set up a Zimbra server on Ubuntu 6 and now I am trying to configure the transport_maps appropriately. Both machines are on the same subnet. My objectives are:

    1. Configure Postfix in the existing mail server with transport_maps = hash:/etc/postfix/transports_zimbra and add there the list of email addresses that are being migrated to Zimbra, as follows:

    2. Configure Postfix in the existing mail server to allow relay from the Zimbra machine by adding Zimbra's IP to mynetworks.

    3. Configure Zimbra to use the existing mail server to send mail.

    4. Make all migrated clients use the Zimbra server only (both IMAP and SMTP). Client does not want "half migrated" accounts that use the current mail server as SMTP and the new Zimbra as IMAP.

    5. Configure transport_maps in Zimbra in the opposite way, so that all mail for local email accounts (migrated accounts) stay and rest is sent to the existing mail server.

    Now I have already done steps 1 to 4. I have read the "Split Domain" wiki article [1] and I am quite positive that the situation described in "Configuring Zimbra as the Secondary System" should work for me. But the thing is that I'd rather "do it myself" to be sure about what is happening (and to learn, and to be able to undo things in the future - the article does not describe how to undo the steps when the migration is complete).

    So, I am trying to give this option to the customer when migrating account:

    a) Edit /etc/postfix/transports_zimbra in the existing mail server and add this line:

    b) Edit /opt/zimbra/postfix/conf/transports:

    Code: transport:nexthop
    Also, at the bottom, we would have this line, but just once:

    Finally, my problem is that I don't know which is the proper configuration for "transport:nexthop". I have tried with local and virtual, but do not work. I know that Zimbra uses virtual, so I thought that "virtual:[]" should work, but it does not.

    Any help will be appreciated. Thanks in advance.

    [1] Split Domain - Zimbra :: Wiki
    Jaume Sabater

    "Ubi sapientas ibi libertas"

  2. #2
    Join Date
    Mar 2008
    Palma, Majorca, Balearic Islands, Spain
    Rep Power

    Default Solved with LMTP

    So, in the end, I made it work by using this on the Zimbra server, file /opt/zimbra/postfix/conf/transport:

    Code: lmtp:
    Now on the existing mail server I will also try to use LMTP instead of SMTP, which should work.

    I know this configuration may seem a bit overcomplex, but my idea was to give the customer the ability to do something like:

    1. I want to migrate account to Zimbra
    2. I create account on Zimbra.
    3. I set the transport entry in the current mail server
    4. I set the transport entry in the new Zimbra server
    5. I move all email
    6. I delete the account in the old mail system.

    So they will end up with two transport tables with the same number of entries (same left part, different right part).

    Does it sound too crazy?
    Jaume Sabater

    "Ubi sapientas ibi libertas"

Similar Threads

  1. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  2. Split Domain Confusion
    By hurstel in forum Installation
    Replies: 8
    Last Post: 06-02-2008, 05:49 AM
  3. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  4. Split Domain w/Sendmail
    By psimoneschi in forum Migration
    Replies: 4
    Last Post: 02-09-2007, 06:59 AM
  5. Split Domain with OS X Postfix
    By wickhamandrew in forum Installation
    Replies: 1
    Last Post: 01-16-2007, 07:29 PM

Posting Permissions

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