Linode 虚拟主机安装 discourse 邮件没有发送

  • 来源:网络
  • 更新日期:2020-06-02

摘要:来自专辑 计算机语言开发工具和软件

来自专辑 计算机语言开发工具和软件

discourse 在安装的时候对电子的依赖性非常强。

linode VPS 安装后 discourse 的电子邮件始终没有办法发送成功。

 


 

discourse 在安装完成后,需要对电子邮件进行校验。如果你不配置 SMTP 服务器的话,你的 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-recordshttps://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 rDNSIf 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 端口打开。