From cc52229fb3325c8fc7b60da491facc23a803dec4 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 28 Mar 2024 14:27:46 -0700 Subject: [PATCH] disable setting sendmail_path --- bin/vhost-add.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/vhost-add.sh b/bin/vhost-add.sh index 1c7304b..9e2cbcb 100755 --- a/bin/vhost-add.sh +++ b/bin/vhost-add.sh @@ -69,12 +69,13 @@ if [[ -d /usr/jails/$username ]]; then fi # set sendmail_path in php-fpm, but only if not already set -vhost::set-phpVersion -if [[ -f /etc/php/$phpVersion/fpm/pool.d/$username.conf ]]; then - if ! /bin/grep -q "^php_admin_value\[sendmail_path\]" /etc/php/$phpVersion/fpm/pool.d/$username.conf; then - echo "php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -fwebmaster@$domain" >> /etc/php/$phpVersion/fpm/pool.d/$username.conf - fi -fi +## disabled, now relying on defaults (user@fqdn) with .forward (/home/user/.forward) +## vhost::set-phpVersion +## if [[ -f /etc/php/$phpVersion/fpm/pool.d/$username.conf ]]; then +## if ! /bin/grep -q "^php_admin_value\[sendmail_path\]" /etc/php/$phpVersion/fpm/pool.d/$username.conf; then +## echo "php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -fwebmaster@$domain" >> /etc/php/$phpVersion/fpm/pool.d/$username.conf +## fi +## fi # create & enable apache config /usr/local/bin/vhost-enable.sh -d $domain -m VHostHTTP