• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

unable to open configuration file /etc/psa/psa.conf: Permission denied

raz3k

Basic Pleskian
Hi, after the recent base update + horde update (i think) for plesk 9.2.3 i get this message in /var/log/messages

Dec 17 12:10:04 ns01 spam_hook[3787]: unable to open configuration file /etc/psa/psa.conf: Permission denied


The permissions are the same as before.


-rw-r--r-- 1 root root 2472 Dec 3 14:06 psa.conf


Any ideas ?

L.E.: Unable to read string from file: /etc/psa/spf/spfbehavior

Seems that the permissions that plesk hotfix3 set are not compatible with other components... so i just chmodded 755 /etc/psa ... problem fixed for now.
 
Last edited:
Regarding spf I can suppose that there was received mail during upgrade procedure. SPF located in /etc/psa-spf now.
Also could you specify with more details how we can reproduce problem with psa.conf?
 
I had everything updated, and i saw that new updates are available... so i started the update procedure using the web-updater. It installed :
psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17.x86_64.rpm
psa-selinux-9.2.3-cos5.build92091210.17.noarch.rpm (i have selinux disabled btw)
psa-updates-9.2.3-cos5.build92091210.17.noarch.rpm
psa-horde-3.1.7-cos5.build92091210.17.noarch.rpm
psa-imp-4.1.6-cos5.build92091210.17.noarch.rpm
psa-ingo-1.1.5-cos5.build92091210.17.noarch.rpm
psa-mimp-1.0.2-cos5.build92091210.17.noarch.rpm
psa-mnemo-2.1.2-cos5.build92091210.17.noarch.rpm
psa-passwd-3.0.1-cos5.build92091210.17.noarch.rpm
psa-turba-2.1.7-cos5.build92091210.17.noarch.rpm

and it generated these errors:

Installing the package psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17.x86_64
Trying to replace files and set up right permissions... cp: missing destination file operand after `/usr/local/psa/tmp/hotfix-92091210.17/'
Try `cp --help' for more information.
done
Unable to create vhost configuration for horde webmail

WARNING!
During the register found some problems(see log file: /tmp/psa-hotfix92091210.17.log)

Continue...

mv: cannot move `/etc/psa/webmail/horde/.horde.shadow' to `/etc/psa-webmail/horde/': No such file or directory
Unable to get options for atmail webmail

WARNING!
During the register found some problems(see log file: /tmp/psa-hotfix92091210.17.log)

Continue...

-----------------------------------------

/tmp/psa-hotfix92091210.17.log:

Trying to replace files and set up right permissions... `/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/sbin/webmailmng' -> `/usr/local/psa/admin/sbin/webmailmng'
`/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/htdocs/get_password.php' -> `/usr/local/psa/admin/htdocs/get_password.php'
`/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/htdocs/login_up.php3' -> `/usr/local/psa/admin/htdocs/login_up.php3'
`/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/htdocs/server/ch_pass.php3' -> `/usr/local/psa/admin/htdocs/server/ch_pass.php3'
done

WARNING!
During the register found some problems
Continue...

Unable to create vhost configuration for horde webmail

WARNING!
During the register found some problems
Continue...

STOP psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17 installing AT Thu Dec 17 10:54:11 CET 2009
STOP psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17 installing AT Thu Dec 17 10:54:11 CET 2009
----------------------------

My /etc/psa file had these perms:

drwxr-x--- 5 psaadm psaadm 4096 Dec 3 13:54 psa

works with:

drwxr-xr-x 5 psaadm psaadm 4096 Dec 3 13:54 psa

P.S. I have all mail features enabled like domainkeys, spamass, drweb(no license), rbl, spf.

Thanks.
 
I also do not have the /etc/psa-spf folder.

Should i uninstall the hotfix and reinstall it using rpm --nodeps ?
 
Hi, after the recent base update + horde update (i think) for plesk 9.2.3 i get this message in /var/log/messages

Dec 17 12:10:04 ns01 spam_hook[3787]: unable to open configuration file /etc/psa/psa.conf: Permission denied


The permissions are the same as before.


