This is what I did to fix this:
I used info in artturi's post 37801
Edited /opt/zimbra/conf/zmmta.cf
Code:
POSTCONF virtual_alias_maps LOCAL postfix_virtual_alias_maps
This will then give a final result in postfix/conf/main.cf :
Code:
virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf ,
hash:/etc/ldap.aliases Now I edited the /opt/zimbra/postfix/conf/virtual and added at the bottom of that file:
Code:
user@domain1.com user2@domain2.com
Now I run the following command to apply the mail forward and restarted postfix:
Code:
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/virtual
Then I did a test by sending email from my gmail account to user@domain1.com and it was delivered to user2@domain2.com.
Other way of doing this is of course to set up a distribution list in the Zimbra GUI but I guess that gets very quickly very loaded and using my way I can comment all the setup and get better overview of things.
My only concern is if this will all be defaulted again in next upgrade? Is there some other better way to do this? Pls. comment.