How to disable root mails in linux plesk

In Plesk, root mail is a feature that allows the root user to receive emails sent to the server's root email address. However, you may want to disable this feature for security reasons or to prevent spam emails from being delivered to the root mailbox.

Here are the steps to disable root mail in Plesk:

Method 1: Using the Plesk Control Panel

  1. Log in to the Plesk Control Panel as an administrator.
  2. Go to Settings > Mail > Root Mail.
  3. Click on the Disable button next to Root Mail.
  4. Confirm that you want to disable root mail by clicking OK.

Method 2: Using the command line

  1. Connect to your server using SSH.
  2. Run the following command to disable root mail:
    plesk bin mail --disable-root-mail
  3. Confirm that you want to disable root mail by typing y and pressing Enter.

Method 3: Editing the Plesk configuration file

  1. Connect to your server using SSH.
  2. Edit the Plesk configuration file using a text editor, such as nano or vim:
    nano /usr/local/psa/admin/conf/mail.conf
  3. Find the following line:
    root_mail = true
  4. Change the value to false:
    root_mail = false
  5. Save the changes and exit the editor.
  6. Restart the Plesk mail service to apply the changes:
    service psa-mail restart

After disabling root mail, any emails sent to the server's root email address will be rejected or bounced back to the sender.