From c96ae38ab33364bacb64bb60c2b4cb27fcfb6802 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 14:41:13 -0500 Subject: /etc/smtpd.conf template --- etc/smtpd.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 etc/smtpd.conf (limited to 'etc') 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 +action "relay-rak" relay host smtp+tls://asteria@smtp.rak.ac:587 auth +action "relay-alumni" relay host smtp+tls://alumni@smtp.gmail.com:587 auth +action "relay-gmail" relay host smtp+tls://gmail@smtp.gmail.com:587 auth +action "relay-socs" relay host smtp+tls://socs@mail.cs.mcgill.ca:587 auth +action "relay-queensu" relay host smtp+tls://queensu@smtp.office365.com:587 \ + auth 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" -- cgit v1.2.3