Skip to content

Commit 8e6e114

Browse files
author
Dave Page
committed
Allow SMTP_TIMEOUT to set mail_smtptimeout config
1 parent 50bf6dc commit 8e6e114

File tree

11 files changed

+11
-0
lines changed

11 files changed

+11
-0
lines changed

.config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

30/apache/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

30/fpm-alpine/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

30/fpm/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

31/apache/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

31/fpm-alpine/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

31/fpm/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

32/apache/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

32/fpm-alpine/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

32/fpm/config/smtp.config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'mail_smtpmode' => 'smtp',
55
'mail_smtphost' => getenv('SMTP_HOST'),
66
'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25),
7+
'mail_smtptimeout' => getenv('SMTP_TIMEOUT') ?: 30,
78
'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '',
89
'mail_smtpauth' => getenv('SMTP_NAME') && (getenv('SMTP_PASSWORD') || getenv('SMTP_PASSWORD_FILE')),
910
'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN',

0 commit comments

Comments
 (0)