ACCESS(5) File Formats Manual ACCESS(5) (NAME) access - SMTP Postfix (SYNOPSIS) postmap /etc/postfix/access postmap -q "string" /etc/postfix/access postmap -q - /etc/postfix/access (DESCRIPTION) SMTP : (envelope) SMTP Postfix . header_checks(5) body_checks(5) . access(5) postmap(1) . <> <> . default_database_type . lmdb: cdb: hash: dbm: ( ) . NIS LDAP SQL . Postfix . (regular-expression map) TCP . << >> << TCP>> . / (CASE FOLDING) (case folded). Postfix 2.3 regexp: pcre: . (TABLE FORMAT) postmap(1) : pattern action pattern action . <<#>> . . . (EMAIL ADDRESS PATTERNS IN INDEXED TABLES) DB DBM NIS LDAP SQL : user@domain . domain.tld domain.tld . domain.tld smtpd_access_maps parent_domain_matches_subdomains Postfix . .domain.tld domain.tld smtpd_access_maps parent_domain_matches_subdomains Postfix . user@ . : (null sender) . Postfix <> . smtpd_null_access_lookup_key main.cf . (EMAIL ADDRESS EXTENSION) (localpart) ( user+foo@domain) : user+foo@domain user@domain domain user+foo@ user@. / (HOST NAME/ADDRESS PATTERNS IN INDEXED TABLES) DB DBM NIS LDAP SQL : domain.tld domain.tld . domain.tld smtpd_access_maps parent_domain_matches_subdomains Postfix . .domain.tld domain.tld smtpd_access_maps parent_domain_matches_subdomains Postfix . net.work.addr.ess net.work.addr net.work net IPv4 . (octet) <<.>> . <<[]>> <> . <<.octet>> IPv4 . : cidr network/netmask . cidr_table(5) . net:work:addr:ess net:work:addr net:work net IPv6 . <<:>> <<::>> . <<[]>> <> . <<:octetpair>> IPv6 . : cidr network/netmask . cidr_table(5) . IPv6 Postfix 2.2 . (ACCEPT ACTIONS) OK . all-numerical OK . pop-before-smtp . << >> . (REJECT ACTIONS) 2.3 Postfix RFC 3463 . text Postfix <<5.7.1>> <<4.7.1>> (defer) . << >> . 4NN text 5NN text . 4NN << >> 5NN << >> . SMTP : 421 text (Postfix 2.3 ) 521 text (Postfix 2.6 ) SMTP . SMTP SMTP . : <<521>> . << 521 >> SMTP . REJECT optional text... . <<$access_map_reject_code optional text...>> . DEFER optional text... ( ) . <<$access_map_defer_code optional text...>> . Postfix 2.6 . DEFER_IF_REJECT optional text... REJECT . <<$access_map_defer_code 4.7.1 optional text...>> . Postfix 2.6 SMTP 450 . Postfix 2.1 . DEFER_IF_PERMIT optional text... PERMIT . <<$access_map_defer_code 4.7.1 optional text...>> . Postfix 2.6 SMTP 450 . Postfix 2.1 . << >> . (OTHER ACTIONS) restriction... () UCE (permit reject reject_unauth_destination ). BCC user@domain . BCC SMTP MAIL Postfix 3.0 . Postfix 3.0 . DISCARD optional text... . (log) . : . transport(5) discard(8) . Postfix 2.0 . DUNNO . Postfix ( ) . Postfix 2.0 . FILTER transport:destination () . transport (mail delivery agent) master.cf destination (next-hop) . FILTER_README . : $number transport destination . : content_filter main.cf . FILTER . : FILTER . transport destination destination (Postfix 2.7 ) transport:destination Postfix (Postfix 2.6 ). transport_maps sender_dependent_default_transport_maps . Postfix 2.0 . HOLD optional text... hold . . (hold) postcat(1) postsuper(1) . : <> $maximal_queue_lifetime $bounce_queue_lifetime . <> . : . Postfix 2.0 . PREPEND headername: headervalue . PREPEND . : smtpd_end_of_data_restrictions . Postfix 2.1 . REDIRECT user@domain () . REDIRECT . : FILTER . : REDIRECT ( ) canonical masquerade bcc virtual . Postfix 2.1 . INFO optional text... helo . Postfix 3.0 . WARN optional text... helo . Postfix 2.1 . (ENHANCED STATUS CODES) 2.3 Postfix RFC 3463 . . client helo sender recipient Postfix MAIL FROM RCPT TO SMTP . o REJECT SMTP DSN ( 4.1.1-4.1.6) DSN . o REJECT ( HELO / ) SMTP DSN DSN ( 4.0.0) . (REGULAR EXPRESSION TABLES) . regexp_table(5) pcre_table(5) . . IP . user@domain user@ domain user+foo user foo . . $1 $2 . TCP (TCP-BASED TABLES) TCP . / TCP tcp_table(5) . 2.4 Postfix ( ) . . IP . user@domain user@ domain user+foo user foo . . (EXAMPLES) . 1.2.3.4 1.2.3.0/24 . hash dbm . <> Postfix . /etc/postfix/main.cf: smtpd_client_restrictions = check_client_access hash:/etc/postfix/access /etc/postfix/access: 1.2.3 REJECT 1.2.3.4 OK <> . (BUGS) (quoting conventions) . (SEE ALSO) postmap(1) Postfix smtpd(8) SMTP postconf(5) transport(5) transport:nexthop (README FILES) <> <> . SMTPD_ACCESS_README SMTP DATABASE_README Postfix (LICENSE) Secure Mailer . (AUTHORS) 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 ACCESS(5)