Skip to content

Commit 31cf0c9

Browse files
authored
Merge pull request #328 from gstrauss/postfix-smtpd_tls_chain_files
postfix smtpd_tls_chain_files
2 parents 0612257 + e15fd55 commit 31cf0c9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/js/helpers/postfix.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@ export default (form, output) => {
1010
var conf =
1111
'# '+output.header+'\n'+
1212
'# '+output.link+'\n'+
13-
'smtpd_tls_auth_only = yes\n'+
13+
'smtpd_tls_auth_only = yes\n';
14+
if (minver("3.4.0", form.serverVersion)) {
15+
conf +=
16+
'smtpd_tls_chain_files =\n'+
17+
' /path/to/private_key,\n'+
18+
' /path/to/signed_cert_plus_intermediates\n';
19+
}
20+
else {
21+
conf +=
1422
'smtpd_tls_cert_file = /path/to/signed_cert_plus_intermediates\n'+
15-
'smtpd_tls_key_file = /path/to/private_key\n'+
23+
'smtpd_tls_key_file = /path/to/private_key\n';
24+
}
25+
conf +=
1626
'smtpd_tls_security_level = may\n'+
1727
'smtpd_tls_mandatory_protocols = '+protos+'\n'+
1828
'smtpd_tls_protocols = '+protos+'\n'+

0 commit comments

Comments
 (0)