We have postfix on our development server, and I'd like it to be able to only send mail to our domain, not to other domains, preventing accidentily mailing outside users from receiving mail from our development server. I searched through the docs, tried several things but it's still sending to all domains...
|
feedback
|
|
You can easily restrict the recipients with standard smtpd_recipient_restrictions or more precisely check_recipient_access. Just create an access(5) table with the following content (example.com being the domain you want to allow to send mail to):
Don't forget to hash the file after editing it with postmap(1). Now put the following recipient restrictions in your main.cf and reload Postfix:
| |||
feedback
|
|
Have you tried header_checks(5)? | |||
|
feedback
|