diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-04 11:58:25 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-04 12:07:35 +0000 |
commit | 212e876ccb472b8c4e275d230a48ad00bacadf87 (patch) | |
tree | 8487c4d85a83455976b987dd2a3042fdba0748a1 /modules/workstation/mail/postfix/default.nix | |
parent | 7c52302f4707ddf83f8367ddcf6c9a8a3fd98b95 (diff) | |
download | nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.tar nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.tar.gz nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.tar.bz2 nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.tar.lz nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.tar.xz nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.tar.zst nixlib-212e876ccb472b8c4e275d230a48ad00bacadf87.zip |
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.
Diffstat (limited to 'modules/workstation/mail/postfix/default.nix')
-rw-r--r-- | modules/workstation/mail/postfix/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
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 ''; |