PHP launches sendmail via system(), which in turn uses “/bin/sh -c” internally. /var/lib/mini-sendmail/sh is a wrapper that supports being called with “-c command” to launch sendmail. https://knzl.de/setting-up-a-chroot-for-php/