| cidr_table | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
| NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
| SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
postmap -q "string" cidr:/etc/postfix/filename postmap -q - cidr:/etc/postfix/filename <inputfile
| DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
To find out what types of lookup tables your Postfix system supports use the "postconf -m" command.
To test lookup tables, use the "postmap -q" command as described in the SYNOPSIS above.
| TABLE FORMAT | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
The general form of a Postfix CIDR table is:
An IPv4 network address is a sequence of four decimal octets separated by ".", and an IPv6 network address is a sequence of three to eight hexadecimal octet pairs separated by ":".
Before comparisons are made, lookup keys and table entries are converted from string to binary. Therefore table entries will be matched regardless of redundant zero characters.
Note: address information may be enclosed inside "[]" but this form is not required.
IPv6 support is available in Postfix 2.2 and later.
| TABLE SEARCH ORDER | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Patterns are applied in the order as specified in the table, until a pattern is found that matches the search string.
| EXAMPLE SMTPD ACCESS MAP | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
/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
| SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
postmap(1), Postfix lookup table manager regexp_table(5), format of regular expression tables pcre_table(5), format of PCRE tables
| README FILES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Use "postconf readme_directory" or "postconf html_directory" to locate this information.
DATABASE_README, Postfix lookup table overview
| HISTORY | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
CIDR table support was introduced with Postfix version 2.1.
| AUTHOR(S) | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
The CIDR table lookup code was originally written by: 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
| Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |