aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan T <jan@jantuomi.fi>2025-06-23 11:44:03 +0000
committerJan Tuomi <jan@jantuomi.fi>2025-06-23 14:45:45 +0300
commitb3c6ca37500b52821b2b66147b22190414c09993 (patch)
tree08efb4bdd320e07b1ae7fdb79ef16c645231dcd2 /templates
Initial commit
Diffstat (limited to 'templates')
-rw-r--r--templates/aliases.j21
-rw-r--r--templates/auth.conf.j21
-rw-r--r--templates/dma.conf.j28
3 files changed, 10 insertions, 0 deletions
diff --git a/templates/aliases.j2 b/templates/aliases.j2
new file mode 100644
index 0000000..a9ac845
--- /dev/null
+++ b/templates/aliases.j2
@@ -0,0 +1 @@
+root: {{ dma_to_address }}
diff --git a/templates/auth.conf.j2 b/templates/auth.conf.j2
new file mode 100644
index 0000000..a1000ea
--- /dev/null
+++ b/templates/auth.conf.j2
@@ -0,0 +1 @@
+{{ smtp_user }}|{{ smtp_host }}:{{ smtp_password }}
diff --git a/templates/dma.conf.j2 b/templates/dma.conf.j2
new file mode 100644
index 0000000..dfaa04f
--- /dev/null
+++ b/templates/dma.conf.j2
@@ -0,0 +1,8 @@
+SMARTHOST {{ smtp_host }}
+PORT {{ smtp_port }}
+AUTHPATH /etc/dma/auth.conf
+SECURETRANSFER
+STARTTLS
+MAILNAME {{ dma_mail_hostname }}
+MASQUERADE {{ ansible_hostname }}@{{ dma_mail_hostname }}
+#NULLCLIENT