Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

I cannot send any mail from the server even via command line. The following error occurs: "PERM_FAILURE: SMTP Error (state 13): 554 mail server permanently rejected message (#5.3.0)"

Article ID: 836 
Last Review: Jul,13 2009
Author: Daria Taranova
Last updated by: Daria Taranova APPLIES TO:
  • Plesk 8.x for Linux/Unix
  • Plesk 7.5.x Reloaded

Symptoms

The following headers are bounced back during the test:

    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)


Or you see the errors in maillog:

warning: trouble injecting bounce message, will try later

Resolution

This is a kind of permission error. Please check /usr/local/psa/var/log/maillog for errors. It usually happens when there are incorrect permissions on qmail binary files, like:



# 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


But the permissions must be:


# 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


Otherwise, files in the qmail queue are created with wrong permissions and qmail can't write to drweb temp directory.

Also, fix permissions on the queue files with the following command:

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



If you have DrWeb installed on the server, please look at 1552.



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products