雷!Godaddy郵件政策

來黑一下Godaddy的郵件政策,本次遇到的Case是豪華版Wordpress託管建站,但是我看應該所有託管都面臨這個問題。

PHPMailer的解釋:

GoDaddy Popular US hosting provider GoDaddy imposes very strict (to the point of becoming almost useless) constraints on sending email. They block outbound SMTP to ports 25, 465 and 587 to all servers except their own. This problem is the subject of many frustrating questions on Stack Overflow. If you find your script works on your local machine, but not when you upload it to GoDaddy, this will be what’s happening to you. The solution is extremely poorly documented by GoDaddy: you must send through their servers, and also disable all security features, username and password (great, huh?!), giving you this config for PHPMailer:

翻譯起來就是說,美國熱門的託管服務商Godaddy對電子郵件發送非常嚴格(幾乎無法使用),它們封鎖了25、465、587(實際上還有2525、2465、2587),這個問題在Stack Overflow使許多人感到沮喪。如果你的程式在本機運作良好,但是上傳到Godaddy時,您將會遇到這些狀況。Godaddy對此提供的替代方案非常糟糕,你必須使用他們的Mail Server,此外還必須關閉所有安全性設定(非常糟糕),以下是在Godaddy使用PHPMailer的設定:

註:紅字是我自己加的,原文在這裡


補刀:

此外,Godaddy不會寄出aol、gmail、yahoo、hotmail、live、aim、msn的電子信件,因為這些域名啟用了SPF與DKIM;但是他們會偽造其他的域名寄出電子郵件,若是這些域名也有啟用SPF與DKIM的話,顯然你的信件不是被丟棄就是跑到垃圾郵件資料夾了。

延伸閱讀:

電子郵件之安全

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*
*