Jump to content

Triburb-per-domain-relay-zimbra: Difference between revisions

From TetraWiki
Amit (talk | contribs)
Created page with " == Relay One domain mail in zimbra == '''Objective''' Due to blacklisting of the server IP need to relay alokind.com from another server provided by client. '''Process to ..."
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[category:Triburg]]
[[category:Zimbra]]


== Relay One domain mail in zimbra ==
== Relay One domain mail in zimbra ==
Line 7: Line 11:


'''Process to Follow'''
'''Process to Follow'''
  zmlocalconfig  |grep -i postfix_transport_maps
  zmlocalconfig  |grep -i postfix_transport_maps
  This configuration decide how mails should deliver.
  This configuration decide how mails should deliver.
 
vi /opt/zimbra/postfix/conf/transportfile
vi /opt/zimbra/postfix/conf/transportfile
 
  Create a transport file to provide the Entry of the domain to relay from the server.
  Create a transport file to provide the Entry of the domain to relay from the server.
  ENTRY SHOULD LIKE: gmx.com :[smtp.server.net.id]
  ENTRY SHOULD LIKE: gmx.com :[smtp.server.net.id]
 
#for relaying with the specific port for any domain
richaglobal.com :[mail.tetrain.com]:587
  ll /opt/zimbra/postfix/conf/transportfile
  ll /opt/zimbra/postfix/conf/transportfile
Check the permission of the file it must be zimbra.zimbra


Check the permission of the file it must be zimbra.zimbra
'''For Zimbra Version less than 8.x , below is the process'''


  postmap /opt/zimbra/postfix/conf/transportfile
  postmap /opt/zimbra/postfix/conf/transportfile
  zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
  zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
  Make hash for the ldap-transport.cf by transport file
  Make hash for the ldap-transport.cf by transport file
  less /opt/zimbra/postfix/conf/main.cf
  less /opt/zimbra/postfix/conf/main.cf


  zmmtactl restart
  zmmtactl restart


'''''Source'''''[[http://wiki.zimbra.com/index.php?title=Transport_Table_for_external_servers]]
'''For Zimbra Version  8.x , below is the process'''


'''''Source'''''[[http://wiki.zimbra.com/index.php?title=Transport_Table_for_external_servers]]
zmprov ms mail.example.com zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
 
or
 
zmprov ModifyConfig  zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
 
Reference - https://community.zimbra.com/collaboration/f/1886/p/1137087/1581157#1581157

Latest revision as of 06:15, 27 November 2015



Relay One domain mail in zimbra[edit]

Objective Due to blacklisting of the server IP need to relay alokind.com from another server provided by client.

Process to Follow

zmlocalconfig   |grep -i postfix_transport_maps
This configuration decide how mails should deliver.

vi /opt/zimbra/postfix/conf/transportfile

Create a transport file to provide the Entry of the domain to relay from the server.
ENTRY SHOULD LIKE: gmx.com :[smtp.server.net.id]
#for relaying with the specific port for any domain
richaglobal.com :[mail.tetrain.com]:587
ll /opt/zimbra/postfix/conf/transportfile
Check the permission of the file it must be zimbra.zimbra

For Zimbra Version less than 8.x , below is the process

postmap /opt/zimbra/postfix/conf/transportfile
zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/postfix/conf/transportfile proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"
Make hash for the ldap-transport.cf by transport file
less /opt/zimbra/postfix/conf/main.cf
zmmtactl restart

Source[[1]]


For Zimbra Version 8.x , below is the process

zmprov ms mail.example.com zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

or

zmprov ModifyConfig  zimbraMtaTransportMaps "lmdb:/opt/zimbra/postfix/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

Reference - https://community.zimbra.com/collaboration/f/1886/p/1137087/1581157#1581157