Monday, May 9, 2016

Separate Destination domain and Relay Zimbra

** We can relay full server from one server to another server

vi /etc/postfix/
relayhost = []:587
relayhost = []:25

** We can separate a destination domains mail via another SMTP server.

** check tranport_maps are in
vi /etc/postfix/

 transport_maps = hash:/etc/postfix/transport

** Login Mail server  and  vi /etc/postfix/transport             :[]

*** Loging to smtpgw( server: and allow IP of mail server in MyNetworks

** if postfix then goto vi /etc/postfix/ and add server ip to mynetworks
mynetworks =,

** if Zimbra then,
root@mail# su - zimbra
[zimbra@smtpgw2 ~]$ postconf mynetworks

***Outpur will be like bellow...........
mynetworks = [::1]/128 [fe80::]/64

*** Add your mx server IP by bellow command
[zimbra@smtpgw2 ~]$  zmprov ms zimbraMtaMyNetworks ' [::1]/128 [fe80::]/64'

[zimbra@smtpgw2 ~]$  postfix reload

No comments:

Post a Comment