Chapter 3. Access Control Lists File

The file '/etc/avmailgate.acl' defines which hosts are considered local and for which we are allowed to relay emails.

Comments can be written anywhere in the ACL file (but in a quoted string), starting with a '#' character, up to the end of the line.Spaces or tabulations can be placed anywhere. Parameter names and parameter values may be quoted (') or double-quoted ("), and must be quoted when they contain spaces or tabulations or a double-quote or a quote. The quotes don't affect the values, or the type (numeric or alphanumeric) of the value. The parameter names and the parameter values that are domain names, are not case sensitive.

ACL lines may add either to the list of local host ('local:' parameter name) or to the list of hosts for which relaying is allowed ('relay:' parameter name). In either case, the parameter name can be followed of any number of space separated domain names or IP addresses/masks.

The IP addresses can be written either as a network address prefix, or with a '/' and a number of bits to match.

     192.168.0.0/16
     192.168.0.0
     192.168.0.
     192.168.0
     192.168.
     192.168
      
are all equivalent. When the '/' and number of bits is not present, the mask is either 8, 16, 24 bits if the 24, 16, or 8 low order bits are null, or else 32 bits for an exact IP address match.

Example:

        +----------------------+
        | /etc/avmailgate.conf |
        +----------------------+------------------------------+
        |# Access lists for AvMailGate                        |
        |                                                     |
        |# These hosts and/or domains are local.              |
        |local: localhost 127.0.0.1                           |
        |local: hbedv.com antivir.de                          |
        |                                                     |
        |# These hosts and networks are allowed to relay.     |
        |relay: 127.0.0.1/8  192.168.0.0/16                   |
        +-----------------------------------------------------+