Results 1 to 2 of 2

Thread: Hand-made split domain configuration

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Palma, Majorca, Balearic Islands, Spain
    Posts
    44
    Rep Power
    7

    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 (smtp.example.com) and we have to gradually migrate to Zimbra (zimbra.example.com). 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:

    Code:
    address@example.com     smtp:zimbra.example.com
    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@example.com account:

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

    Code:
    account@example.com smtp:zimbra.example.com
    b) Edit /opt/zimbra/postfix/conf/transports:

    Code:
    account@example.com transport:nexthop
    Also, at the bottom, we would have this line, but just once:

    Code:
    example.com         smtp:smtp.example.com
    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:[example.com]" should work, but it does not.

    Any help will be appreciated. Thanks in advance.

    [1] Split Domain - Zimbra :: Wiki
    Jaume Sabater
    http://linuxsilo.net/

    "Ubi sapientas ibi libertas"

  2. #2
    Join Date
    Mar 2008
    Location
    Palma, Majorca, Balearic Islands, Spain
    Posts
    44
    Rep Power
    7

    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:
    account@example.com lmtp:127.0.0.1:7025
    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 user@example.com 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
    http://linuxsilo.net/

    "Ubi sapientas ibi libertas"

Similar Threads

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