diff options
author | EuAndreh <eu@euandre.org> | 2023-03-16 18:32:32 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-16 18:32:32 -0300 |
commit | aa3244305d7bc6a6765a2f78fa8a3e50af8e2c9f (patch) | |
tree | 2ebe62a03843ba728c77bc66b0b2687bf5b3fc7d | |
parent | etc/nix/configuration.nix: Remove empty line separator of Postfix config (diff) | |
download | dotfiles-aa3244305d7bc6a6765a2f78fa8a3e50af8e2c9f.tar.gz dotfiles-aa3244305d7bc6a6765a2f78fa8a3e50af8e2c9f.tar.xz |
etc/guix/system.scm: Use default config of local Postfix from org-euandre channel
-rw-r--r-- | etc/guix/system.scm | 66 |
1 files changed, 11 insertions, 55 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm index 29b07be..ec5d78c 100644 --- a/etc/guix/system.scm +++ b/etc/guix/system.scm @@ -111,59 +111,6 @@ Seiko Epson Color Ink Jet Printers.") license:lgpl2.1)))) -(define master.cf #"- - # ============================================================================================================ - # service type private unpriv chroot wakeup maxproc command + args - # (yes) (yes) (no) (never) (100) - # ============================================================================================================= - - anvil unix - - n - 1 anvil - bounce unix - - n - 0 bounce - cleanup unix n - n - 0 cleanup - defer unix - - n - 0 bounce - discard unix - - n - - discard - error unix - - n - - error - flush unix n - n 1000? 0 flush - lmtp unix - - n - - lmtp - local unix - n n - - local - pickup unix n - n 60 1 pickup - proxymap unix - - n - - proxymap - proxywrite unix - - n - 1 proxymap - qmgr unix n - n 300 1 qmgr - relay unix - - n - - smtp - retry unix - - n - - error - rewrite unix - - n - - trivial-rewrite - scache unix - - n - 1 scache - showq unix n - n - - showq - smtp unix - - n - - smtp - smtp inet n - n - - smtpd -v -o syslog_name=postfix/smtp - tlsmgr unix - - n 1000? 1 tlsmgr - trace unix - - n - 0 bounce - verify unix - - n - 1 verify - virtual unix - n n - - virtual - postlog unix-dgram n - n - 1 postlogd - "#) - -(define main.cf #"- - compatibility_level = 3.6 - - 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 - "#) - - - (operating-system (kernel linux) (initrd microcode-initrd) @@ -219,8 +166,17 @@ Seiko Epson Color Ink Jet Printers.") (host "10.0.0.1" host-name))) (service queue:local-postfix-service-type (queue:postfix-configuration - (master.cf-file master.cf) - (main.cf-file main.cf))) + (main.cf-extra #"- + smtp_sender_dependent_authentication = yes + 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_sasl_mechanism_filter = login, plain + smtp_use_tls = yes + smtp_tls_security_level = encrypt + smtp_tls_note_starttls_offer = yes + "#))) (service mail-aliases-service-type '(("root" "andreh") ("andreh" "eu@euandre.org"))) |