REGEXP_TABLE(5) File Formats Manual REGEXP_TABLE(5) (NAME) regexp_table - Postfix (SYNOPSIS) postmap -q "string" regexp:/etc/postfix/filename postmap -q - regexp:/etc/postfix/filename (DESCRIPTION) Postfix . lmdb: cdb: hash: dbm: . POSIX . . . Postfix "postconf -m" . "postmap -q" . "postmap -hmq - header_checks(5) "postmap -bmq - body_checks(5) ( Postfix 2.6 ) . (COMPATIBILITY) 2.2 Postfix "postmap -fq" . . (TABLE FORMAT) Postfix : /pattern/flags result pattern result . !/pattern/flags result pattern result . if /pattern/flags endif /pattern/ if endif . if..endif . : if..endif . Postfix 2.1 . if !/pattern/flags endif /pattern/ if endif . if..endif . : if..endif . Postfix 2.1 . `#' . . . POSIX . re_format(7) 4.4BSD regex(5) Solaris regex(7) Linux . . - ( ). . . : i (: ) . . m (: ) . ^ $ . x (: ) . . (TABLE SEARCH ORDER) . . IP . user@domain user domain user+foo user foo . (TEXT SUBSTITUTION) ( "()" ) $1 $2 $ $$ . ${n} $(n) . : ( ! ) . (INLINE SPECIFICATION) ( Postfix 3.7 ). : main.cf: parameter = .. regexp:{ { rule-1 }, { rule-2 } .. } .. master.cf: .. -o { parameter = .. regexp:{ { rule-1 }, { rule-2 } .. } .. } .. Postfix $parametername '{' '}' rule : in-memory file: rule-1 rule-2 .. Postfix /etc/postfix . (INLINE SPECIFICATION CAVEATS) o $parametername :regexp . '.' $parametername . :pcre \Q$parametername\E . o $ $$ Postfix $name . "postconf -x" : o "parametername = value" main.cf :regexp "postconf -x parametername" . "undefined parameter" :regexp Postfix . o "-o { parametername = value }" master.cf :regexp "postconf -Px '*/*/parametername' " . "undefined parameter" :regexp Postfix . SMTPD (EXAMPLE SMTPD ACCESS MAP) # . # . /[%!@].*[%!@]/ 550 Sender-specified routing rejected # postmaster # . /^postmaster@/ OK # majordomo if !/^owner-/ /^(.*)-outgoing@(.*)$/ 550 Use ${1}@${2} instead endif (EXAMPLE HEADER FILTER MAP) # . /^Subject: make money fast/ REJECT /^To: friend@public\.com/ REJECT (EXAMPLE BODY FILTER MAP) # base 64 CPU . ~^[[:alnum:]+/]{60,}$~ OK # . (SEE ALSO) postmap(1), Postfix lookup table manager pcre_table(5), format of PCRE tables cidr_table(5), format of CIDR tables README (README FILES) "postconf readme_directory" "postconf html_directory" . DATABASE_README, Postfix lookup table overview (AUTHOR(S)) regexp : LaMont Jones lamont@hp.com . PCRE : Andrew McNamara andrewm@connect.com.au connect.com.au Pty. Ltd. Level 3, 213 Miller St North Sydney, NSW, Australia . : 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 REGEXP_TABLE(5)