exemption from MYNETS

Patrick Ben Koetter p at sys4.de
Wed Apr 17 18:38:38 CEST 2019


* Matus UHLAR - fantomas <uhlar at fantomas.sk>:
> Hello,
> 
> is it possible to define an IP that would be exempt from @mynetworks?

It should be. You need to prepend an exclamation mark to negate (return:
false) like this:

  given: @acl = qw( !192.168.1.12 172.16.3.3 !172.16.3.0/255.255.255.0
                    10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
                    !0.0.0.0/8 !:: 127.0.0.0/8 ::1 );
  matches rfc1918 private address space except host 192.168.1.12
  and net 172.16.3/24 (but host 172.16.3.3 within 172.16.3/24 still matches).
  In addition, the 'unspecified' (null, i.e. all zeros) IPv4 and IPv6
  addresses return false, and IPv4 and IPv6 loopback addresses match
  and return true.
  -- https://gitlab.com/amavis/amavis/raw/development/README_FILES/README.lookups




-- 
[*] sys4 AG
 
https://sys4.de, +49 (89) 30 90 46 64
Schleißheimer Straße 26/MG,80333 München
 
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief
Aufsichtsratsvorsitzender: Florian Kirstein
 


More information about the amavis-users mailing list