Difference between revisions of "IP Address whitelisting"

m (Adding category Anti-spam)
Line 20: Line 20:
  
 
'''Enter following in /opt/zimbra/conf/amavisd.conf.in'''
 
'''Enter following in /opt/zimbra/conf/amavisd.conf.in'''
 +
 +
'''''NOTE: Make sure you use the amavisd.conf.in and NOT amavisd.conf'''''
  
 
  ''$inet_socket_port = [10024, 10026];                    # change from original setting
 
  ''$inet_socket_port = [10024, 10026];                    # change from original setting
Line 29: Line 31:
  
 
'''Postfix stop/start'''
 
'''Postfix stop/start'''
 +
 +
'''Amavisd stop/start'''
  
 
[[Category:Anti-spam]]
 
[[Category:Anti-spam]]

Revision as of 19:35, 25 March 2008

Amavisd - Whitelist an IP address.

This document describes how to disable anti-spam checking of all emails coming from an IP address, i.e. whitelisting an IP address instead of conventional domainname whitelisting.

Everything I am doing here as the user zimbra. I want to whitelist all the emails coming from 192.168.1.1

Enter following line at the top of the file, "/opt/zimbra/conf/postfix_recipient_restrictions.cf”

check_client_access hash:/opt/zimbra/postfix/conf/amavis_client_whitelist

Create a file "/opt/zimbra/postfix/conf/amavis_client_whitelist".

vi /opt/zimbra/postfix/conf/amavis_client_whitelist
192.168.1.1 FILTER smtp-amavis:[127.0.0.1]:10026

Converting "amavis_client_whitelist" an ASCII form file into maptype database file.

postmap /opt/zimbra/postfix/conf/amavis_client_whitelist

Enter following in /opt/zimbra/conf/amavisd.conf.in

NOTE: Make sure you use the amavisd.conf.in and NOT amavisd.conf

$inet_socket_port = [10024, 10026];                     # change from original setting
$interface_policy{'10026'} = 'CLIENTWHITELIST';              
$policy_bank{'CLIENTWHITELIST'} = {                          
  bypass_spam_checks_maps   => [1],                          
  final_spam_destiny   => D_PASS,                            
};

Postfix stop/start

Amavisd stop/start

Jump to: navigation, search