Skip to content

Commit 1174ba6

Browse files
authored
Merge pull request #118 from andif888/master
feature: smtp_tls_wrappermode for relayhost_port 465
2 parents 2911fc8 + f2ea503 commit 1174ba6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ None
5858
* `postfix_sasl_mechanism_filter` [default: `''`]: SMTP client SASL authentication mechanism filter ([see](http://www.postfix.org/postconf.5.html#smtp_sasl_mechanism_filter))
5959

6060
* `postfix_smtp_tls_security_level` [default: `encrypt`]: The default SMTP TLS security level for the Postfix SMTP client ([see](http://www.postfix.org/postconf.5.html#smtp_tls_security_level))
61+
* `postfix_smtp_tls_wrappermode` [default: `false`]: Request that the Postfix SMTP client connects using the legacy SMTPS protocol instead of using the STARTTLS command ([see](http://www.postfix.org/postconf.5.html#smtp_tls_wrappermode))
6162
* `postfix_smtp_tls_note_starttls_offer` [default: `true`]: Log the hostname of a remote SMTP server that offers STARTTLS, when TLS is not already enabled for that server ([see](http://www.postfix.org/postconf.5.html#smtp_tls_note_starttls_offer))
6263
* `postfix_smtp_tls_cafile` [optional]: A file containing CA certificates of root CAs trusted to sign either remote SMTP server certificates or intermediate CA certificates (e.g. `/etc/ssl/certs/ca-certificates.crt`)
6364

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ postfix_sasl_tls_security_options: noanonymous
3939
postfix_sasl_mechanism_filter: ''
4040

4141
postfix_smtp_tls_security_level: encrypt
42+
postfix_smtp_tls_wrappermode: false
4243
postfix_smtp_tls_note_starttls_offer: true
4344

4445
postfix_inet_interfaces: all

templates/etc/postfix/main.cf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ smtp_sasl_mechanism_filter = {{ postfix_sasl_mechanism_filter }}
8888
{% if postfix_relaytls %}
8989
smtp_use_tls = {{ postfix_relaytls | bool | ternary('yes', 'no') }}
9090
smtp_tls_security_level = {{ postfix_smtp_tls_security_level }}
91+
smtp_tls_wrappermode = {{ postfix_smtp_tls_wrappermode | bool | ternary('yes', 'no') }}
9192
smtp_tls_note_starttls_offer = {{ postfix_smtp_tls_note_starttls_offer | bool | ternary('yes', 'no') }}
9293
{% if postfix_smtp_tls_cafile is defined %}
9394
smtp_tls_CAfile = {{ postfix_smtp_tls_cafile }}

0 commit comments

Comments
 (0)