Applicable to:
- Plesk for Linux
Symptoms
Note: The article is applicable only to Plesk servers with Debian or Ubuntu operating systems.
-
Postfix is marked as not installed in Plesk in Tools & Settings > Server Components:
PLESK_INFO: Component was not installed
-
The section Mail is not shown in the menu Tools & Settings.
-
The tab Mail is missing in Subscriptions > example.com.
-
The symbolic link
/usr/sbin/sendmail
is missing:# ls -l /usr/sbin/sendmail
ls: cannot access /usr/sbin/sendmail: No such file or directory -
The following error is found in the file
/var/log/apt/term.log
:CONFIG_TEXT: Setting up postfix (3.1.0-3ubuntu0.3) ...
...
Running newaliases
/var/lib/dpkg/info/postfix.postinst: 624: /var/lib/dpkg/info/postfix.postinst: newaliases: not found
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 127
Cause
Missing symbolic link /usr/sbin/sendmail
after the incomplete Plesk upgrade.
Resolution
-
Connect to the server using SSH.
-
Re-create the missing symlink:
# ln -s /usr/lib/plesk-9.0/postfix-sendmail-wrapper /usr/sbin/sendmail
-
Set the value of the parameter
PLESK_LIBEXEC_DIR
in the file/etc/psa/psa.conf
to/usr/lib/plesk-9.0
:CONFIG_TEXT: # Directory for service utilities
PLESK_LIBEXEC_DIR /usr/lib/plesk-9.0 -
Start the Plesk Installer and follow the instructions to complete the Plesk upgrade:
# plesk installer
-
Repair the mail service configuration:
# plesk repair mail
Comments
2 comments
ln -s /usr/lib/plesk-9.0/postfix-sendmail-wrapper /usr/sbin/sendmail
gives me this error:
ln: failed to create symbolic link '/usr/sbin/sendmail': File exists
Hi @Martin Schenk,
The output of the command means, that symbolic link exists, and another cause is involved.
Thus, keep searching in our knowledge base using other symptoms: https://support.plesk.com/hc/en-us. If you will not be able resolving this on you own, feel free to contact support for your Plesk: How to submit a request to Plesk support?
Please sign in to leave a comment.