We want to config the server can only send emails, can NOT receive emails from local or remote. Because our domain is pointed to this server, But our email server is on Google Enterprise. So before If we want to send email from the server, It first looks up locally, and send to local directly, So emails never get reach to Google.
I tried: http://www.postfix.org/faq.html#null_client But I seems not work.
After check out the postfix log:
Even you set
local_transport = error:local delivery is disabled
But when you have aliasmaps, aliasdatabase, virtualaliasmaps. Postfix will still try to find the alias name in local. So it fails when it can not find it.
main.cf
master.cf
And Another thing, make sure your hostname is NOT your domain. because It will check hostname first and mx record? I guess.
