You are not logged in.
Trying to send email to fastmail's smtp servers from emacs-version
GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2013-08-15 on arch
(emacs-lucid 24.3-4) my *Messages* buffer shows:
Sending via mail...
gnutls.c: [1] Note that the security level of the Diffie-Hellman key exchange has been lowered to 256 bits and this may allow decryption of the session data
235 2.0.0 OK
250 2.1.0 Ok
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
Sending email
Sending email done
250 2.0.0 Ok: queued as 4E1BFC00E84
221 2.0.0 ByeI can't reproduce that "Note" when running
gnutls-cli --debug 1 --starttls --crlf mail.messagingengine.com -p submissionfrom the same machine: http://sprunge.us/TeYM
When emailing from Xubuntu with emacs-version
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-07-27 on roseapple, modified by Debian
I do not get the error message.
Both emacsen return true for gnutls-available-p and have starttls-use-gnutls.
On the arch box, I sometimes also get the "Note" when typing "g" in gnus and fetching new news from gmane, so it doesn't seem to be specific to fastmail or SMTP.
Why am I getting this message and should I do anything about it?
Last edited by unhammer (2013-10-31 07:39:43)
Offline
Figured it out, I think. C-h v gnutls-min-prime-bits:
gnutls-min-prime-bits is a variable defined in `gnutls.el'.
Its value is 256
Documentation:
Minimum number of prime bits accepted by GnuTLS for key exchange.
During a Diffie-Hellman handshake, if the server sends a prime
number with fewer than this number of bits, the handshake is
rejected. (The smaller the prime number, the less secure the
key exchange is against man-in-the-middle attacks.)
A value of nil says to use the default GnuTLS value.This is 256 on both Xubuntu and Arch, but only on Arch does it actually complain about it being 256. https://www.gnu.org/software/emacs/manu … nutls.html and "info gnutls" says the default value should be nil (ie. the gnutls default, which is apparantly higher).
Why it is set to 256 is revealed in the source code:
(defcustom gnutls-min-prime-bits 256
;; Several mail servers send fewer bits than the GnuTLS default.
;; Currently, 256 appears to be a reasonable choice (Bug#11267).Bug 11267 here.
In any case, (setq gnutls-min-prime-bits nil) or (setq gnutls-min-prime-bits 2048) makes the error message go away.
Last edited by unhammer (2013-10-31 08:10:27)
Offline