Symptoms
-
Unable to send mail message via sendmail command line utility:
# echo “Subject: sendmail test” | sendmail -v [email protected]
plesk sendmail[21306]: my_popen(): execve(/usr/lib64/plesk-9.0/sendmail/sendmail.postfix) failed: No such file or directory [2]
plesk sendmail[21306]: Unable to execute MTA
plesk sendmail[21305]: sendmail unsuccessfully finished with exitcode 70
/usr/sbin/sendmail: 1: /usr/sbin/sendmail: Syntax error: Unterminated quoted string
/usr/sbin/sendmail: cannot execute binary file: Exec format error
plesk sendmail[20188]: cannot create temporary file - (13) Permission denied
plesk sendmail[20188]: Unable to save stdin content to temporary file -
The same error can be found on
/var/log/maillog
file.
Cause
File/usr/lib64/plesk-9.0/sendmail/sendmail.postfix
is missing or corrupted
Resolution
- Determine what mail server installed: Plesk > Tools & Settings > Mail Server Settings:
-
Connect to the server via SSH;
-
Download and reinstall a package suitable for the environment from the Plesk repository according to the Plesk version:
“plesk-mail-pc-driver” (for Postfix mail server)
“plesk-mail-qc-driver” (for Qmail mail server)example for Debian-based OS:
Warning: “PSA_18.0.36” in the below URL needs to be replaced with the actual version on your server as well as the OS name and version “Ubuntu-20.04” needs to be replaced with currently installed on the server.
# wget http://autoinstall.plesk.com/PSA_18.0.36/dist-deb-Ubuntu-20.04-x86_64/opt/maildrivers/plesk-mail-pc-driver_18.0-v.ubuntu.20.04+p18.0.36.0+t210601.1013_amd64.deb
Note: Plesk and OS versions could be verified using the next CLI command:
# plesk -v
Remove the current package:
# dpkg -P –force-all plesk-mail-pc-driver
Install the downloaded one:
# dpkg -i plesk-mail-pc-driver_18.0-v.ubuntu.20.04+p18.0.36.0+t210601.1013_amd64.deb
example for RedHat-based OS:
Warning: “PSA_18.0.36” in the below URL needs to be replaced with the actual version on your server as well as the OS name and version “CentOS-8” needs to be replaced with currently installed on the server.
# wget http://autoinstall.plesk.com/PSA_18.0.36/dist-rpm-CentOS-8-x86_64/opt/maildrivers/plesk-mail-pc-driver/plesk-mail-pc-driver-18.0-2.centos.8+p18.0.36.0+t210601.1013.x86_64.rpm
Note: Plesk and OS versions could be verified using the next CLI command:
# plesk -v
Remove the current package:
# rpm -ev plesk-mail-pc-driver
Install the downloaded one:
# rpm -ivh plesk-mail-pc-driver-18.0-2.centos.8+p18.0.36.0+t210601.1013.x86_64.rpm