开发者

Rails 3 Postfix sending / receiving emails on same server using gmail

We 开发者_如何学Chave a rails 3 application running on vps using postfix for sending email. All emails for this domain name are hosted on Google Apps. All emails sent to domains other than the domain the app is hosted on are sending properly but the emails using the same domain return a bounceback saying the address is an unknown user because postfix thinks the emails are being sent locally.

Does anyone know the proper settings / configuration for postfix to enable the sending of emails to Google Apps?


Try changing the following line in /etc/postfix/main.cf (might look different on your system):

mydestination = yourdomain.com, localhost.yourdomain.com, localhost

to:

mydestination = localhost

or even:

mydestination =

And restart postfix: /etc/init.d/postfix restart

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