-rw-r--r-- 1 root root 2472 Dec 3 14:06 psa.conf


I am having the same problem I think:

Dec 18 22:05:03 www spam_hook[8961]: unable to open configuration file /etc/psa/psa.conf: Permission denied
Dec 18 22:05:03 www spam_hook[8951]: unable to open configuration file /etc/psa/psa.conf: Permission denied
Dec 18 22:05:03 www spam_hook[8979]: unable to open configuration file /etc/psa/psa.conf: Permission denied


this coincides with receiving the following spam email(s):

DomainKey-Status: bad format
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mydomain.com
X-Spam-Level: ********
X-Spam-Status: Yes, score=8.9 required=7.0 tests=EMPTY_MESSAGE,MISSING_DATE,
MISSING_HB_SEP,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_RELAYS,
TVD_SPACE_RATIO autolearn=no version=3.2.5
X-Spam-Report:
* 0.0 MISSING_MID Missing Message-Id: header
* 0.0 MISSING_DATE Missing Date: header
* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
* 2.5 MISSING_HB_SEP Missing blank line between message header and body
* 1.6 MISSING_HEADERS Missing To: header
* 2.9 TVD_SPACE_RATIO BODY: TVD_SPACE_RATIO
* 1.3 MISSING_SUBJECT Missing Subject: header
* 0.6 EMPTY_MESSAGE Message appears to have no textual parts and no
* Subject: text
Received: (qmail 8991 invoked by alias); 18 Dec 2009 22:05:04 +0000
Delivered-To: [email protected]
Subject: ****SPAM****
X-Spam-Prev-Subject: (nonexistent)
 
After chmodding the /etc/psa folder, i searched for updates using the cli autoinstaller and it found+installed:

psa-mail-driver-common-9.2.3-cos5.build92091210.17.x86_64.rpm

after that the spf error got away, as i see from the log it has created /etc/psa-spf

drwxr-xr-x 2 root popuser 4096 Dec 18 10:37 psa-spf

It took a while for the script to rsync all spf handles but it was a success.

I haven't chmodded the /etc/psa folder back yet.
 
I have only these two errors:

Dec 25 13:13:03 XXXXX spf filter[21183]: Unable to read string from file: /etc/psa/spf/spfbehavior
Dec 25 13:13:03 XXXXX qmail-queue-handlers[21181]: handlers_stderr: Unable to open file /etc/psa/spf/spfbehavior: Permission denied System error 13: Permission denied

I have all rpm paskages installed, how can I fix this? If I go to Plesk Admin and then Update I have yellow icon, but no updates is available. How can I update or check update with CLI or fix this error in web interface?
 
My errors is similar like yours, but I don't know how to resolve error:

Dec 25 17:22:53 farm01 spf filter[17443]: Starting spf filter...
Dec 25 17:22:53 farm01 spf filter[17443]: Unable to read string from file: /etc/psa/spf/spfbehavior
Dec 25 17:22:53 farm01 qmail-queue-handlers[17441]: handlers_stderr: Unable to open file /etc/psa/spf/spfbehavior: Permission denied System error 13: Permission denied
Dec 25 17:22:53 farm01 spf filter[17443]: Unable to get spf checking mode
Dec 25 17:22:53 farm01 spf filter[17443]: Unable to get options for spf filter
Dec 25 17:22:53 farm01 qmail-queue-handlers[17441]: call_handlers: Error during call '/usr/local/psa/handlers/info/10-spf-h3GVbF/executable' handler
Dec 25 17:22:53 farm01 qmail-queue-handlers[17441]: LOG Internal error in handler '10-spf-h3GVbF'. Skip handler.

Anyone has the same error. I also have not directory /etc/psa-spf. Plesk is 9.2.3 with latest upgrades.
 
As possible workaround just try to reinstall psa-hotfix3-9.2.3 package.
 
Ok, tried installing and uninstalling the hot fix but still got blank emails. They seem to happen 3 at a time and are repeated daily this lead me to look at the crontab and sure enough, 3 of the 4 recurring blank emails seem to coincide with a cron I have to update various websites at various times. So I guess the issue here may have to to with the third party web application.

