The parameter you need to change is "smtpd_recipient_restrictions".
By default, it's set to
Quote:
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
|
You will want to change it to
Quote:
smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access hash:/etc/postfix/recipient_access, reject_unauth_destination
|
The easiest way to set this parameter is to run the following, as root, from a command prompt (the alternative is to set it manually in main.cf).
Code:
postconf -e "smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access hash:/etc/postfix/recipient_access, reject_unauth_destination"
Once that's done, you should create the file /etc/postfix/recipient_access, and it should contain the following:
Quote:
internaluser@whatever.com REJECT
|
Then, you need to run:
Code:
postmap /etc/postfix/recipient_access
Then reload postfix with
and you're all set.
Cheers