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 please register. 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, 03:57 PM
Intermediate Member
 
Posts: 22
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, 04:57 PM
Intermediate Member
 
Posts: 22
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, 10:57 AM
Senior Member
 
Posts: 57
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

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




 

Search Engine Optimization by vBSEO 3.1.0