ブログ

Tell postfix not to send email to local

Posted 2009年07月22日

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.

名前 *本名で入力してください
メールアドレス *入力必須。掲載はされません。
ウェブサイト

以上、The Plantがお届けしました。
The Plantでは JobletPiqShareなど、様々なウェブアプリケーションや
コンテンツマネジメントシステムもお届けしています。


RSSの登録はこちらから! RSS feed

by
Felix Sun
no picture
FelixはThe Plant中国支社代表兼テクノロジーリーダーです。クリエイティブでありながら、現実的な視野を持つ彼はThe Plantにとって欠かせない存在です。