Article ID: 836, created on May 3, 2013, last review on May 8, 2014

  • Applies to:
  • Plesk 11.0 for Linux
  • Plesk 10.4 for Linux/Unix

问题

测试过程中,弹回邮件并出现以下错误:

    Delivery to the following recipient failed permanently: test@domain.com
Technical details of permanent failure: PERM_FAILURE: SMTP Error (state 13): 554 mail server     permanently rejected message (#5.3.0)


或者您在 maillog 中看到此错误:

warning: trouble injecting bounce message, will try later

解决方案

这是一个权限错误。 查看 "/usr/local/psa/var/log/maillog" 找出错误。 当在 qmail 二进制文件上的权限不正确时通常会出现此错误,例如:



# ls -l /var/qmail/bin/qmail-queue*
-r-xr-xr-x 1 drweb qmail 158268 Aug 16 11:08 /var/qmail/bin/qmail-queue
-r-xr-xr-x 1 root qmail 158268 Sep 13 2004 /var/qmail/bin/qmail-queue.drweb
-r-xr-xr-x 1 root qmail 12044 Aug 17 13:57 /var/qmail/bin/qmail-queue.origin


此权限必须为:


# ls -la /var/qmail/bin/qmail-queue*
-r-s--x--x 1 drweb qmail 161024 Oct 11 13:31 /var/qmail/bin/qmail-queue
-r-s--x--x 1 drweb qmail 161024 Oct 11 13:31 /var/qmail/bin/qmail-queue.drweb
-r-s--x--x 1 qmailq qmail 16012 Aug 24 13:21 /var/qmail/bin/qmail-queue.origin


否则,将会创建 qmail 队列中的文件带有不正确的权限且 qmail 无法写入 "drweb temp" 目录。

通过以下命令行修复队列文件的权限:

for i in /var/qmail/queue/mess/*; do chown qmailq:qmail $i/*;done



如果您在服务器上安装了 Dr.Web,请阅读文章 #1552.

a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article