Chinaunix首页 | 论坛 | 博客
  • 博客访问: 446252
  • 博文数量: 104
  • 博客积分: 3016
  • 博客等级: 中校
  • 技术积分: 1992
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-24 11:37
文章分类

全部博文(104)

文章存档

2009年(44)

2008年(60)

我的朋友

分类:

2009-04-15 15:16:42

This is the Postfix program at host

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to

If you do so, please include this problem report. You can
delete your own text from the message returned below.

            The Postfix program

: host gmail-smtp-in.l.google.com[209.85.143.114] said:
    550-5.7.1 [220.122.76.91] The IP you're using to send mail is not
    authorized to 550-5.7.1 send email directly to our servers. Please use the
    SMTP relay at your 550-5.7.1 service provider instead. Learn more at
    550 5.7.1 .com/support/bin/answer.py?answer=10336
    a14si240039tia.7 (in reply to end of DATA command)

Reporting-MTA: dns;
Arrival-Date: Tue, 14 Apr 2009 13:03:51 +0800 (CST)

Final-Recipient: rfc822;lam5566@gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host gmail-smtp-in.l.google.com[209.85.143.114]
    said: 550-5.7.1 [220.122.76.91] The IP you're using to send mail is not
    authorized to 550-5.7.1 send email directly to our servers. Please use the
    SMTP relay at your 550-5.7.1 service provider instead. Learn more at
    550 5.7.1 .com/support/bin/answer.py?answer=10336
    a14si240039tia.7 (in reply to end of DATA command)
    
昨天用公司的邮件服务器发信到Gmail,被退信,退信原因如上所述,网上搜索了一下,发现这篇文章
这是解决办法一:
轉換到 Google Apps, localhost信寄不出去的解法

自從之前轉換到Google Apps後, localhost的信就寄不出去,昨天花點時間解決掉,解法很簡單,果然是自己耍豬頭 XD

剛開始查就是看 Mail Log, 和被退的信, 發現被退的信大概寫如下:

    The IP you're using to send email is not authorized
    550-5.7.1 to send email directly to our servers.
    Please use 550 5.7.1 the SMTP relay at your service provider instead.

然後不假思索的就拿這些 keyword 去找, 然後找到的意思是, 查看看自己的 IP 是不是進了 Spam List, 然後算算看進 spam list 有沒有很多... (原來有這麼多家在做 spam list),再來去請他們解開 spam 清單, 查 spam list 可由下兩個網站查(基本上查到的地方都一樣):

    * DNS Stuff Tools
    * 郵件系統常用查詢工具

然後試一試, 還是沒有什麼用處, 一樣寄不出去, 後來想想, 查查是不是被自己給擋掉了, 於是把 spam filter都先拿掉, 還是不行~

再直接 telnet localhost 25 port, 來寄信試試:

    helo USERNAME
    mail from:USERNAME@DOMAIN_NAME
    rcpt to:GMAIL_USERNAME@gmail.com;
    data
    subject:test
    test
    .
    quit

結果 localhost 寄信出去很正常, 於是就知道自己錯在哪邊了. XD

解法:

   1. vim /etc/postfix/main.cf
   2. 將 mydestination = DOMAIN_NAME, localhost 改成 mydestination = localhost, DOMAIN_NAME 即可.

DOMAIN_NAME 請換成你自己的 DOMAIN_NAME, 或者直接拿掉即可, 主要是透過 localhost 發信, 所以 localhost 要擺前面.

主要是因為 Google Apps 設定轉換時, 已經把 DOMAIN_NAME的 MX 指到 gmail去了,而那行設定信就往 gmail smtp跑, 沒開放 open relay,當然就寄不出去囉


解决办法二:把Google Apps上的邮件服务删除掉,等一天时间,等Google把相关数据删除掉就可以了,如果不行,就把在Google Apps上所有应用删除掉。

    大概两个星期前把公司的邮件服务迁移到Google Apps上,Gmail的smtp是要求SSL的,公司某个应用不支持SSL,所以最后只能把邮件服务迁移回来,发信一直没什么问题,直到昨天,想用公司帐号发一份资料到自己的Gmail上才看到这个退信,幸好,把Google Apps上的所有服务都删除后,今天早上回来一测试,OK了。

参考文章:

阅读(5955) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~