Adam Pribyl: > On Sun, 17 Nov 2013, Wietse Venema wrote: > > > Adam Pribyl: > >> 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 > > > > Then, you have made some configation error. What error? > > Thanks for the answer, here is additional info: > > Then only change in the config is a > relayhost = aaaaa.aaa.aa > With relayhost set, the relay says:
This may sound like a surprise, but the problem is elsewhere and it only now reveals itself. What problem? Something with your use of reject_unknown_recipient_domain. > To report a problem see http://www.postfix.org/DEBUG_README.html#mail Wietse