1 |
jpp |
1.1 |
diff -Nur --no-dereference smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All |
2 |
|
|
--- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All 2021-03-06 23:17:38.962000000 -0500 |
3 |
|
|
+++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/custom.conf/10All 2021-03-06 23:46:29.548000000 -0500 |
4 |
|
|
@@ -29,6 +29,7 @@ |
5 |
|
|
my $display_errors = $pool->prop('DisplayErrors') || 'disabled'; |
6 |
|
|
my $log_errors = $pool->prop('LogErrors') || 'disabled'; |
7 |
|
|
my $autoprepend = $pool->prop('AutoPrependFile') || 'enabled'; |
8 |
|
|
+ my $MailForceSender = $pool->prop('MailForceSender') || "php\@$DomainName"; |
9 |
|
|
|
10 |
|
|
# Format vars |
11 |
|
|
my $autoprep = ( $autoprepend eq "disabled") ? "" : "/usr/share/php/auth_translation.php"; |
12 |
|
|
@@ -61,7 +62,7 @@ |
13 |
|
|
php_admin_value[opcache.file_cache] = /var/lib/php/$key/opcache |
14 |
|
|
php_admin_value[upload_tmp_dir] = /var/lib/php/$key/tmp |
15 |
|
|
php_admin_value[sys_temp_dir] = /var/lib/php/$key/tmp |
16 |
|
|
-php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
17 |
|
|
+php_admin_value[mail.force_extra_parameters] = '-f $MailForceSender' |
18 |
|
|
php_admin_flag[display_errors] = $display_errors |
19 |
|
|
php_admin_flag[log_errors] = $log_errors |
20 |
|
|
php_admin_value[error_log] = /var/log/php/$key/error.log |
21 |
|
|
diff -Nur --no-dereference smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays |
22 |
|
|
--- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays 2021-03-06 23:17:38.962000000 -0500 |
23 |
|
|
+++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/ibays.conf/10Ibays 2021-03-06 23:46:50.213000000 -0500 |
24 |
|
|
@@ -27,7 +27,8 @@ |
25 |
|
|
'passthru,phpinfo,' . |
26 |
|
|
'escapeshellarg,escapeshellcmd'; |
27 |
|
|
my $autoprepend = $ibay->prop('PHPAutoPrependFile') || 'enabled'; |
28 |
|
|
- |
29 |
|
|
+ my $MailForceSender = $ibay->prop('MailForceSender') || "$name\@$DomainName"; |
30 |
|
|
+ # TODO => check ibay associated domains. |
31 |
|
|
# Format vars |
32 |
|
|
my $autoprep = ( $autoprepend eq "disabled") ? "" : "/usr/share/php/auth_translation.php"; |
33 |
|
|
my $autoprepath = ( $autoprepend eq "disabled") ? "" : ",/usr/share/php/"; |
34 |
|
|
@@ -56,7 +57,7 @@ |
35 |
|
|
php_admin_value[opcache.file_cache] = /var/lib/php/$key/opcache |
36 |
|
|
php_admin_value[upload_tmp_dir] = /var/lib/php/$key/tmp |
37 |
|
|
php_admin_value[sys_temp_dir] = /var/lib/php/$key/tmp |
38 |
|
|
-php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
39 |
|
|
+php_admin_value[mail.force_extra_parameters] = '-f $MailForceSender' |
40 |
|
|
php_admin_flag[display_errors] = off |
41 |
|
|
php_admin_flag[log_errors] = on |
42 |
|
|
php_admin_value[error_log] = /var/log/php/$key/error.log |
43 |
|
|
diff -Nur --no-dereference smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings |
44 |
|
|
--- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings 2021-03-06 23:17:38.963000000 -0500 |
45 |
|
|
+++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings 2021-03-06 23:47:08.862000000 -0500 |
46 |
|
|
@@ -1,4 +1,4 @@ |
47 |
|
|
-php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } |
48 |
|
|
+php_admin_value[mail.force_extra_parameters] = '-f { "php\@$DomainName" }' |
49 |
|
|
php_admin_flag[display_errors] = off |
50 |
|
|
php_admin_flag[log_errors] = on |
51 |
|
|
php_admin_value[memory_limit] = { $MemoryLimit } |
52 |
|
|
diff -Nur --no-dereference smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunction smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunction |
53 |
|
|
--- smeserver-php-3.0.0.old/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunction 2021-03-06 23:17:38.967000000 -0500 |
54 |
|
|
+++ smeserver-php-3.0.0/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunction 2021-03-06 23:46:10.186000000 -0500 |
55 |
|
|
@@ -1,8 +1,10 @@ |
56 |
|
|
[mail function] |
57 |
|
|
SMTP = localhost |
58 |
|
|
smtp_port = {($qpsmtpd{TCPPort} || '25')} |
59 |
|
|
-sendmail_from = root@{$DomainName} |
60 |
|
|
+; windows setting, but in case : |
61 |
|
|
+sendmail_from = '{$phpcur->prop(MailForceSender)|| $php{'MailForceSender'} || "root\@$DomainName" }' |
62 |
|
|
sendmail_path = {($phpcur->prop(SendmailPath) || $php{"SendmailPath"} || '/usr/sbin/sendmail -t -i')} |
63 |
|
|
+mail.force_extra_parameters = '-f {$phpcur->prop(MailForceSender)|| $php{'MailForceSender'} || "root\@$DomainName" }' |
64 |
|
|
mail.log = { |
65 |
|
|
my $mailog = $phpcur->prop(MailLog) || $php{"MailLog"} || "disabled"; |
66 |
|
|
my $mlog = ($mailog eq "enabled")? "/var/log/php/php$PHP_VERSION/mail.log" : ""; |