Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-2011, 03:48 AM
Advanced Member
 
Posts: 193
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.
__________________
Abhiz
http://abhishekamralkar.blogspot.com
Reply With Quote
  #2 (permalink)  
Old 01-20-2011, 08:32 AM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #3 (permalink)  
Old 01-20-2011, 08:56 PM
Advanced Member
 
Posts: 193
Default

I have tried this on my server but its not working for me is there any other way ?
__________________
Abhiz
http://abhishekamralkar.blogspot.com
Reply With Quote
  #4 (permalink)  
Old 01-20-2011, 11:31 PM
Zimbra Consultant & Moderator
 
Posts: 20,315
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
Reply With Quote
  #5 (permalink)  
Old 01-20-2011, 11:54 PM
Advanced Member
 
Posts: 193
Default

I am not getting any error thats why I have not posted any error.
__________________
Abhiz
http://abhishekamralkar.blogspot.com
Reply With Quote
  #6 (permalink)  
Old 01-21-2011, 06:23 AM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #7 (permalink)  
Old 01-21-2011, 07:19 AM
Advanced Member
 
Posts: 193
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)
__________________
Abhiz
http://abhishekamralkar.blogspot.com
Reply With Quote
  #8 (permalink)  
Old 01-21-2011, 07:53 AM
Advanced Member
 
Posts: 178
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
Reply With Quote
  #9 (permalink)  
Old 03-20-2011, 11:17 PM
New Member
 
Posts: 3
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.