about summary refs log tree commit diff
path: root/modules/workstation/mail/postfix/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2022-10-25 13:44:36 +0000
committerAlyssa Ross <hi@alyssa.is>2023-02-08 13:46:08 +0000
commit19fb77fd6f21996d8146b138cd663fb92442fa57 (patch)
tree270b1735a08909ff10869fc7c21f5fbc1a4326c7 /modules/workstation/mail/postfix/default.nix
parent8b32ce9cd284a2c6ed1092a63205a21aba244bc3 (diff)
downloadnixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.tar
nixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.tar.gz
nixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.tar.bz2
nixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.tar.lz
nixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.tar.xz
nixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.tar.zst
nixlib-19fb77fd6f21996d8146b138cd663fb92442fa57.zip
modules/workstation/postfix: send unikie mail
Diffstat (limited to 'modules/workstation/mail/postfix/default.nix')
-rw-r--r--modules/workstation/mail/postfix/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/workstation/mail/postfix/default.nix b/modules/workstation/mail/postfix/default.nix
index 335f33b3eec6..8d885fa39af1 100644
--- a/modules/workstation/mail/postfix/default.nix
+++ b/modules/workstation/mail/postfix/default.nix
@@ -28,6 +28,11 @@
   '';
   services.postfix.config.smtp_sasl_password_maps = "hash:/etc/postfix/sasl_passwd";
 
+  services.postfix.config.sender_dependent_relayhost_maps = "hash:/etc/postfix/sender_dependent_relayhost";
+  services.postfix.mapFiles.sender_dependent_relayhost = pkgs.writeText "sender_dependent_relayhost" ''
+    @unikie.com [smtp.gmail.com]:465
+  '';
+
   services.postfix.config.smtp_sasl_auth_enable = true;
   services.postfix.config.smtp_sasl_tls_security_options = "noanonymous";
   services.postfix.config.smtp_tls_security_level = "encrypt";