summaryrefslogtreecommitdiffstats
path: root/lucifer.kyriasis.com/smtpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'lucifer.kyriasis.com/smtpd.conf')
-rw-r--r--lucifer.kyriasis.com/smtpd.conf70
1 files changed, 70 insertions, 0 deletions
diff --git a/lucifer.kyriasis.com/smtpd.conf b/lucifer.kyriasis.com/smtpd.conf
new file mode 100644
index 0000000..0553210
--- /dev/null
+++ b/lucifer.kyriasis.com/smtpd.conf
@@ -0,0 +1,70 @@
+##
+# PKI information
+#
+
+pki lucifer.kyriasis.com certificate "/etc/smtpd/certs/lucifer.kyriasis.com.crt"
+pki lucifer.kyriasis.com key "/etc/smtpd/certs/lucifer.kyriasis.com.key"
+pki lucifer.kyriasis.com ca "/etc/smtpd/certs/sub.class1.server.ca.pem"
+
+
+##
+# Listen directives
+#
+
+listen on eth0 port 25 tls pki lucifer.kyriasis.com auth-optional
+listen on eth0 port 587 tls-require pki lucifer.kyriasis.com auth
+listen on eth0 port 465 smtps pki lucifer.kyriasis.com auth
+
+listen on lo port 10029 tag DKIM-OUT
+
+listen on localhost
+
+
+##
+# Tables
+#
+
+# If you edit the file, you have to run "smtpctl update table users"
+table users file:/etc/smtpd/users
+
+
+##
+# Relay for hosts we act as a backup for
+#
+
+accept from any \
+ for domain "theos.kyriasis.com" \
+ relay backup lucifer.kyriasis.com
+
+
+##
+# Incoming
+#
+
+# Handle emails directly to local domain
+accept from any \
+ for domain "lucifer.kyriasis.com" \
+ deliver to mda "/usr/bin/maildrop -d %{user.username}"
+
+# Handle incoming to top-level domains
+accept from any \
+ for domain { kyriasis.com, the-tk.com } \
+ virtual <users> \
+ deliver to mda "/usr/bin/maildrop -d %{user.username}"
+
+# Handle local mail
+accept from local \
+ for local \
+ deliver to mda "/usr/bin/maildrop -d %{user.username}"
+
+
+##
+# Outgoing
+#
+
+accept tagged DKIM-OUT \
+ for any \
+ relay
+
+accept for any \
+ relay via smtp://127.0.0.1:10028