Hello,
we were using postfix as mail server directly delivering email from and to
company without issues. Now we had to change the ISP and the new one
forces us to use his relay as "The next-hop destination of non-local
mail" - this means I only added a directive "relayhost" to our setup.
With relayhost setup, when local user sends email to non-existant
domain, it just passes the email to relayhost even thou there is
smtpd_recipient_restrictions = reject_unknown_recipient_domain
When I disable the relayhost, then postfix rejects the emails to
non-existant domain correctly. From a postfix doc it seems the relayhost
"overrides non-local domains in recipient addresses." It looks to me, like
it overrides it and then reject_unknown_recipient_domain could never apply
anymore.
Do I understand this correctly? Is it possible to apply
reject_unknown_recipient_domain even when using realyhost?
Thanks
Adam Pribyl