IP Whitelist RBL in Zimbra 7

      No Comments on IP Whitelist RBL in Zimbra 7

OS : CentOS 5.6 64bit
ZCS : Release 7.1.0_GA_3140.RHEL5_64_20110329150833 CentOS5_64 FOSS edition.

[[email protected] conf]# su zimbra
[[email protected] conf]$ vi /opt/zimbra/conf/postfix_recipient_restrictions.cf

Add line 6 (highlight line) to postfix_recipient_restrictions.cf file

%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:
check_client_access hash:/opt/zimbra/conf/allow_rbl
%%contains VAR:zimbraMtaRestriction reject_invalid_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_sender%%
%%contains VAR:zimbraMtaRestriction reject_unknown_client%%
%%contains VAR:zimbraMtaRestriction reject_unknown_hostname%%
%%contains VAR:zimbraMtaRestriction reject_unknown_sender_domain%%
%%explode reject_rbl_client VAR:zimbraMtaRestrictionRBLs%%
%%contains VAR:zimbraMtaRestriction check_policy_service unix:private/policy%%

Create file allow_rbl in /opt/zimbra/conf

[[email protected] conf]$ vi /opt/zimbra/conf/allow_rbl

allow_rbl file inside :

114.57.xxx.xxx OK
202.155.xxx.xxx OK

Convert the allow_rbl file into maptype database file and restart MTA

[[email protected] conf]$ postmap /opt/zimbra/conf/allow_rbl
[[email protected] conf]$ zmmtactl restart
Rewriting configuration files...done.
postfix/postfix-script: refreshing the Postfix mail system
Stopping saslauthd...done.
Starting saslauthd...done.
[[email protected] conf]$

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.