CIDR_TABLESection: File Formats (5) |
CIDR_TABLESection: File Formats (5) |
postmap -q "string" cidr:/etc/postfix/filename postmap -q - cidr:/etc/postfix/filename <inputfile
To find out what types of lookup tables your Postfix system supports use the postconf -m command.
To test lookup tables, use the postmap command as described in the SYNOPSIS above.
The general form of a Postfix CIDR table is:
Patterns are applied in the order as specified in the table, until a pattern is found that matches the search string.
/etc/postfix/main.cf:
smtpd_client_restrictions = ... cidr:/etc/postfix/client.cidr ... /etc/postfix/client.cidr: # Rule order matters. Put more specific whitelist entries # before more general blacklist entries. 192.168.1.1 OK 192.168.0.0/16 REJECT
postmap(1), Postfix lookup table manager regexp_table(5) format of regular expression tables pcre_table(5) format of PCRE tables
Use "postconf readme_directory" or "postconf html_directory" to locate this information.
DATABASE_README, Postfix lookup table overview
The CIDR table lookup code was originally written by: Jozsef Kadlecsik kadlec@blackhole.kfki.hu KFKI Research Institute for Particle and Nuclear Physics POB. 49 1525 Budapest, Hungary Adopted and adapted by: Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA