Brian Evans - Postfix List wrote:
[snip]
ndr_only = check_recipient_access hash:/etc/postfix/ndr_senders,reject
if you want to check the recipient, rename your map.
if you want to check the sender, rename your check.
$ cat /etc/postfix/ndr_senders
<> OK
This will never match a recipient.
$ cat /etc/postfix/receieve_only
[EMAIL PROTECTED] ndr_only
Log:
Aug 20 12:36:41 mx1 postfix/smtpd[7408]: NOQUEUE: reject: RCPT from
raven.securenet-server.net[207.45.186.82]: 554 5.7.1
<[EMAIL PROTECTED]>: Recipient address rejected: Access denied;
from=<> to=<[EMAIL PROTECTED]> proto=SMTP
helo=<raven.securenet-server.net>
[EMAIL PROTECTED] is not listed in ndr_senders, so it doesn't get an OK.