Plesk

Unable to send emails with PHP scripts or Plesk notifications: /usr/sbin/sendmail No such file or directory

Symptoms

Cause

Sendmail symlinks to the Plesk Qmail wrapper are missing or invalid

Resolution

  1. Connect to the server via SSH

  2. Unlink symlinks:

    # unlink /etc/alternatives/mta
    # unlink /usr/sbin/sendmail

  3. Create correct symlinks:

    # ln -s /etc/alternatives/mta /usr/sbin/sendmail
    # ln -s /usr/lib64/plesk-9.0/qmail-sendmail-wrapper /etc/alternatives/mta