all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* TLS smpt encryption
@ 2006-09-04 10:41 Phillip Lord
  2006-09-06  9:17 ` Simon Josefsson
  0 siblings, 1 reply; 5+ messages in thread
From: Phillip Lord @ 2006-09-04 10:41 UTC (permalink / raw)




I've been having problems getting tls working with SMTP. I think that
there are failings into both the code base and the documentation for
the code base that are making this problem much harder. 



First, the defaults. To use TLS, you have to reconfigure things like
the ports manually, and have to do so in multiple places. So, for
example, from the smtpmail documentation.....


;;(setq send-mail-function 'smtpmail-send-it) ; if you use `mail'
;;(setq message-send-mail-function 'smtpmail-send-it) ; if you use message/Gnus
;;(setq smtpmail-default-smtp-server "YOUR SMTP HOST")
;;(setq smtpmail-local-domain "YOUR DOMAIN NAME")
;;(setq smtpmail-sendto-domain "YOUR DOMAIN NAME")
;;(setq smtpmail-debug-info t) ; only to debug problems
;;(setq smtpmail-auth-credentials  ; or use ~/.authinfo
;;      '(("YOUR SMTP HOST" 25 "username" "password")))
;;(setq smtpmail-starttls-credentials
;;      '(("YOUR SMTP HOST" 25 "~/.my_smtp_tls.key" "~/.my_smtp_tls.cert")))




Now authentication mail often uses a different port. So you have to
change this. But this is done in smtpmail-smtp-service. The 25's in
auth-credentials are only used to determine which credentials should
be used. Confusing. I don't know what the standards are, but most mail
readers you just click "SSL/TLS encryption" and the ports get set, or
guessed, automatically. 


Second, the documentation. Take...

;;(setq smtpmail-starttls-credentials
;;      '(("YOUR SMTP HOST" 25 "~/.my_smtp_tls.key" "~/.my_smtp_tls.cert")))


So, whats .my_smtp_tls.key then? Where does it come from? How do I get
it? Can I use gnutls to generate it? I have no idea at all. Further
investigation suggests that actually you can leave this blank, and it
should still work. 

Third, it would be nice if the documentation made clear that "TLS"
appears to be the same thing as "SSL" -- at least in the context of
SMTP servers. I was under the impression for a number of months that I
could not use encryption for SMTP as our local server requires SSL,
which smtpmail doesn't do. Actually, it uses TLS. Some documentation
saying "if you are required to use SSL, this is probably what you
want". 

Finally, it doesn't seem to work on windows. I spent three hours with
a debugger a couple of days ago -- I figured this was the only way to
see if I had the configuration right. It appears that starttls.el uses
Unix specific process handling, so won't work with NTEmacs. I've been
told that you can get this working with cygwin by calling out to
kill.exe which works around the problem. Bit ugly! I realise that
fixing this properly may take some time, but updating the
documentation would be relatively quick!

At the moment, I have access to a non TLS based stream, but this isn't
going to last for ever. I suspect that many people are in the same
boat. 

Thanks for your time!

Phil

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

end of thread, other threads:[~2006-09-11 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04 10:41 TLS smpt encryption Phillip Lord
2006-09-06  9:17 ` Simon Josefsson
2006-09-06 12:07   ` Phillip Lord
2006-09-11 14:00     ` Simon Josefsson
2006-09-11 14:42       ` Phillip Lord

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.