The "Contact us" form does not work on Plesk server: sh: /usr/sbin/sendmail: Permission denied

Follow

Comments

3 comments

  • Avatar
    Miguel Ángel

    I have four servers with this error :(  All servers has a fresh Obsidian install with CentOS (7.7.1908).

    File: ‘/usr/sbin/sendmail’ -> ‘/etc/alternatives/mta’
    Size: 21 Blocks: 0 IO Block: 4096 symbolic link
    Device: 902h/2306d Inode: 19532614 Links: 1
    Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2019-10-28 08:30:01.861838520 +0100
    Modify: 2019-10-18 17:08:54.947577479 +0200
    Change: 2019-10-18 17:08:54.947577479 +0200
    Birth: -

    On /etc/alternatives I can see:

    lrwxrwxrwx 1 root root 26 Oct 18 17:08 mta -> /usr/sbin/sendmail.postfix

    Permissions of sendmail.postfix:

    File: ‘/usr/sbin/sendmail.postfix’ -> ‘/usr/lib64/plesk-9.0/sendmail/sendmail.postfix’
    Size: 46 Blocks: 0 IO Block: 4096 symbolic link
    Device: 902h/2306d Inode: 19533240 Links: 1
    Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2019-10-28 08:30:01.861838520 +0100
    Modify: 2019-10-18 17:10:09.619775061 +0200
    Change: 2019-10-18 17:10:09.619775061 +0200
    Birth: -

    And logs:

    [28-Oct-2019 18:55:37] WARNING: [pool XXX.XXX.XXX] child 4681 said into stderr: "sh: /usr/sbin/sendmail: Permission denied"
    [28-Oct-2019 18:56:02] WARNING: [pool XXX.XXX.XXX] child 5202 said into stderr: "sh: /usr/sbin/sendmail: Permission denied"
    [28-Oct-2019 18:56:28] WARNING: [pool XXX.XXX.XXX] child 5468 said into stderr: "sh: /usr/sbin/sendmail: Permission denied"

    Any ideas?

     

    0
    Comment actions Permalink
  • Avatar
    Anzhelika Khapaknysh

    Hi @Miguel Ángel,

    Check whether the symlink /etc/alternatives/mta is correct.

    To do it, run the command:

    # ls -l /etc/alternatives/mta

    The output should be as follows:
    lrwxrwxrwx 1 root root 45 Oct 23 00:24 /etc/alternatives/mta -> /usr/lib64/plesk-9.0/postfix-sendmail-wrapper

    In case something else is specified instead of /usr/lib64/plesk-9.0/postfix-sendmail-wrapper do the following:

    1. Connect to the server via SSH

    2. Unlink the file /etc/alternatives/mta:

      unlink /etc/alternatives/mta

    3. Re-create the Symlink pointing to /usr/lib64/plesk-9.0/postfix-sendmail-wrapper binary:

      ln -s /usr/lib64/plesk-9.0/postfix-sendmail-wrapper /etc/alternatives/mta

    0
    Comment actions Permalink
  • Avatar
    Miguel Ángel

    Great! ;-) That's the problem @Anzhelika Khapaknysh

    I had setup mta -> /usr/sbin/sendmail.postfix instead mta -> /usr/lib64/plesk-9.0/postfix-sendmail-wrapper

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request