diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-10-25 13:44:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-08 13:46:08 +0000 |
commit | 19fb77fd6f21996d8146b138cd663fb92442fa57 (patch) | |
tree | 270b1735a08909ff10869fc7c21f5fbc1a4326c7 /modules/workstation/mail/postfix/default.nix | |
parent | 8b32ce9cd284a2c6ed1092a63205a21aba244bc3 (diff) | |
download | nixlib-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.nix | 5 |
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"; |