天天看點

Linode 虛拟主機安裝 discourse 郵件沒有發送

discourse 在安裝的時候對電子的依賴性非常強。

linode VPS 安裝後 discourse 的電子郵件始終沒有辦法發送成功。

discourse 在安裝完成後,需要對電子郵件進行校驗。如果你不配置 SMTP 伺服器的話,你的 discourse 是沒有辦法完成安裝的。

Linode 虛拟主機安裝 discourse 郵件沒有發送

很多時候如果你測試的話,你可能會使用你的私人郵件伺服器進行 SMTP 測試,如果你是站長的話,你應該使用商業的電子郵件伺服器。商業電子郵件伺服器能夠提供更好的功能,能夠對發送的郵件進行跟蹤,更主要的是發送量和每秒鐘的發送速率能夠更高,能夠實作批量發送郵件。

如果你怕麻煩也怕綁定信用卡的話,你也可以使用 AWS 的 SES 郵件服務,其實功能都差不多,還更加便宜,但是 SES 對發送的電子郵件處理就不是那麼好了,你不知道你發送的郵件有沒有被打開。

linode VPS 在安裝完成後是預設關閉 587 端口的,主要原因是可能虛拟主機服務商避免很多人申請一個非常便宜的 VPS,然後大量發送垃圾郵件。

你可以在你的賬号下送出工單讓 linode 幫你打開 587 端口,一般來說他們都會回複你一個下面的内容:

Hello,

To help combat spam on our platform, new Linode accounts have SMTP port restrictions in place on all Linodes by default. We have lifted these restrictions from your account, though we ask that you configure rDNS for any mailing Linodes you deploy.

Our guides on configuring DNS and rDNS records within the Linode Manager are linked below:

https://www.linode.com/docs/platform/manager/dns-manager/#add-dns-records https://www.linode.com/docs/networking/dns/configure-your-linode-for-reverse-dns/

Once your DNS configuration is complete, you can confirm that these records have been configured correctly by running the following commands:

“dig +short $URL” for checking the A record

“dig -x $IP +short” for checking rDNS

If you plan on using the Linode(s) for business related mailing now or in the future, do keep in mind that we require business mailing to adhere to the CAN-SPAM act.

Finally, we recommend you review Section 2 ("Abuse") of our Acceptable Use Policy. Terms of Service or AUP violations may result in the reinstatement of SMTP port restriction or account termination.

Let us know if you have any questions for us, and we’ll be happy to help.

Best wishes,

Jack

Linode Support Team

主要用途是校驗你的 DNS 和 rDNS,我們就是按照上面的文章,将 DNS 和 rDNS 配置好以後,将運作的指令結果發給他們。

一般情況下順利的話 1 到 2 個小時就開通了,主要是因為 VPS 提供商希望知道你的伺服器是幹什麼用的,你的郵件發送已經綁定了域名。相對來說如果你使用商業郵件發送伺服器,這裡就能夠幫你省下很多事情。

discourse 的安裝需要郵件伺服器配置,否則你都裝不下去,但是 很多虛拟主機又關閉了 587 端口。是以你在安裝 discourse  的時候,需要先聯系你的伺服器提供商,将 587 端口打開。

https://www.cwiki.us/display/CWIKIKB/questions/62620012

繼續閱讀