This led me to try and find out what was causing the other one that always comes in at 04:08 every day. I notice from /var/log/messages that this has something to do with log rotate which is generating the same error every day:

Jan 11 04:08:34 www logrotate: ALERT exited abnormally with [1]

I have checked all the other cron users in plesk and I can't find where this is triggered or what might be causing the problem.

Any suggestions welcome.
 
where is this set?

getting in 9.3.0

Mar 5 15:25:53 h1441418 before-queue[18434]: handlers_stderr: Unable to open file /etc/psa-spf/spfbehavior: No such file or directory System error 2: No such file or directory

where is the path set? this should be /etc/psa/spf in stead of /etc/psa-spf/ ? Which configuration file is setting the path to spfbehaviour?
 
Default 9.3.0 installation on CentOS:

# rpm -qf /etc/psa-spf/
psa-mail-driver-common-9.3.0-cos5.build93091230.06
# ll /etc/psa/spf
ls: /etc/psa/spf: No such file or directory
 
not centos

error appears in opensuse 11.1

h1441418:/etc/psa-spf # rpm -qf /etc/psa-spf/
psa-mail-driver-common-9.3.0-suse11.1.build93091230.07
h1441418:/etc/psa-spf # ll /etc/psa/spf
totaal 16
-rw-r--r-- 1 root root 1 mrt 5 13:33 spfbehavior
-rw-r--r-- 1 root root 35 mrt 5 13:09 spfexp
-rw-r--r-- 1 root root 29 mrt 5 13:09 spfguess
-rw-r--r-- 1 root root 33 mrt 5 13:09 spfrules
 
psa.conf Permission denied

Hi there, i got the same problem and trying to solve this. My permissions on the psa.conf are ok now and added you find some of my logfiles - My Plesk is 9.3.0. The problem occurs when forwarding a mail from one to another email account on my server. Whenever I got an incoming mail from @info and the mail goes out ok to user1 and user2 - but when user2 manually forwards the email back to user1 this problem occurs.

-------------------

Mar 21 15:59:29 Hostname relaylock: /var/qmail/bin/relaylock: mail from 81.xxx.40.xxx:41387 (xxx.red-81-xxx-40.dynamicip.rima-tde.net)
Mar 21 15:59:29 Hostname smtp_auth: SMTP connect from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
Mar 21 15:59:29 Hostname smtp_auth: smtp_auth: SMTP user [email protected] : logged in from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: Handlers Filter before-queue for qmail started ...
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: [email protected]
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: [email protected]
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: hook_dir = '/usr/local/psa/handlers/before-queue'
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: recipient[3] = '[email protected]'
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: starter: submitter[4017] exited normally
Mar 21 15:59:30 Hostname qmail: 1269183570.459231 new msg 200510
Mar 21 15:59:30 Hostname qmail: 1269183570.459324 info msg 200510: bytes 1949 from <[email protected]> qp 4017 uid 2020
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: Handlers Filter before-local for qmail started ...
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: [email protected]
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: [email protected]
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: mailbox: /var/qmail/mailnames/yyyyy.com/yyyyy
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: hook_dir = '/usr/local/psa/handlers/before-local'
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: recipient[3] = '[email protected]'
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: handlers dir = '/usr/local/psa/handlers/before-local/recipient/[email protected]'
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: call_handlers: call executable = '/usr/local/psa/handlers/info/10-spam-CIb9fV/executable'
Mar 21 15:59:30 Hostname spamd[2724]: spamd: got connection over /tmp/spamd_full.sock
Mar 21 15:59:30 Hostname spamd[2724]: spamd: using default config for [email protected]: /var/qmail/mailnames/yyyyy.com/yyyyy/.spamassassin/user_prefs
Mar 21 15:59:30 Hostname spamd[2724]: spamd: processing message <[email protected]> for [email protected]:110
Mar 21 15:59:30 Hostname qmail: 1269183570.644258 starting delivery 13: msg 200510 to local [email protected]
Mar 21 15:59:30 Hostname qmail: 1269183570.644441 status: local 1/10 remote 0/20


