diff -r 43d642154330 -r 7a7cc794483b postfix/postfix.txt --- a/postfix/postfix.txt Wed Sep 12 19:10:15 2012 +0200 +++ b/postfix/postfix.txt Thu Sep 13 20:05:49 2012 +0200 @@ -25,6 +25,8 @@ T_CLIENTS = clients T_SENDERS = senders T_CLICRT = clicrt +T_RECIPIENT = recipient +T_HELO = helo # dependency tracking TIMESTAMP = .up-to-date @@ -43,7 +45,9 @@ $(T_ALIASES).db \ $(T_CLIENTS).db \ $(T_SENDERS).db \ - $(T_CLICRT).db + $(T_CLICRT).db \ + $(T_RECIPIENT).db \ + $(T_HELO).db # default target all: $(TABLES) $(TIMESTAMP) @@ -79,6 +83,10 @@ $(POSTMAP) hash:$(T_SENDERS) $(T_CLICRT).db: $(T_CLICRT) $(MAKEFILE) $(POSTMAP) hash:$(T_CLICRT) +$(T_RECIPIENT).db: $(T_RECIPIENT) $(MAKEFILE) + $(POSTMAP) hash:$(T_RECIPIENT) +$(T_HELO).db: $(T_HELO) $(MAKEFILE) + $(POSTMAP) hash:$(T_HELO) # cleanup target clean: @@ -440,3 +448,59 @@ # | 18:81:F5:22:18:BA:EB:15:FF:40:30:00:EA:C0:B4:2E:EC:AE:86:8E user2 + +## +## @l_prefix@/etc/postfix/recipient -- control for relaying recipients +## +## Searched for RCPT TO address, domain, parent domains, or localpart@ +## and rejects the request if the result is REJECT or "[45]XX text" or +## permits the request if the result is OK or RELAY or all-numerical. +## + +# Syntax (see access(5)): +# | user@domain action +# | domain action +# | user@ action +# | net.work.addr.ess action +# | net.work.addr action +# | net.work action +# | net action +# where "action" is one of: +# "[45]NN text", "REJECT", "OK", "restriction..." +# +# Examples: +# | mail.example.com OK +# | example.com REJECT +# | 192.168.0.1 OK +# | 192.168 REJECT +# | postmaster@ OK + + + +## +## @l_prefix@/etc/postfix/helo -- control for relaying helo transmissions +## +## Searched for HELO or EHLO hostname or parent domains and rejects the +## request if the result is REJECT or "[45]XX text" or permits the request +## if the result is OK or RELAY or all-numerical. +## + +# Syntax (see access(5)): +# | user@domain action +# | domain action +# | user@ action +# | net.work.addr.ess action +# | net.work.addr action +# | net.work action +# | net action +# where "action" is one of: +# "[45]NN text", "REJECT", "OK", "restriction..." +# +# Examples: +# | mail.example.com OK +# | example.com REJECT +# | 192.168.0.1 OK +# | 192.168 REJECT +# | postmaster@ OK + +