Error message fopen('users/assign') during connection to qmail in Plesk system

Article ID: 5619 
Last Review: Oct,8 2008
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Plesk 8.x for Linux/Unix

Symptoms

I see the following error message during connection to my 'qmail' in Plesk system:

rcpt to:<user@domain.com>
421 fopen('users/assign') failed (#5.7.10) Permission denied
Connection closed by foreign host.


How to fix it?

Resolution

Standard access rights for the directory /var/qmail/users/assign should be the following:

~# ls -ld /var/qmail/users/assign
-rw------- 1 root root 738 Sep 24 16:53 /var/qmail/users/assign
~#


The reason of the mentioned failure is lack of 'suid' bit on these files:

~# ls -l /var/qmail/bin/smtp_auth
-r-xr-xr-x 1 root root 15172 Jun  8 12:48 /var/qmail/bin/smtp_auth
~#

~# ls -l /var/qmail/plugins/chkrcptto
-r-xr-xr-x 1 root root 15788 Jun  8 12:48 /var/qmail/plugins/chkrcptto
~#


adding this 'suid' bit should solve the problem:

~# chmod u+s /var/qmail/bin/smtp_auth
~# chmod u+s /var/qmail/plugins/chkrcptto


Very often such issue with lack of 'suid' bit might be due to failed Plesk upgrade, e.g. some of packages like 'qmail' were not upgraded correctly from earlier versions, and this caused this error.
To fix this problem please complete upgrade procedure of such packages to the latest version - this should help.





Subscription for this article changesSubscription for this article changes

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