从本地服务器上托管的应用程序发送电子邮件

Send Email From Application Hosted On Local Server

我在本地服务器和云服务器上都安装了 orangescrum。当我尝试从本地服务器向其他用户发送电子邮件时,邮件未送达。我已经检查了 SMTP 配置,一切似乎都很好。我在 cpanel 上检查了电子邮件跟踪递送,但没有显示电子邮件。

我希望托管在云上的邮件服务器接受那些来自我本地服务器的电子邮件并将其发送到目标电子邮件地址。似乎有什么东西阻止了请求。我是否必须在 cpanel 上配置(DKIM、SPF 等)任何内容,以便它接受我的邮件?非常感谢任何帮助。

您似乎想将 cpanel 服务器用作本地服务器的“smarthost”。

在 cPanel 中,您可以在 this way:

中完成

You can add the IP address/hostname of the local server (public IP) to the following options in "WHM Home » Service Configuration » Exim Configuration Manager":

  • "Trusted SMTP IP addresses"
  • "Backup MX hosts"

In some cases you may need to add the IP address to the /etc/alwaysrelay file and enable Antirelayd.