about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-04-07 12:27:24 +0000
committerAlyssa Ross <hi@alyssa.is>2020-04-07 12:27:24 +0000
commit63b46356ad83703b604ca0d0492fc7bf778eb806 (patch)
tree9504d916ff98642f6cc61f45c536139bb595c26e
parent97bd8ceaffd6bccf098959a113a56e8c67738037 (diff)
downloadnixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.tar
nixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.tar.gz
nixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.tar.bz2
nixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.tar.lz
nixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.tar.xz
nixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.tar.zst
nixlib-63b46356ad83703b604ca0d0492fc7bf778eb806.zip
modules/postfix: directly deliver mail to me
Mail to hi@alyssa.is or hi+*@alyssa.is can just be dropped straight
into my maildir, rather than going through SMTP.
-rw-r--r--modules/workstation/mail/postfix/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/workstation/mail/postfix/default.nix b/modules/workstation/mail/postfix/default.nix
index 6741abb96cdf..0da8936cf1b3 100644
--- a/modules/workstation/mail/postfix/default.nix
+++ b/modules/workstation/mail/postfix/default.nix
@@ -9,6 +9,12 @@
   services.postfix.relayHost = "smtp.fastmail.com";
   services.postfix.relayPort = 465;
 
+  services.postfix.recipientDelimiter = "+";
+  services.postfix.config.home_mailbox = "mail/INBOX/";
+  services.postfix.virtual = ''
+    hi@alyssa.is qyliss
+  '';
+
   # NixOS links /var/lib/postfix/conf to /etc/postfix, but
   # postfix.service deletes /var/lib/postfix in an ExecStartPre, so we
   # can't keep files there without adding them to the store.