1) create a file like this:
Code:
~$ cat /opt/zimbra/conf/postfix_transport
example@gmail.com error:Your Access error message
blockedDomain.com error:Your Access error message
2) Check zimbra local transport setting:
Code:
~$ zmlocalconfig postfix_transport_maps
postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
3) Then change the same zimbra local setting to add the new file:
Code:
~$ zmlocalconfig -e postfix_transport_maps="hash:/opt/zimbra/conf/postfix_transport,ldap:/opt/zimbra/conf/ldap-transport.cf"
...after 1 or 2 minutes, the zmconfigd component will reconfigure postfix for you
Just take a look at /var/log/zimbra.log to see the changing.
I tried to write this rule.. but I got some errors in zimbra.log
Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: transport_maps lookup failure
Jan 22 14:30:05 zmserver postfix/trivial-rewrite[10670]: warning: hash:/opt/zimbra/conf/postfix_transport is unavailable. open database /opt/zimbra/conf/postfix_transport.db: No such file or directory
how can I solve this ?
thanks
Andrea
Bookmarks