Configuring Whitelist/Blacklist on ZIMBRA 8.5/8.6
ZIMBRA 8.5 and later changed the configuration for blacklists and whitelists. Follow these steps to add whitelist/blacklist entries.
Whitelist
-
Create /opt/zimbra/conf/postfix_rbl_override. Add the mail server IP address or hostname you want to whitelist, followed by “OK”, as in this example.
Reading note: the Thai word in the preserved example means “or”.
1.2.3.4 OK หรือ mail.ezymailhosting.com OK -
Run postmap to create the lmdb:
postmap /opt/zimbra/conf/postfix_rbl_override -
Apply the configuration to ZIMBRA with:
zmprov mcf +zimbraMtaRestriction 'check_client_access lmdb:/opt/zimbra/conf/postfix_rbl_override'
Blacklist
-
Create /opt/zimbra/conf/postfix_blacklist and add the mail server IP address or hostname you want to add to the whitelist, followed by “REJECT”, as in this example.
Reading note: the Thai word in the preserved example means “or”.
1.2.3.4 REJECT หรือ mail.domain.com REJECT -
Run postmap to create the lmdb: postmap /opt/zimbra/conf/postfix_blacklist
-
Apply the configuration to ZIMBRA with: zmprov mcf +zimbraMtaRestriction ‘check_client_access lmdb:/opt/zimbra/conf/postfix_blacklist’