diff --git a/ansible/templates/catchall-smtpd.conf b/ansible/templates/catchall-smtpd.conf new file mode 100644 index 000000000..6266a572f --- /dev/null +++ b/ansible/templates/catchall-smtpd.conf @@ -0,0 +1,7 @@ +table vroot { "@" = root } + +listen on lo0 + +action "to_root" mbox virtual + +match from any for any action "to_root" diff --git a/ansible/templates/relay-smtpd.conf b/ansible/templates/relay-smtpd.conf new file mode 100644 index 000000000..e21861523 --- /dev/null +++ b/ansible/templates/relay-smtpd.conf @@ -0,0 +1,6 @@ +table aliases db:/etc/mail/aliases.db +listen on lo0 +action "local" mbox alias +action "relay" relay host smtp://smtp-relay.gmail.com +match for local action "local" +match for any action "relay"