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

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment in the forums, please register and review our posting policy & tips. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2008, 02:57 PM
Intermediate Member
 
Posts: 20
Default right place for postfix transport map

I need to add a postfix transport entry, equivalent to sendmail's mailertable entries, such that for specific domains mail is routed through specific hosts instead of through what is found in an MX record look-up.

In other words, I need to implement what is described in this snippet from a standard /etc/postfix/transport file:

# When no transport is specified, Postfix uses the transport
# that matches the address domain class (see DESCRIPTION
# above). The following sends all mail for example.com and
# its subdomains to host gateway.example.com:
#
# example.com :[gateway.example.com]
# .example.com :[gateway.example.com]
#
# In the above example, the [] suppress MX lookups. This
# prevents mail routing loops when your machine is primary
# MX host for example.com.

It looks like zmmta.cf might be the right place to do this such that it persists after restarts and upgrades, though I am not familiar with the syntax of that file at all.

Could someone explain how to do this?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-21-2008, 03:57 PM
Intermediate Member
 
Posts: 20
Default

I think I am on the right track, but I could use some help from someone who knows whether this would be retained during an upgrade:

edit
Code:
/opt/zimbra/postfix/conf/transport
run
Code:
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/transport
then
Code:
zmlocalconfig -e postfix_transport_maps=ldap:/opt/zimbra/conf/ldap-transport.cf,hash:/opt/zimbra/postfix/conf/transport
and restart zimbra (maybe zmmtactl reload is sufficient?)

Does this make sense?

Thanks.
Reply With Quote
  #3 (permalink)  
Old 03-27-2008, 09:57 AM
Senior Member
 
Posts: 56
Default

You don't have to restart all of Zimbra, just postfix. So zmmtactl should be sufficient.

I use a SMTP gateway to perform this function and route all mail entering or exiting Zimbra via this "smarthost".
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with smtp auth pheonix1t Installation 1 04-27-2009 06:56 AM
postfix transport maps pheonix1t Administrators 12 01-17-2009 10:42 PM
[SOLVED] Moved zimbra to new server - mail gets deferred goetzi Administrators 16 02-19-2008 01:08 PM
How to add a (additional) transport map? KaiW Administrators 1 11-20-2006 10:24 AM

Why Join?

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

Zimbrablog.com

sourceforge.net



 

Search Engine Optimization by vBSEO 3.1.0