Search for:

Available article translations:

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, created on Oct 6, 2008, last review on Mar 11, 2015

  • Parallels Plesk 11.0 for Linux
  • Parallels Plesk 10.4 for Linux/Unix


During the test, mail is bounced back with the following error:

    Delivery to the following recipient failed permanently:
     Technical details of permanent failure: PERM\_FAILURE: SMTP Error (state 13): 554 mail server     permanently rejected message (#5.3.0)

Or you see this error in the maillog:

    warning: trouble injecting bounce message, will try later


Permission issue. Check /usr/local/psa/var/log/maillog for errors. This usually happens when there are incorrect permissions on qmail binary files, such as:

     # 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

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 incorrect permissions and qmail can't write to the "drweb temp" directory.

Fix permissions for the queue files with the following command:

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

If you have Dr.Web installed on the server, read article #1552.

Search words:

mail queue not getting processed

c81e59b61af9dca603ba03b14aabe968 9f8baf78266b4e54525d1c6bf06305a5 56797cefb1efc9130f7c48a7d1db0f0c 276b42158818c83055d6dfa6371d4e4b 1d151d16e47c6f92bbf62d50eb32c4a2 6466998e13fbb5542838cb31b30870ec 824237ce663843af86f93897fbd8e2f8

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification