diff options
author | EuAndreh <eu@euandre.org> | 2023-03-16 16:54:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-16 16:54:36 -0300 |
commit | 89c428c80e15e84e675f92d3d55ad4856be5a626 (patch) | |
tree | 31b131aaf9e2dfbbb37b8a9638307b5e357d2c76 | |
parent | etc/guix/system.scm: Remove ad-hoc service creating /var/lib/andreh (diff) | |
download | dotfiles-89c428c80e15e84e675f92d3d55ad4856be5a626.tar.gz dotfiles-89c428c80e15e84e675f92d3d55ad4856be5a626.tar.xz |
etc/nix/configuration.nix: Add configuration for proper local Postfix + remote relays
-rw-r--r-- | etc/nix/configuration.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/nix/configuration.nix b/etc/nix/configuration.nix index 05970ad..a2ad09b 100644 --- a/etc/nix/configuration.nix +++ b/etc/nix/configuration.nix @@ -79,6 +79,25 @@ postfix = { enable = true; + extraConfig = '' + mynetworks = 127.0.0.0/8 + + header_checks = regexp:{ { /^Received:.*/ IGNORE }, { /^X-Originating-IP:.*/ IGNORE } } + + sender_dependent_relayhost_maps = hash:/var/lib/private/postfix/relayhosts-maps + smtp_sasl_password_maps = hash:/var/lib/private/postfix/sasl-password + smtp_sasl_auth_enable = yes + smtp_sasl_security_options = noanonymous + smtp_tls_security_level = encrypt + + smtp_tls_note_starttls_offer = yes + smtp_use_tls = yes + smtp_sender_dependent_authentication = yes + smtp_sasl_mechanism_filter = login, plain + ''; + config = { + smtp_tls_security_level = "encrypt"; + }; extraAliases = '' root: andreh andreh: eu@euandre.org |