Results 1 to 9 of 9

Thread: SMTP Routes in Zimbra

  1. #1
    abhiz's Avatar
    abhiz is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Mumbai
    Posts
    193
    Rep Power
    6

    Default SMTP Routes in Zimbra

    I would like to route my zimbra server emails for domain xyz.com to my domain google apps mail server domain xyz.com is it possible.

  2. #2
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    300
    Rep Power
    7

    Default

    I don't think this is a supported method but it works fine for us. You will want to use the postfix transport map feature. You would have to create a transport file (and use postmap to make it into transport.db). Syntax would be for example:

    xyz.com smtp:[aspmx.l.google.com]

    You would also need to change the following in main.cf within /opt/zimbra/postfix/conf
    transport_maps = proxy:ldap:/opt/zimbra/onf/ldap-transport.cf
    to:
    transport_maps = proxy:ldap:/opt/zimbra/conf/ldap-transport.cf, hash:/opt/zimbra/postfix/conf/transport

    The postfix changes will be reverted when Zimbra is updated (and I've seen it happen other times as well) so you will want to redo any postfix changes after updates and even have a script to monitor main.cf for any changes.

    I highly recommend reading up on the postfix documentation for this. I'm not sure how to make it go through to multiple systems. For example, if you want it to go to either aspmx.l.google.com or alt1.aspmx.l.google.com, etc.
    ---
    Paul Chauvet
    State University of New York at New Paltz

  3. #3
    abhiz's Avatar
    abhiz is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Mumbai
    Posts
    193
    Rep Power
    6

    Default

    I have tried this on my server but its not working for me is there any other way ?

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,484
    Rep Power
    56

    Default

    Quote Originally Posted by abhiz View Post
    I have tried this on my server but its not working for me is there any other way ?
    Do give some feedback on what errors you're seeing rather than 'it doesn't work' - the method you've been given does work.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    abhiz's Avatar
    abhiz is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Mumbai
    Posts
    193
    Rep Power
    6

    Default

    I am not getting any error thats why I have not posted any error.

  6. #6
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    300
    Rep Power
    7

    Default

    Can you make sure there are no errors in /var/log/maillog if you haven't checked that specific file?

    Also - did you restart or reload postfix after making these changes? If not (as root):
    /opt/zimbra/postfix/sbin/postfix reload
    ---
    Paul Chauvet
    State University of New York at New Paltz

  7. #7
    abhiz's Avatar
    abhiz is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Mumbai
    Posts
    193
    Rep Power
    6

    Default

    xyz.com smtp:[aspmx.l.google.com] this I entered in my transport file /opt/zimbra/postfix/conf/transport and I restarted my zimbra services also zmcontrol stop/start.

    tail -f /var/log/mail.log | grep abhishek@xyz.com
    Jan 21 20:48:07 corp postfix/qmgr[4813]: 37FC94E008: from=<abhishek@xyz.com>, size=1144, nrcpt=1 (queue active)
    Jan 21 20:48:08 corp postfix/qmgr[4813]: 211874E026: from=<abhishek@xyz.com>, size=1609, nrcpt=1 (queue active)
    Jan 21 20:48:08 corp postfix/smtp[32469]: 37FC94E008: to=<abhishek@xyz.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.92, delays=0.02/0.01/0/0.9, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 211874E026)
    Jan 21 20:48:08 corp postfix/lmtp[32473]: 211874E026: to=<abhishek@xyz.com>, relay=corp.xyz.com[192.168.1.16]:7025, delay=0.1, delays=0.01/0.01/0/0.09, dsn=2.1.5, status=sent (250 2.1.5 OK)

  8. #8
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    300
    Rep Power
    7

    Default

    So the 'from' domain and the 'to' domain are the same? Hmmm... Not sure how that would work then. Perhaps if you change the order of the transport maps line to put your custom transport map before the zimbra one:

    transport_maps = proxy:ldap:/opt/zimbra/conf/ldap-transport.cf, hash:/opt/zimbra/postfix/conf/transport
    to:
    transport_maps = hash:/opt/zimbra/postfix/conf/transport, proxy:ldap:/opt/zimbra/conf/ldap-transport.cf

    When we use this though its for routing domains which are NOT on our Zimbra server but I think this will work. Give it a try and let us know.
    ---
    Paul Chauvet
    State University of New York at New Paltz

  9. #9
    tejas is offline Junior Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    5

    Default

    Refer the below URL.

    Transport Table for external servers - Zimbra :: Wiki

    Hope, it will help.

    This is already discussed in the zimbra forums elsewhere.

    [SOLVED] specify relay for a certain domain

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Old Backup stay in TO_DELETE status and no clearing..
    By bartounet in forum Administrators
    Replies: 0
    Last Post: 10-05-2010, 07:40 AM
  2. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  3. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 09:21 AM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 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
  •