Ruben Safir:
> WHat are some suggsted methods of whitelisting with postfix.
>
> I am throwing in the flag and want to prevent email to me without my
> specific permision, and to bounce the rest.
This does exactly what you ask, but you probably need more.
/etc/postfix/main.cf:
smtp_sender_restrictions =
check_sender_whitelist hash:/etc/postfix/sender_access reject
/etc/postfix/sender_whitelist:
# Allow notifications of undeliverable mail.
# http://www.postfix.org/postconf.5.html#smtpd_null_access_lookup_key.
<> permit
# Whitelisted users
[email protected] permit
[email protected] permit
(use "postmap /etc/postfix/sender_whitelist" after changing the whitelist).
What you probably need is a way to automatically whitelist an address
after you send mail to it; such a feature is known as "penpals" and
is built into, for example, amavisd-new.
Penpals support is not built into Postfix. It may be done with a
script (Perl, Python) that tails the maillog file and that adds a
new recipient to the sender whitelist.
Wietse