diff options
author | Chloe Brown <chloe.brown.00@outlook.com> | 2022-08-21 11:47:15 +0100 |
---|---|---|
committer | Chloe Brown <chloe.brown.00@outlook.com> | 2022-08-21 11:47:15 +0100 |
commit | 3547f940beaca44c2edfe64c74ce0954e85111c3 (patch) | |
tree | 076de3ef66af6234335e6e782f602499a10f85d2 | |
parent | 7c48211f5a5da5324b9d5b9c1035ba8c066e2197 (diff) |
exim: use OpenSSL instead of GnuTLS.
-rw-r--r-- | yellowsquid/packages/mail.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yellowsquid/packages/mail.scm b/yellowsquid/packages/mail.scm index abd03e4..966822b 100644 --- a/yellowsquid/packages/mail.scm +++ b/yellowsquid/packages/mail.scm @@ -1,5 +1,6 @@ (define-module (yellowsquid packages mail) #:use-module ((gnu packages mail) #:prefix gnu:) + #:use-module (gnu packages tls) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix utils)) @@ -7,6 +8,9 @@ (define-public exim (package (inherit gnu:exim) + (inputs (modify-inputs (package-inputs gnu:exim) + (delete "gnutls" "gnutls-dane") + (append openssl))) (arguments (substitute-keyword-arguments (package-arguments gnu:exim) ((#:phases phases) @@ -19,6 +23,12 @@ ;; /etc/exim.conf has to be first or it is never used. (("(CONFIGURE_FILE=).*" all var) (string-append var "/etc/exim.conf:" out "/etc/exim.conf\n")) + ;; Use openssl instead of gnutls + (("USE_GNUTLS(|_PC)=.*" all) + (string-append "# " all "\n")) + (("# (USE_OPENSSL(|_PC)=.*)" all line) + (string-append line "\n")) + ;; Enable LMTP (("# (TRANSPORT_LMTP=yes)" all line) line))))) (add-after 'install 'install-config (lambda* (#:key outputs #:allow-other-keys) |