/etc/postfix/
main.cf:
smtpd_recipient_restrictions =
...
check_sender_access hash:/etc/postfix/restricted_senders
...other stuff...
smtpd_restriction_classes = local_only
local_only =
check_recipient_access hash:/etc/postfix/local_domains, reject
/etc/postfix/restricted_senders:
foo@domain local_only
bar@domain local_only
/etc/postfix/local_domains:
this.domain OK
matches this.domain and subdomains
that.domain OK
matches that.domain and subdomains
Specify
dbm instead of
hash if your system uses
dbm files instead of
db files. To find out what map types Postfix supports, use the command
postconf -m.