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) => {
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' +
You can’t perform that action at this time.
0 commit comments