Mar 21 15:59:29 Hostname smtp_auth: SMTP connect from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
Mar 21 15:59:29 Hostname smtp_auth: smtp_auth: SMTP user [email protected] : logged in from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: Handlers Filter before-queue for qmail started ...
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: [email protected]
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: [email protected]
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: hook_dir = '/usr/local/psa/handlers/before-queue'
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: recipient[3] = '[email protected]'
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/[email protected]'
Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: starter: submitter[4017] exited normally
Mar 21 15:59:30 Hostname qmail: 1269183570.459231 new msg 200510
Mar 21 15:59:30 Hostname qmail: 1269183570.459324 info msg 200510: bytes 1949 from <[email protected]> qp 4017 uid 2020
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: Handlers Filter before-local for qmail started ...
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: [email protected]
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: [email protected]
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: mailbox: /var/qmail/mailnames/yyyyy.com/yyyyy
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: hook_dir = '/usr/local/psa/handlers/before-local'
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: recipient[3] = '[email protected]'
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: handlers dir = '/usr/local/psa/handlers/before-local/recipient/[email protected]'
Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: call_handlers: call executable = '/usr/local/psa/handlers/info/10-spam-CIb9fV/executable'
Mar 21 15:59:30 Hostname spamd[2724]: spamd: got connection over /tmp/spamd_full.sock
Mar 21 15:59:30 Hostname spamd[2724]: spamd: using default config for [email protected]: /var/qmail/mailnames/yyyyy.com/yyyyy/.spamassassin/user_prefs
Mar 21 15:59:30 Hostname spamd[2724]: spamd: processing message <[email protected]> for [email protected]:110
Mar 21 15:59:30 Hostname qmail: 1269183570.644258 starting delivery 13: msg 200510 to local [email protected]
Mar 21 15:59:30 Hostname qmail: 1269183570.644441 status: local 1/10 remote 0/20
Mar 21 15:59:32 Hostname spamd[2724]: spamd: identified spam (3.1/3.0) for [email protected]:110 in 1.8 seconds, 1949 bytes.
Mar 21 15:59:32 Hostname spamd[2724]: spamd: result: Y 3 - AWL,DEAR_SOMETHING,RCVD_IN_SORBS_DUL scantime=1.8,size=1949,[email protected],uid=110,required_score=3.0,rhost=localhost,raddr=127.0.0.1,rport=/tmp/spamd_full.sock,mid=<[email protected]>,autolearn=no
Mar 21 15:59:32 Hostname spam_hook[4019]: spam_hook: STOP mail for [email protected]
Mar 21 15:59:32 Hostname qmail-local-handlers[4018]: handlers_stderr: STOP
Mar 21 15:59:32 Hostname qmail-local-handlers[4018]: call_handlers: STOP during call '/usr/local/psa/handlers/info/10-spam-CIb9fV/executable' handler

Mar 21 15:59:32 Hostname qmail-local-handlers[4018]: call_handlers: stop call handlers from dir '/usr/local/psa/handlers/before-local/recipient/[email protected]'
Mar 21 15:59:32 Hostname spamd[2723]: prefork: child states: II
Mar 21 15:59:32 Hostname qmail: 1269183572.449194 delivery 13: success:
Mar 21 15:59:32 Hostname qmail: 1269183572.449247 status: local 0/10 remote 0/20
Mar 21 15:59:32 Hostname qmail: 1269183572.449266 end msg 200510
Mar 21 15:59:40 Hostname pop3d: Connection, ip=[79.zzz.152.zzz]
Mar 21 15:59:40 Hostname pop3d: IMAP connect from @ [79.zzz.152.zzz]INFO: LOGIN, [email protected], ip=[79.zzz.152.zzz]
Mar 21 15:59:40 Hostname pop3d: 1269183580.608997 LOGOUT, [email protected], ip=[79.zzz.152.zzz], top=0, retr=0, time=0, rcvd=24, sent=640, maildir=/var/qmail/mailnames/yyyyy.com/yyyyy/Maildir
 
According information from developers this issue has been completely fixed in Plesk 9.5.0 version.
 
Back
Top