File tree Expand file tree Collapse file tree 7 files changed +54
-12
lines changed Expand file tree Collapse file tree 7 files changed +54
-12
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,18 @@ apache:
55
55
handling : selfsigned
56
56
# Sample LetsEncrypt config, because include_role will not merge defaults these all need providing:
57
57
# handling: letsencrypt
58
- # http_01_port: 5000
58
+ # http_01_port: 80
59
59
# autorenew: true
60
60
# email: sysadm@codeenigma.com
61
- # services: []
61
+ # services:
62
+ # - apache2
62
63
# web_server: standalone
63
64
# certbot_register_command: "/usr/bin/certbot certonly --agree-tos --preferred-challenges http -n"
64
65
# certbot_renew_command: "/usr/bin/certbot certonly --agree-tos --force-renew"
65
66
# reload_command: restart
66
67
# reload:
67
- # - apache
68
+ # - apache2
69
+ # on_calendar: "Mon *-*-* 04:00:00"
68
70
is_default : true
69
71
basic_auth :
70
72
auth_enabled : false
Original file line number Diff line number Diff line change 1
1
# Postfix
2
- Installs and configures Postfix for sending mail. Mail sending is disabled by default.
2
+ Installs and configures Postfix for sending mail. Mail sending is disabled by default using transport maps.
3
+
4
+ Full TLS SMTP support is optional by enabling SSL.
3
5
4
6
<!-- TOC-->
5
7
<!-- ENDTOC-->
@@ -36,6 +38,13 @@ postfix:
36
38
aliases : []
37
39
# - user: root
38
40
# alias: admin@example.com
41
+ # Basic optional SSL handling - does not currently use the SSL role, as it is likely being handled elsewhere
42
+ ssl :
43
+ enabled : false
44
+ smtp_tls_cert_file : " " # full path to certificate, e.g. /etc/letsencrypt/live/acme.com/fullchain.pem
45
+ smtp_tls_key_file : " " # full path to key, e.g. /etc/letsencrypt/live/acme.com/privkey.pem
46
+ smtp_tls_CApath : /etc/ssl/certs
47
+ smtp_tls_CAfile : /etc/ssl/certs/ca-certificates.crt
39
48
40
49
```
41
50
Original file line number Diff line number Diff line change @@ -55,16 +55,18 @@ apache:
55
55
handling : selfsigned
56
56
# Sample LetsEncrypt config, because include_role will not merge defaults these all need providing:
57
57
# handling: letsencrypt
58
- # http_01_port: 5000
58
+ # http_01_port: 80
59
59
# autorenew: true
60
60
# email: sysadm@codeenigma.com
61
- # services: []
61
+ # services:
62
+ # - apache2
62
63
# web_server: standalone
63
64
# certbot_register_command: "/usr/bin/certbot certonly --agree-tos --preferred-challenges http -n"
64
65
# certbot_renew_command: "/usr/bin/certbot certonly --agree-tos --force-renew"
65
66
# reload_command: restart
66
67
# reload:
67
- # - apache
68
+ # - apache2
69
+ # on_calendar: "Mon *-*-* 04:00:00"
68
70
is_default : true
69
71
basic_auth :
70
72
auth_enabled : false
Original file line number Diff line number Diff line change @@ -45,16 +45,18 @@ apache:
45
45
handling : selfsigned
46
46
# Sample LetsEncrypt config, because include_role will not merge defaults these all need providing:
47
47
# handling: letsencrypt
48
- # http_01_port: 5000
48
+ # http_01_port: 80
49
49
# autorenew: true
50
50
# email: sysadm@codeenigma.com
51
- # services: []
51
+ # services:
52
+ # - apache2
52
53
# web_server: standalone
53
54
# certbot_register_command: "/usr/bin/certbot certonly --agree-tos --preferred-challenges http -n"
54
55
# certbot_renew_command: "/usr/bin/certbot certonly --agree-tos --force-renew"
55
56
# reload_command: restart
56
57
# reload:
57
- # - apache
58
+ # - apache2
59
+ # on_calendar: "Mon *-*-* 04:00:00"
58
60
is_default : true
59
61
basic_auth :
60
62
auth_enabled : false
Original file line number Diff line number Diff line change 1
1
# Postfix
2
- Installs and configures Postfix for sending mail. Mail sending is disabled by default.
2
+ Installs and configures Postfix for sending mail. Mail sending is disabled by default using transport maps.
3
+
4
+ Full TLS SMTP support is optional by enabling SSL.
3
5
4
6
<!-- TOC-->
5
7
<!-- ENDTOC-->
@@ -36,6 +38,13 @@ postfix:
36
38
aliases : []
37
39
# - user: root
38
40
# alias: admin@example.com
41
+ # Basic optional SSL handling - does not currently use the SSL role, as it is likely being handled elsewhere
42
+ ssl :
43
+ enabled : false
44
+ smtp_tls_cert_file : " " # full path to certificate, e.g. /etc/letsencrypt/live/acme.com/fullchain.pem
45
+ smtp_tls_key_file : " " # full path to key, e.g. /etc/letsencrypt/live/acme.com/privkey.pem
46
+ smtp_tls_CApath : /etc/ssl/certs
47
+ smtp_tls_CAfile : /etc/ssl/certs/ca-certificates.crt
39
48
40
49
```
41
50
Original file line number Diff line number Diff line change @@ -27,3 +27,10 @@ postfix:
27
27
aliases : []
28
28
# - user: root
29
29
# alias: admin@example.com
30
+ # Basic optional SSL handling - does not currently use the SSL role, as it is likely being handled elsewhere
31
+ ssl :
32
+ enabled : false
33
+ smtp_tls_cert_file : " " # full path to certificate, e.g. /etc/letsencrypt/live/acme.com/fullchain.pem
34
+ smtp_tls_key_file : " " # full path to key, e.g. /etc/letsencrypt/live/acme.com/privkey.pem
35
+ smtp_tls_CApath : /etc/ssl/certs
36
+ smtp_tls_CAfile : /etc/ssl/certs/ca-certificates.crt
Original file line number Diff line number Diff line change @@ -37,9 +37,20 @@ non_smtpd_milters = inet:localhost:8891
37
37
smtp_sasl_auth_enable = yes
38
38
smtp_sasl_security_options = noanonymous
39
39
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
40
+ {% endif %}
41
+ {% if postfix .use_ses or postfix .ssl .enabled %}
40
42
smtp_use_tls = yes
41
43
smtp_tls_note_starttls_offer = yes
42
- smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
44
+ smtp_tls_CApath = {{ postix.ssl.smtp_tls_CApath }}
45
+ smtp_tls_CAfile = {{ postix.ssl.smtp_tls_CAfile }}
46
+ {% endif %}
47
+ {% if postfix .ssl .enabled %}
48
+ smtp_tls_cert_file = {{ postix.ssl.smtp_tls_cert_file }}
49
+ smtp_tls_key_file = {{ postix.ssl.smtp_tls_key_file }}
50
+ smtpd_tls_cert_file = {{ postix.ssl.smtp_tls_cert_file }}
51
+ smtpd_tls_key_file = {{ postix.ssl.smtp_tls_key_file }}
52
+ smtpd_tls_CApath = {{ postix.ssl.smtp_tls_CApath }}
53
+ smtpd_tls_CAfile = {{ postix.ssl.smtp_tls_CAfile }}
43
54
{% endif %}
44
55
{% if (is_local is defined ) and is_local %}
45
56
# Force all mail to ce-dev user.
You can’t perform that action at this time.
0 commit comments