unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44553: Exim has no authenticators
@ 2020-11-10 13:45 divoplade
  2020-12-10 14:39 ` Arun Isaac
  0 siblings, 1 reply; 2+ messages in thread
From: divoplade @ 2020-11-10 13:45 UTC (permalink / raw)
  To: 44553

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

Dear guix,

Exim has no authenticator drivers. By default, they don't get included
in the binary, but in my case, I want to set up an internet site with
authenticated SMTP 
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-smtp_authentication.htm
. Authentication is necessary, otherwise the system is vulnerable to
spam abuse.

The fix would be to un-comment the following lines in the src/EDITME
(copied as Local/Makefile):

# AUTH_CRAM_MD5=yes
# AUTH_CYRUS_SASL=yes
# AUTH_DOVECOT=yes
# AUTH_EXTERNAL=yes
# AUTH_GSASL=yes
# AUTH_HEIMDAL_GSSAPI=yes
# AUTH_PLAINTEXT=yes
# AUTH_SPA=yes
# AUTH_TLS=yes

Unfortunately, CYRUS_SASL requires cyrus-sasl as a native input and
GSASL, gsasl. HEIMDAL_GSSAPI does not seem to build.

However, it is vital to have plaintext (it is the only one used in the
default exim configuration, 
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_default_configuration_file.html
) and it would be nice to have the other as authenticators. What do you
think?

Best regards,

divoplade 

[-- Attachment #2: 0001-gnu-exim-enable-some-authenticators.patch --]
[-- Type: text/x-patch, Size: 1300 bytes --]

From 5f1e0ea844a26a6e024443f3898969b8ab1048bb Mon Sep 17 00:00:00 2001
From: divoplade <d@divoplade.fr>
Date: Tue, 10 Nov 2020 14:21:17 +0100
Subject: [PATCH] gnu: exim: enable some authenticators

---
 gnu/packages/mail.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 488e714976..4eda49e72d 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1503,7 +1503,13 @@ delivery.")
                  (("(ZCAT_COMMAND=).*" all var)
                   (string-append var gzip "/bin/zcat\n"))
                  (("# (USE_GNUTLS(|_PC)=.*)" all line)
-                  (string-append line "\n")))
+                  (string-append line "\n"))
+                 (("# AUTH_CRAM_MD5=yes") "AUTH_CRAM_MD5=yes\n")
+                 (("# AUTH_DOVECOT=yes") "AUTH_DOVECOT=yes\n")
+                 (("# AUTH_EXTERNAL=yes") "AUTH_EXTERNAL=yes\n")
+                 (("# AUTH_PLAINTEXT=yes") "AUTH_PLAINTEXT=yes\n")
+                 (("# AUTH_SPA=yes") "AUTH_SPA=yes\n")
+                 (("# AUTH_TLS=yes") "AUTH_TLS=yes\n"))
                ;; This file has hard-coded relative file names for tools despite
                ;; the zcat configuration above.
                (substitute* '("src/exigrep.src")
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#44553: Exim has no authenticators
  2020-11-10 13:45 bug#44553: Exim has no authenticators divoplade
@ 2020-12-10 14:39 ` Arun Isaac
  0 siblings, 0 replies; 2+ messages in thread
From: Arun Isaac @ 2020-12-10 14:39 UTC (permalink / raw)
  To: divoplade, 44553-done

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]


Hi,

Thanks for your patch. I pushed to master with the following minor
changes.

- added copyright header for you
- made minor style change in code
- modified the commit message

Cheers!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-10 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 13:45 bug#44553: Exim has no authenticators divoplade
2020-12-10 14:39 ` Arun Isaac

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).