I did some research on the net and I was able to solve my problem. I found out that postfix bypass /etc/hosts file because it did not find A or MX record for mail delivery.
I don't know much about postfix but here is what I did after refering to sites listed below.
Created a file called mytransport under /opt/zimbra/conf/
Type:
Code:
exchangedomain.org smtp:[192.168.0.118]
In command line as zimbra user typed:
1.
Code:
zmlocalconfig -e postfix_transport_maps=ldap:/opt/zimbra/conf/ldap-transport.cf,hash:/opt/zimbra/conf/mytransport
2.
Code:
postmap /opt/zimbra/conf/mytransport
3.
Code:
zmmtactl stop; start
References:
postfix transport maps Postfix Frequently Asked Questions The Answer Guy 31: 'sendmail' requires DNS ... won't use /etc/hosts
Thank you Bill and Phoenix for all your help. I hope this will help someone in the future.