• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Chrooted sendmail dont work

SpAcEDeViL

Basic Pleskian
When i will use sendmail, (standard in php) they dont work under a chrooted user.

sh: /usr/sbin/sendmail: No such file or directory
Error - Could not instantiate mail function.

i use chroot_update.sh to add /usr/lib64/plesk-9.0/postfix-sendmail-wrapper
but this dont work:

Updating chrooted environment on ****.de: chrootmng: skipping suid or sgid file "/var/www/vhosts/chroot/bin/postfix-sendmail-wrapper"

Why is chrooted so terrible in plesk?
How can i add mail in chrooted? I dont can give the user normal bash, they can see the hole system....
 
Last edited:
Hy UFHH01,

this does not help.

Same Error:
Code:
sh: /usr/sbin/sendmail: No such file or directory
Error - Could not instantiate mail function.
 
Hi SpAcEDeViL,

pls. try to describe in detail
When i will use sendmail, (standard in php)
WHAT you configured and how you tried to use "sendmail", so people willing to help you are able to reproduce your described situation and then could guide you to possible solutions, how to reach your goal.
 
Hy,

thx for replay.

What i want is simple. i eg. using phpmailer to send emails from the site to users. eg. a newsletter that is called from crontab.

eg.
Code:
*/15      *    *    *    *    siteuser cd /var/www/vhosts/site.de/httpdocs/ && /opt/plesk/php/5.6/bin/php bin/console sw:cron:run &> /dev/nul

sendmail is not the only error, i have errors when i use curl with the ssl certificates. but this is the next step(problem) frist i want only send emails.

Can plesk here not use a "fake" sendmail instance, that give the mails to the real sendmail? i read that sendmail can only run once on server.
 
Back
Top