From 212e876ccb472b8c4e275d230a48ad00bacadf87 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 4 Apr 2021 11:58:25 +0000 Subject: modules/workstation/postfix: add canonical mapping Mail sent through my workstation postfix instances would have an envelope sender of e.g. qyliss@x220.qyliss.net, which would cause some sites to reject my mail or mark it as spam, since that's not a publicly routable hostname. This seems like something that every "how to use Postfix with Gmail as a smarthost" or whatever article should cover, but none of them do, so I guess everybody else who uses Postfix this way just has a slightly broken setup. Anyway, now messages from the local "qyliss" user will be rewritten to be from my FastMail address, which should resolve this problem. --- modules/workstation/mail/postfix/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/workstation/mail/postfix/default.nix') diff --git a/modules/workstation/mail/postfix/default.nix b/modules/workstation/mail/postfix/default.nix index 0da8936cf1b3..335f33b3eec6 100644 --- a/modules/workstation/mail/postfix/default.nix +++ b/modules/workstation/mail/postfix/default.nix @@ -11,6 +11,9 @@ services.postfix.recipientDelimiter = "+"; services.postfix.config.home_mailbox = "mail/INBOX/"; + services.postfix.canonical = '' + qyliss hi@alyssa.is + ''; services.postfix.virtual = '' hi@alyssa.is qyliss ''; -- cgit 1.4.1