• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

chmod /var 777 help

MarisaD

New Pleskian
Is there anyway to fix a VPS, plesk 10.4.4 where the user chmod all of /var to 777

some permissions seem to have been restored -Perhaps using httpdmng or similar tools although nothing in bash history to see how.

Qmail reports problems when trying to inject mail, and 190emails stuck in queue not processing (qmail-inject: fatal: qq temporary problem (#4.3.0)
Can't send mail: sendmail process failed with error code 111)

Issue the same even when trying to set permissions back on the /var/qmail/ by copying from another vps.

Are the below now correct?


drwxr-xr-x 11 root qmail 4.0K Nov 9 2011 .
drwxr-xr-x 17 root root 4.0K Nov 7 13:10 ..
drwxr-xr-x 2 alias qmail 4.0K Nov 9 2011 alias
drwxr-xr-x 2 root qmail 4.0K Nov 7 13:14 bin
drwxr-xr-x 2 root qmail 4.0K Nov 9 2011 boot
drwxr-xr-x 2 root qmail 4.0K Nov 9 23:02 control
drwxr-xr-x 22 root root 4.0K Nov 7 09:20 mailnames
drwxr-xr-x 2 root qmail 4.0K Nov 9 2011 plugins
drwxr-xr-x 2 popuser popuser 4.0K Nov 8 13:19 popuser
drwxr-xr-x 11 qmailq qmail 4.0K Nov 8 13:19 queue
drwxr-xr-x 2 root qmail 4.0K Nov 9 23:02 users

inside queue

root@lvps109-104-93-192:/var/qmail/queue# ls -lah
total 44K
drwxr-xr-x 11 qmailq qmail 4.0K Nov 8 13:19 .
drwxr-xr-x 11 root qmail 4.0K Nov 9 2011 ..
drwx------ 2 qmails qmail 4.0K Nov 7 09:40 bounce
drwx------ 25 qmails qmail 4.0K Nov 9 22:49 info
drwx------ 25 qmailq qmail 4.0K Nov 9 22:49 intd
drwx------ 25 qmails qmail 4.0K Nov 9 22:49 local
drwxr-x--- 2 qmailq qmail 4.0K Nov 9 2011 lock
drwxr-x--- 25 qmailq qmail 4.0K Nov 9 22:43 mess
drwx------ 2 qmailq qmail 4.0K Nov 9 13:00 pid
drwx------ 25 qmails qmail 4.0K Nov 9 22:49 remote
drwxr-x--- 25 qmailq qmail 4.0K Nov 9 22:50 todo


inside mess

drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 0
drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 1
drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 10
drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 11

etc.



However /var/lib/ is still all 777 as are most other folders including sendmail in there.

Can you provide me a list of all permissions and user:group for the /var directory or a list of tools that will restore it all? Anything form virtuozzo/power panel?

If we install postfix through autoinstaller then back to qmail, will this work and will it lose the 190emails stuck in the queue as the customer wants to try save these.

If we backup /var/qmail/mess then reisntall qmail and put it back in again will this work?

Trying to avoid rebuild and keep all emails and data so any suggestions welcome.

Thanks,
 
fixed it

Copy by eye permissions of all /var/qmail folders from working server.

Backup qmail dir to a folder outside /var/ (just incase didn’t even need in end)

Stop qmail

Autoinstaller to postfix

Autoinstaller back to qmail

Stop qmail

Cd to /var/qmail/mess and run the below

/var/qmail/queue/mess# chown -R qmailq:qmail *
/var/qmail/queue/mess# kill -ALRM `ps ax | grep qmail-send | grep -v grep | awk '{print $1}'`

Will probably put this server to postfix now just incase some other parts of qmail are still a bit unhappy but cant see any issues at the moment.
 
Back
Top