From 19fb77fd6f21996d8146b138cd663fb92442fa57 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 25 Oct 2022 13:44:36 +0000 Subject: modules/workstation/postfix: send unikie mail --- modules/workstation/mail/postfix/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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"; -- cgit 1.4.1