File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,19 @@ export default (form, output) => {
10
10
var conf =
11
11
'# ' + output . header + '\n' +
12
12
'# ' + 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 +=
14
22
'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 +=
16
26
'smtpd_tls_security_level = may\n' +
17
27
'smtpd_tls_mandatory_protocols = ' + protos + '\n' +
18
28
'smtpd_tls_protocols = ' + protos + '\n' +
You can’t perform that action at this time.
0 commit comments