Skip to content

Commit

Permalink
fix SMTP_PASSWORD_FILE not triggering auth activation (nextcloud#1614)
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdi Benadel <[email protected]>

Signed-off-by: Mehdi Benadel <[email protected]>
  • Loading branch information
Murazaki authored and ananace committed May 10, 2024
1 parent 96e9d6d commit 198e3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/smtp.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'mail_smtphost' => getenv('SMTP_HOST'),
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
'mail_smtpauth' => getenv('SMTP_NAME') && getenv('SMTP_PASSWORD'),
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || (getenv('SMTP_PASSWORD_FILE') && file_exists(getenv('SMTP_PASSWORD_FILE')))),
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',
'mail_smtpname' => getenv('SMTP_NAME') ?: '',
'mail_from_address' => getenv('MAIL_FROM_ADDRESS'),
Expand Down

0 comments on commit 198e3c6

Please sign in to comment.