Wildcard Usage

The following sections describe using wildcards to match email addresses or hostnames in lists and maps.

Matching Email Addresses

  • example.com matches all addresses that end with a domain name of "example.com", such as "foo@example.com", "foo@foo.example.com".
  • @example.com matches all addresses with "example.com" as the exact domain part.
  • dev-**@ matches all addresses that start with the string "dev-".
  • foo@perl.* matches all addresses with "foo" as the local part and a two-level domain name with "perl" as the first level, like "foo@perl.com" and "foo@perl.org".
  • foo@perl.** matches all addresses with "foo" as the local part and at least a two-level domain name with "perl" as the first level, like "foo@perl.com" and "foo@perl.domain.com".

Matching Hostnames and IP Addresses

Note: Some lists, such as IP Blocking Exceptions and Trusted Relays, only accept IP addresses, not domain names.
  • 127.0.0.1 matches the exact IP address.
  • 10.10.10.0/24 matches any address in the 10.10.10.0 network.
  • example.com matches any hostname in the example.com domain as well as "example.com" itself. Does not match "notexample.com" or "example.com.org".
  • **.example.com matches any hostname in the example.com domain but not "example.com" itself.
  • .example.com matches any hostname in the example.com domain but not "example.com" itself.
  • *.example.com matches hosts like "foo.example.com", but not multilevel names like "foo.bar.example.com".
  • @example.com only matches the host "example.com" and not any subdomains.

To add items to lists, see "Editing Lists". To add items to address maps, see "Editing Maps".