Transport Table for external servers: Difference between revisions

No edit summary
 
No edit summary
Line 1: Line 1:
Configuring transport tables to relay all emails to an different mail server. In this example I am forwarding all emails for otherdomain.com to smtp.otherdomain.com . You can add many transport maps as per your need. All commands should be run as Zimbra.
To configure transport tables to relay all emails to an different mail server. In this example I am forwarding all emails for otherdomain.com to smtp.otherdomain.com All commands should be run as Zimbra.


  ''$ zmlocalconfig  |grep -i postfix_transport_maps''
  ''$ zmlocalconfig  |grep -i postfix_transport_maps''
Line 5: Line 5:
This will show you current transport maps file configuration.
This will show you current transport maps file configuration.


Create your transport file (owner/group-owner should be zimbra). You can also add multiple transport maps.
Create your transport file (owner/group-owner should be zimbra) with values like:


  ''vi /opt/zimbra/postfix/conf/transportfile''
  ''vi /opt/zimbra/postfix/conf/yourtransportfile''
  ''otherdomain.com    :[smtp.otherdomain.com]''
  ''otherdomain.com    :[smtp.otherdomain.com]''


Define new transport file instead of the default one.
Define new transport file instead of the default one.
Line 16: Line 17:
Convert the transport file into maptype database file.
Convert the transport file into maptype database file.


  ''$ postmap /opt/zimbra/postfix/conf/transportfile''
  ''$ postmap /opt/zimbra/postfix/conf/yourtransportfile''


Restart Zimbra
Restart Zimbra

Revision as of 12:38, 13 August 2008

To configure transport tables to relay all emails to an different mail server. In this example I am forwarding all emails for otherdomain.com to smtp.otherdomain.com All commands should be run as Zimbra.

$ zmlocalconfig   |grep -i postfix_transport_maps

This will show you current transport maps file configuration.

Create your transport file (owner/group-owner should be zimbra) with values like:

vi /opt/zimbra/postfix/conf/yourtransportfile
otherdomain.com     :[smtp.otherdomain.com]


Define new transport file instead of the default one.

$ zmlocalconfig -e postfix_transport_maps=hash:/opt/zimbra/postfix/conf/yourtransportfile,ldap:/opt/zimbra/conf/ldap-transport.cf

Convert the transport file into maptype database file.

$ postmap /opt/zimbra/postfix/conf/yourtransportfile

Restart Zimbra

zmcontrol stop
zmcontrol start

This will sends all mail for otherdomain.com and its subdomains to host smtp.otherdomain.com However you'll need to be careful at zimbra upgrades. The modification will be overwritten by the upgrade. If you still not able to set the correct transport tables, contact Zimbra Support.

Jump to: navigation, search