aboutsummaryrefslogtreecommitdiff
path: root/app/email
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-03-14 10:02:22 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-03-14 10:02:22 +0100
commit9883d85c2a96f946679a6f60cfefefb498ae18d5 (patch)
tree63fdd1ea9cc13fea2e1ccb681cf993e355544a77 /app/email
parenta1c6c33d735761f4897dd64d2145f21913ad84a6 (diff)
downloadinfrastructure-9883d85c2a96f946679a6f60cfefefb498ae18d5.tar.gz
infrastructure-9883d85c2a96f946679a6f60cfefefb498ae18d5.zip
Small postfix modifications
Diffstat (limited to 'app/email')
-rw-r--r--app/email/config/postfix/main.cf5
-rw-r--r--app/email/deploy/email.hcl7
2 files changed, 6 insertions, 6 deletions
diff --git a/app/email/config/postfix/main.cf b/app/email/config/postfix/main.cf
index 4204cb4..1fb4d01 100644
--- a/app/email/config/postfix/main.cf
+++ b/app/email/config/postfix/main.cf
@@ -21,8 +21,9 @@ compatibility_level = 2
#===
# TLS parameters
#===
-smtpd_tls_cert_file=/etc/ssl/certs/postfix.crt
-smtpd_tls_key_file=/etc/ssl/private/postfix.key
+smtpd_tls_cert_file=/etc/ssl/postfix.crt
+smtpd_tls_key_file=/etc/ssl/postfix.key
+smtpd_tls_dh1024_param_file=auto
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
diff --git a/app/email/deploy/email.hcl b/app/email/deploy/email.hcl
index 96f9015..c69f51c 100644
--- a/app/email/deploy/email.hcl
+++ b/app/email/deploy/email.hcl
@@ -259,8 +259,7 @@ job "email" {
command = "postfix"
args = [ "start-fg" ]
volumes = [
- "secrets/ssl/certs:/etc/ssl/certs",
- "secrets/ssl/private:/etc/ssl/private",
+ "secrets/ssl:/etc/ssl",
"secrets/postfix:/etc/postfix-conf",
"/dev/log:/dev/log"
]
@@ -382,13 +381,13 @@ job "email" {
# --- secrets ---
template {
data = "{{ key \"secrets/email/postfix/postfix.crt\" }}"
- destination = "secrets/ssl/certs/postfix.crt"
+ destination = "secrets/ssl/postfix.crt"
perms = "400"
}
template {
data = "{{ key \"secrets/email/postfix/postfix.key\" }}"
- destination = "secrets/ssl/private/postfix.key"
+ destination = "secrets/ssl/postfix.key"
perms = "400"
}
}