CIDR_TABLE(5) File Formats Manual CIDR_TABLE(5) (NAME) cidr_table - CIDR Postfix (SYNOPSIS) postmap -q "string" cidr:/etc/postfix/filename postmap -q - cidr:/etc/postfix/filename (DESCRIPTION) Postfix . lmdb: cdb: hash: dbm: . CIDR ( ) . . . Postfix "postconf -m" . "postmap -q" . (TABLE FORMAT) CIDR Postfix : pattern result pattern result . network/prefix network_address ( ). !pattern result pattern result . network/prefix network_address ( ). Postfix 3.2 . if pattern endif pattern if endif . network/prefix network_address ( ). if..endif . : if..endif . Postfix 3.2 . if !pattern endif pattern if endif . network/prefix network_address ( ). if..endif . : if..endif . Postfix 3.2 . '#' . . . (TABLE SEARCH ORDER) . (ADDRESS PATTERN SYNTAX) CIDR Postfix . network_address network_address/prefix_length prefix_length network_address ( network_address ). IPv4 <<.>> IPv6 <<:>> <<::>> . 0.0.0.0/0 IPv4 ::/0 IPv6 . IPv6 Postfix 2.2 . . IPv6 ( IPv4 ). : <<[]>> . (INLINE SPECIFICATION) (Postfix 3.7 ). : main.cf: parameter = .. cidr:{ { rule-1 }, { rule-2 } .. } .. master.cf: .. -o { parameter = .. cidr:{ { rule-1 }, { rule-2 } .. } .. } .. $parametername '{' '}' rule : in-memory file: rule-1 rule-2 .. /etc/postfix . : $ $$ Postfix $name . SMTPD (EXAMPLE SMTPD ACCESS MAP) /etc/postfix/main.cf: smtpd_client_restrictions = ... cidr:/etc/postfix/client.cidr ... /etc/postfix/client.cidr: # . # . 192.168.1.1 OK 192.168.0.0/16 REJECT 2001:db8::1 OK 2001:db8::/32 REJECT (SEE ALSO) postmap(1), Postfix lookup table manager regexp_table(5), format of regular expression tables pcre_table(5), format of PCRE tables (README FILES) "postconf readme_directory" "postconf html_directory" . DATABASE_README, Postfix lookup table overview (HISTORY) CIDR 2.1 Postfix . (AUTHORS) CIDR : Jozsef Kadlecsik 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 Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA CIDR_TABLE(5)