From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: > 24.3 can't send mail Date: Sat, 07 Feb 2015 17:37:00 +0200 Message-ID: <83a90pbun7.fsf@gnu.org> References: <87oap5rghv.fsf@gmail.com> <87fvahre1c.fsf@gmail.com> <83d25lbwu1.fsf@gnu.org> <874mqxrb5n.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423323450 13062 80.91.229.3 (7 Feb 2015 15:37:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2015 15:37:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 16:37:26 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YK7Rk-0000rM-Fu for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 16:37:24 +0100 Original-Received: from localhost ([::1]:53511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK7Rj-0004Ud-DB for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 10:37:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK7RY-0004UY-5u for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 10:37:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YK7RU-00005J-VI for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 10:37:12 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:36111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK7RU-0008Um-Nz for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 10:37:08 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NJE00H00R218000@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 17:35:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJE00FP2RAX3Q20@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 17:35:21 +0200 (IST) In-reply-to: <874mqxrb5n.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102558 Archived-At: > From: torys.anderson@gmail.com (Tory S. Anderson) > Cc: help-gnu-emacs@gnu.org > Date: Sat, 07 Feb 2015 10:31:16 -0500 > > I think you're on to something, Eli. I see a daunting amount on smtp changes in the news files. Unfortunately, I'm not sure what to do next. Did you read NEWS and did you try to do what it suggests in order to copy your customizations to ~/.authinfo? If not, please do, what you have there is good advice. > I went so far as to comment-out everything you see below and then fired up the new emacs (my .authinfo file still exists unchanged); upon trying to send mail I seemed to make progress when it asked what outgoing server I wanted, but after specifying smtp.gmail.com, it seemed to freeze; one C-g later and it gave me the same old TLS error. Starting afresh is a good idea. Eventually, if you cannot get it to work starting from "emacs -Q", submit a bug report with all the details using "M-x report-emacs-bug", and I'm sure you will get this resolved one way or another. > Does anyone have an example of a working smtp setup in emacs >24.3? I do. It does exactly what NEWS says: *** The variable `smtpmail-auth-credentials' has been removed. By default, the information is now stored in the file ~/.authinfo. This was the default value of smtpmail-auth-credentials. If you had customized smtpmail-auth-credentials to a list of user names and passwords, those settings are not used. During your first connection to the smtp server, Emacs will prompt for the user name and password, and offer to save them to ~/.authinfo. Or you can manually copy the credentials to ~/.authinfo. For example, if you had (setq smtpmail-auth-credentials '(("mail.example.org" 25 "jim" "s!cret"))) then the equivalent line in ~/.authinfo would be machine mail.example.org port 25 login jim password s!cret See the auth-source manual for more information, e.g. on encrypting the credentials file. *** The variable `smtpmail-starttls-credentials' has been removed. If you had that set, you need to put machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert" in your ~/.authinfo file instead.