1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

changed owner/group to root/root on all server : emails not working now

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by CeliaF, Oct 14, 2009.

  1. CeliaF

    CeliaF Guest


    by mistake we changed all the owner/group on the server to root/root.
    Since then we have problems with several services on the server.

    We manage to recover Plesk admin by changing the group/owner of etc/psa/psa.shadow to psaadm/psaadm

    But the email and webmail are not working. Can someone tell me the files/directory that could have the wrong permissions, and what permissions to set?

    Thanks in advance,
  2. trialotto

    trialotto Golden Pleskian Plesk Guru

    Sep 28, 2009
    Likes Received:
    Interesting problem.

    Two solutions:
    1 - use the autoinstaller to update. Be aware that this can cause some data loss in your case, if configuration is also somewhat messed up.
    2 - Manually change ownership.

    The nice thing about your problem is that only webmail and qmail are not owned properly.

    Qmail can be easily resolved and set back, by a combined use of both solutions. Follow the steps:
    1 - Open command line utility (SSH)
    2 - run /usr/local/psa/admin/sbin/autoinstaller
    3 - at first, only select Postfix at "Mail Servers" and install
    4 - when the installer is finished, open the autoinstaller again (!)
    5 - now select QMail Mailserver at "Mail Servers" and install

    Problems with QMail should be resolved.

    Note: if you have postfix as your mail server, then simply first select qmail and then reinstall postfix.

    IMPORTANT: when using qmail as a default server, you should manually change the ownership of qmail-local. See:


    The webmail issue is somewhat different since that can involve two webmail systems (horde and atmail) and i do not know what you use and what the problems are.

    After all, as far as i know, horde is supposed to work under the root:root ownership structure. So, there is no mistake over there.

    In short, first try to reinstall your mail server again.

    NOTE: if the reinstallment does not resolve your problem the first time you run autoinstall, do it again (!). Due to a minor bug in the autoinstaller it can be the case that the change between postfix and qmail is not executed properly at first. Since files are left on the file system when changing, a newly executed change is very likely to install all missing files (the files that resulted in the change not be succesfully the first time).
  3. AdrienF

    AdrienF Guest

    Thank you trialotto, this wa great

    I had already autoreinstalled qmail but it didn't worked
    but instaling postif and twice qmail made it work !

    For who ever might need it, those are the commands I used :

    # /usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component postfix
    # /usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component qmail
    # /usr/local/psa/admin/sbin/autoinstaller --select-release-current --install-component qmail