From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/6908 Path: news.gmane.org!not-for-mail From: Jamie Riden Newsgroups: gmane.emacs.gnus.user Subject: Re: SMTP-AUTH and STARTTLS Date: 14 Mar 2006 11:22:42 +1300 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <874q22dlxp.fsf@localhost.localdomain> References: Reply-To: jamesr@europe.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142366672 4263 80.91.229.2 (14 Mar 2006 20:04:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2006 20:04:32 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Mar 14 21:04:24 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJFkE-000277-2k for gegu-info-gnus-english@m.gmane.org; Tue, 14 Mar 2006 21:03:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJFkD-0006fw-F4 for gegu-info-gnus-english@m.gmane.org; Tue, 14 Mar 2006 15:03:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!sn-xt-sjc-03!sn-xt-sjc-12!sn-xt-sjc-08!sn-post-01!supernews.com!news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 96 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77091 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:6908 Archived-At: Simon Josefsson writes: > Charles Collicutt writes: > > > "Emily Jackson" writes: > >> To use TLS you need to have either the starttls command-line tool > >> (available from ) or > >> gnutls (can be installed via fink [if you use fink]) installed. I have > >> the former installed and TLS works for me (at least it did the last time > > > > I have GnuTLS installed and I just installed starttls-0.9 as well for > > good measure. Still no joy though. > > > > I just tried switching to a different SMTP server and found that Gnus > > did not try to authenticate at all. My normal SMTP server is the same > > server that I retrieve my mail from so it has an entry in my .authinfo > > file, evidently Gnus was only authenticating because of that. > > > > smtpmail-auth-credentials and smtpmail-starttls-credentials both seem to > > be completely ignored. I checked smtpmail.el and I do have a version > > that claims to use those variables (as I'd expect, since they are > > documented in the Info file.) > > > > Thank you very much for your help but I still can't work out what is > > going wrong. Oh well. > > Did you load the correct smtpmail.el? I'd guess that you ended up > loading some older version of it. > > Try > > (load "~/lisp/smtpmail.el") > > or something, with a specific path. Ok, I'm running Debian unstable, I'm pretty sure I've followed all the directions at http://josefsson.org/emacs-smtp-starttls.html , and in the above post, but gnus just doesn't seem to try to do STARTTLS. *trace .. * 220 mx.gmail.com ESMTP h18sm1111047wxd^M EHLO localhost.localdomain.gmail.com^M 250-mx.gmail.com at your service^M 250-SIZE 20971520^M 250-8BITMIME^M 250-STARTTLS^M 250 ENHANCEDSTATUSCODES^M MAIL FROM: SIZE=1097^M 530 5.7.0 Must issue a STARTTLS command first h18sm1111047wxd^M QUIT^M .emacs: (require 'gnus) (setq message-send-mail-function 'smtpmail-send-it) (setq send-mail-function 'smtpmail-send-it) (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 "jamie.riden@gmail.com" "MYPASSWORD"))) (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 "" ""))) (setq smtpmail-local-domain "gmail.com") (setq smtpmail-sendto-domain "gmail.com") (setq smtpmail-default-smtp-server "smtp.gmail.com") (setq smtpmail-smtp-service 587 smtpmail-debug-info t smtpmail-smtp-server "smtp.gmail.com") I have exactly one smtpmail.el and that is % find /usr -name "smtpmail*" -print /usr/share/emacs/21.4/lisp/mail/smtpmail.el % ";; Modified by Simon Josefsson , 2000-10-07, to support ;; STARTTLS. Requires external program" and I think I have the binaries I need: % which starttls /usr/local/bin/starttls % which gnutls-cli /usr/bin/gnutls-cli I'll admit to being a bit of a cargo-cult programmer when it comes to elisp, but I just can't seem to figure out why it's not working. Is there any way I can find out why smtpmail.el is deciding STARTTLS is not on the agenda? thanks, Jamie -- Jamie Riden / jamie.riden@gmail.com "I don't see what C++ has to do with keeping people from shooting themselves in the foot. C++ will happily load the gun, offer you a drink to steady your nerves, and help you aim." -- Peter da Silva