Results 1 to 3 of 3

Thread: right place for postfix transport map

  1. #1
    oayfer is offline Active Member
    Join Date
    Mar 2008
    Posts
    31
    Rep Power
    7

    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.

  2. #2
    oayfer is offline Active Member
    Join Date
    Mar 2008
    Posts
    31
    Rep Power
    7

    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.

  3. #3
    dlbewley is offline Senior Member
    Join Date
    Sep 2006
    Location
    Davis, CA
    Posts
    64
    Rep Power
    8

    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".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. help with smtp auth
    By pheonix1t in forum Installation
    Replies: 1
    Last Post: 04-27-2009, 06:56 AM
  2. postfix transport maps
    By pheonix1t in forum Administrators
    Replies: 12
    Last Post: 01-17-2009, 11:42 PM
  3. Replies: 16
    Last Post: 02-19-2008, 02:08 PM
  4. How to add a (additional) transport map?
    By KaiW in forum Administrators
    Replies: 1
    Last Post: 11-20-2006, 11:24 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
  •