on_fail = postfix:ok;
}
+ips1 {
+ type = iplist;
+
+ file = nolock:1:data/test_ip_1;
+ file = nolock:1:data/test_ip_2;
+
+ soft_threshold = 1;
+ hard_threshold = 2;
+
+ on_hard_match = postfix:OK;
+ on_soft_match = postfix:OK;
+}
+
recipient_filter = match1;
--- /dev/null
+1.2.3.4
+2.3.4.5
+192.168.0.1
--- /dev/null
+1.2.3.4
+1.2.3.5
+1.2.4.6
hostnames2=fail
emails1=fail
emails2=fail
+ips1=hard_match
hostnames2=hard_match
emails1=soft_match
emails2=hard_match
+ips1=hard_match
sender=contact@exemple.com
recipient=contact@exemple.org
recipient_count=0
-client_address=1.2.3.4
+client_address=1.2.3.1934
client_name=kikoo.example.net
reverse_client_name=example.net
instance=123.456.7
hostnames2=hard_match
emails1=fail
emails2=fail
+ips1=error
sender=contact@exemple.com
recipient=contact@exemple.org
recipient_count=0
-client_address=1.2.3.4
+client_address=12::ef:ff
client_name=kikoo.example.net
reverse_client_name=example.net
instance=123.456.7
hostnames2=hard_match
emails1=fail
emails2=fail
+ips1=error
sender=contact@exemple.com
recipient=contact@exemple.org
recipient_count=0
-client_address=1.2.3.4
+client_address=8.9.10.11
client_name=kikoo.example.net
reverse_client_name=example.net
instance=123.456.7
encryption_cipher=DHE-RSA-AES256-sha
encryption_keysize=256
etrn_domain=
-stress=ys
+stress=yEs
match1=fail
-match2=fail
+match2=match
hostnames1=fail
hostnames2=hard_match
emails1=fail
emails2=fail
+ips1=fail
sender=contact@exemple.com
recipient=contact@exemple.org
recipient_count=0
-client_address=1.2.3.4
+client_address=2.3.4.5
client_name=kikoo.example.net
reverse_client_name=example.net
instance=123.456.7
hostnames2=hard_match
emails1=fail
emails2=fail
+ips1=soft_match
hostnames2=hard_match
emails1=fail
emails2=fail
+ips1=hard_match
sender=contact@exemple.com
recipient=contact@exemple.org
recipient_count=0
-client_address=1.2.3.4
+client_address=1.2.3.5
client_name=kikoo.example.net
-reverse_client_name=example.net
instance=123.456.7
sasl_method=plaineuh
sasl_username=you
match1=fail
match2=fail
hostnames1=fail
-hostnames2=hard_match
+hostnames2=fail
emails1=fail
emails2=fail
+ips1=soft_match