matrix
New Pleskian
- Server operating system version
- Debian 12
- Plesk version and microupdate number
- 18.0.62 #2
Hello,
I'm suddenly getting an error when PHP scripts in chroot try to use the mail function (directly with mail or trough PHPMailer).
The error is /usr/sbin/sendmail not found. However, it was working just fine till yesterday.
I'm using postfix as mailserver and the sendmail sbin is just a symlink to the plesk wrapper.
Of course the users are allowed to use sendmail for cronjobs/scripts in their plans.
Thing I've tried:
1) Disable/reenable the mail setting checkbox for allowing sendmail in user scripts
2) Trying to manually add sendmail with update-chroot.sh
3) Trying to switch the user shell to bash (which has no problem btw) and then back to chroot.
4) Trying to rebuild the chroots from scratch
5) Running almost all the "plesk repair XXX" things.
I can't seem to get it working again.
I'm not sure why it broke, I was just adding some new executable int he chroot with the update-chroot script (like adding nano, find, mysqldump), and it suddenly broke.
I'm sure it was working before in chroot because I received mails from my own scripts till yesterday, now i just get a mail with the sendmail not found error.
I tried everything I could think of. Can anyone help?
Thanks
I'm suddenly getting an error when PHP scripts in chroot try to use the mail function (directly with mail or trough PHPMailer).
The error is /usr/sbin/sendmail not found. However, it was working just fine till yesterday.
I'm using postfix as mailserver and the sendmail sbin is just a symlink to the plesk wrapper.
Of course the users are allowed to use sendmail for cronjobs/scripts in their plans.
Thing I've tried:
1) Disable/reenable the mail setting checkbox for allowing sendmail in user scripts
2) Trying to manually add sendmail with update-chroot.sh
3) Trying to switch the user shell to bash (which has no problem btw) and then back to chroot.
4) Trying to rebuild the chroots from scratch
5) Running almost all the "plesk repair XXX" things.
I can't seem to get it working again.
I'm not sure why it broke, I was just adding some new executable int he chroot with the update-chroot script (like adding nano, find, mysqldump), and it suddenly broke.
I'm sure it was working before in chroot because I received mails from my own scripts till yesterday, now i just get a mail with the sendmail not found error.
I tried everything I could think of. Can anyone help?
Thanks