sendmail - Plesk Parallels 无法向具有外部 MX 记录的帐户发送电子邮件

标签 sendmail phpmailer plesk qmail mail-form

我的域@thisdomain.com 位于我的 VPS 上。此 VPS 是 NameServer 并为 @thisdomain.com 提供 DNS。 @thisdomain.com 的邮件服务器由 GoDaddy 提供的外部网络邮件服务托管。

不幸的是,我在 VPS (thisdomain.com) 网站上的邮件表单无法设置为发送到任何电子邮件@thisdomain.com,因为它似乎没有查看 DNS 上指向网络服务器。相反,它会在本地查找 VPS 上的帐户(显然不存在)

这是我收到的反弹的副本,有人有什么想法吗?

Hi. This is the qmail-send program at ip-100-255-30-47.ip.secureserver.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<sales@thisdomain.com>:
This address no longer accepts mail.

--- Below this line is a copy of the message.

还有更多内容,但我认为这是相关部分。

最佳答案

我在 Parallels 网站上找到了有关此问题的以下文章

http://kb.parallels.com/en/116927

分辨率

禁用 domain.tld 订阅的邮件服务:

Go to Subscriptions > domain.tld > Mail > Change Settings.
Uncheck Activate mail service on domain and click OK.

您还可以使用命令行实用程序 mail 在订阅上禁用邮件服务:

/usr/local/psa/bin/mail --off domain.tld

要为服务器上的每个订阅禁用邮件服务,请使用以下命令:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Nse"select name from domains where parentDomainId=0"|while read i; do /usr/local/psa/bin/mail --off $i && echo "Mail service for $i subscription has been disabled" ;done

我希望我知道如何通过运行 mySQL 查询的 phpMyAdmin 为每个订阅执行此操作...

关于sendmail - Plesk Parallels 无法向具有外部 MX 记录的帐户发送电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23641667/

相关文章:

php - cronjob 是使用 SMTP 通过 PHPMailer 发送大量通知电子邮件的正确方法吗?

php - TYPO3 v10LTS - 错误 - 核心 : Exception handler (WEB): Uncaught TYPO3 Exception: #1573385431: RSS URL could not be fetched | RuntimeException

windows - smartd 使用 sendmail 发送邮件

unix - 如何监控来自 Unix 和 Sendmail 的外发电子邮件?

python - 通过 python 从本地主机发送电子邮件到本地主机

php - 使用 php 和 sendmail 发送有关测试 docker 容器的电子邮件

PHPMAILER 不发送且不给出错误

PHPMailer - 使用 URL 附加远程文件

command-line - 如何从 plesk 服务器打开 bashrc 文件并添加新的 PHP 路径版本

php - 自动使用 HTTPS