aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-13 14:41:13 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-13 14:41:13 -0500
commitc96ae38ab33364bacb64bb60c2b4cb27fcfb6802 (patch)
treeaf01f0afb9e99d7ca9d4d40ad5ec25d276904a0b
parent/etc/iked.conf template (diff)
/etc/smtpd.conf template
Diffstat (limited to '')
-rw-r--r--etc/smtpd.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/smtpd.conf b/etc/smtpd.conf
new file mode 100644
index 0000000..4cb80fb
--- /dev/null
+++ b/etc/smtpd.conf
@@ -0,0 +1,23 @@
+table aliases file:/etc/aliases
+table secrets file:/etc/smtpd.conf.auth
+
+action "local" maildir alias <aliases>
+action "relay-rak" relay host smtp+tls://asteria@smtp.rak.ac:587 auth <secrets>
+action "relay-alumni" relay host smtp+tls://alumni@smtp.gmail.com:587 auth <secrets>
+action "relay-gmail" relay host smtp+tls://gmail@smtp.gmail.com:587 auth <secrets>
+action "relay-socs" relay host smtp+tls://socs@mail.cs.mcgill.ca:587 auth <secrets>
+action "relay-queensu" relay host smtp+tls://queensu@smtp.office365.com:587 \
+ auth <secrets> mail-from "9rak@queensu.ca"
+
+match for local action "local"
+match from mail-from "@rak.ac" for any action "relay-rak"
+match from mail-from "@ryanak.ca" for any action "relay-rak"
+match from mail-from "@debian.org" for any action "relay-rak"
+match from mail-from "@gmail.com" for any action "relay-gmail"
+match from mail-from "@cs.queensu.ca" for any action "relay-gmail"
+match from mail-from "@queensu.ca" for any action "relay-queensu"
+match from mail-from regex "ryanakca@(kubuntu.org|ubuntu.com)" for any action "relay-rak"
+match from mail-from regex "rkavanagh?@(cs|alumni)\.cmu\.edu" for any action "relay-alumni"
+match from mail-from regex "(ryank|rkavanagh)@cs\.mcgill\.ca" for any action "relay-socs"
+
+match from local for any action "relay-rak"