aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFedericoHeichou <federicoheichou@gmail.com>2023-07-28 09:34:16 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-02-23 15:15:59 +0000
commit39d81aff8f8961d50b8af5b830d999654ff40113 (patch)
tree4169d623c2008924583873f17d1b70a365980bc3
parent5087de9f9892e97f5f72b96230a7067fbe8063ea (diff)
downloadnextcloud-server-39d81aff8f8961d50b8af5b830d999654ff40113.tar.gz
nextcloud-server-39d81aff8f8961d50b8af5b830d999654ff40113.zip
Add "-i" to sendmail's pipe
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
-rw-r--r--apps/settings/templates/settings/admin/additional-mail.php2
-rw-r--r--lib/private/Mail/Mailer.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/templates/settings/admin/additional-mail.php b/apps/settings/templates/settings/admin/additional-mail.php
index 3e8b373c738..04bf8445b60 100644
--- a/apps/settings/templates/settings/admin/additional-mail.php
+++ b/apps/settings/templates/settings/admin/additional-mail.php
@@ -45,7 +45,7 @@ if ($_['mail_smtpmode'] === 'qmail') {
$mail_sendmailmode = [
'smtp' => 'smtp (-bs)',
- 'pipe' => 'pipe (-t)'
+ 'pipe' => 'pipe (-t -i)'
];
?>
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index 9b7b3cf117b..61dc6f9214b 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -331,7 +331,7 @@ class Mailer implements IMailer {
}
$binaryParam = match ($this->config->getSystemValueString('mail_sendmailmode', 'smtp')) {
- 'pipe' => ' -t',
+ 'pipe' => ' -t -i',
default => ' -bs',
};