Plesk

Emails are not forwarded to the mailbox in Plesk: Permission denied postdrop

Symptoms

Cause

Incorrect permissions are set for Postfix files.
plesk repair fs command reports the following:

# plesk repair fs -v
Checking Linux system files
There are incorrect permissions on some items:
/usr/lib64/plesk-9.0/sendmail/postdrop ............................ [ERROR]
- Incorrect permissions on
/usr/lib64/plesk-9.0/sendmail/postdrop. Expected: one of 02755.
Actual: 0755.

Resolution

via Plesk UI

  1. Log in to Plesk.
  2. Go to Tools & Settings > Diagnose & Repair.
  3. Press Change next to the File System field and set the option to Only the System Files
  4. Press the Check Selected button:
  5. After any issue is detected, fix permissions by clicking the Repair button:
  6. Go to Tools & Settings > Services Management and restart the SMTP Server (Postfix) service since there may be some leftover stuck processes remaining:

via the Command line

  1. Connect to the server via SSH.

  2. Execute the command below to fix all the potential issues with permissions:

    # plesk repair fs -y

  3. Check if there are any postdrop processes:

    # ps auxffw | grep postdrop
    root 2703423 0.0 0.0 9092 676 pts/0 S+ 12:59 0:00 _ grep --color=auto postdrop
    popuser 2690196 0.0 0.0 97324 4268 ? S 12:38 0:00 | _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2673913 0.0 0.0 97324 4268 ? S 12:03 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2673914 0.0 0.0 97324 4268 ? S 12:03 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2674177 0.0 0.0 97324 4272 ? S 12:03 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2677669 0.0 0.0 97324 4272 ? S 12:11 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2685525 0.0 0.0 97324 4272 ? S 12:28 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2687613 0.0 0.0 97324 4272 ? S 12:32 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2687886 0.0 0.0 97324 4268 ? S 12:33 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r
    popuser 2688674 0.0 0.0 97324 4272 ? S 12:34 0:00 _ /usr/lib64/plesk-9.0/sendmail/postdrop -r

  4. If they exist, restart postfix:
    4.1. Stop Postfix service:

    # service postfix stop

    4.2. Make sure that there are no stuck processes left:

    # ps auxffw | grep postdrop
    root 2704157 0.0 0.0 9092 680 pts/0 S+ 13:01 0:00 _ grep --color=auto postdrop

    4.3. If they exist, kill hung processes. If there are none, restart Postfix:

    # service postfix start