From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Roche Newsgroups: gmane.emacs.help Subject: Re: [22] problem configuring smtpmail for gmail.com Date: Sat, 18 Jul 2009 13:41:09 -0400 (EDT) Message-ID: <20090718174109.5F9C014084B3B@cedar.isis.unc.edu> Reply-To: Tom Roche , help-gnu-emacs@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247939009 25972 80.91.229.12 (18 Jul 2009 17:43:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2009 17:43:29 +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 Jul 18 19:43:22 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MSDwQ-0005YY-7D for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jul 2009 19:43:22 +0200 Original-Received: from localhost ([127.0.0.1]:47442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSDwP-0003Pg-If for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jul 2009 13:43:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSDw1-0003PP-Pw for help-gnu-emacs@gnu.org; Sat, 18 Jul 2009 13:42:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSDvw-0003Ow-HD for help-gnu-emacs@gnu.org; Sat, 18 Jul 2009 13:42:56 -0400 Original-Received: from [199.232.76.173] (port=54790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSDvw-0003Ot-BS for help-gnu-emacs@gnu.org; Sat, 18 Jul 2009 13:42:52 -0400 Original-Received: from cedar.isis.unc.edu ([152.2.3.72]:19943) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSDvv-0003L3-VQ for help-gnu-emacs@gnu.org; Sat, 18 Jul 2009 13:42:52 -0400 Original-Received: by cedar.isis.unc.edu (Postfix, from userid 155088) id 5F9C014084B3B; Sat, 18 Jul 2009 13:41:09 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66205 Archived-At: Tom Roche Sat, 18 Jul 2009 00:46:22 -0400 (EDT) >> I'd appreciate help {fix, debug}ing a problem mailing to >> smtp.gmail.com (and other TLS-using mail hosts) using smtpmail. (details @ http://lists.gnu.org/archive/html/help-gnu-emacs/2009-07/msg00488.html ) Thierry Volpiatto Sat, 18 Jul 2009 07:23:31 +0200 > You have to give the port to gnus: > ,----[ .authinfo ] > | machine smtp.gmail.com port 587 login password > `---- arrggghhhh! fixed that first: tlroche@tlrZ61t:~$ cat ~/.authinfo=20 > machine smtp.gmail.com port 587 login password > machine smtp.pobox.com port 25 login password Thierry Volpiatto Sat, 18 Jul 2009 07:23:31 +0200 > ,----[ My settings ] > | ;; =C2=ABconfig-pour-gmail=C2=BB (to ".config-pour-gmail") > | (setq user-mail-address "you@gmail.com" > | user-full-name "you") > | > | ;; =C2=ABconfig-gmail-avec-starttls=C2=BB (to ".config-gmail-avec-sta= rttls") > | ; Sending mail > | (setq message-send-mail-function 'smtpmail-send-it) > | (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))= ) > | > | ;; =C2=ABNow-my-password-are-in-.authinfo=C2=BB (to ".Now-my-password= -are-in-.authinfo") > | > | ;; Whithout authinfo: > | ;; (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 > | ;; "my_email_as_login" "My_password"))) > | > | (setq smtpmail-default-smtp-server "smtp.gmail.com") > | (setq smtpmail-smtp-server "smtp.gmail.com") > | (setq smtpmail-smtp-service 587) > `---- So I commented out all my mail config, and put the following tlrMail.el > ;; debugging=3D=3Dt > (setq smtpmail-debug-info t) > (setq smtpmail-debug-verb t) > (setq user-mail-address > user-full-name "Tom Roche") > (setq message-send-mail-function 'smtpmail-send-it) > (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))) > (setq smtpmail-default-smtp-server "smtp.gmail.com") > (setq smtpmail-smtp-server "smtp.gmail.com") > (setq smtpmail-smtp-service 587) into a file which I'm loading from init.el, and which I byte-compile-file'd. I then cycled emacs and sent the following *mail* > To: Tom Roche > Subject: testing post from xubuntu emacs > --text follows this line-- > testing post from xubuntu emacs,=20 > after fixing ~/.authinfo and tlrMail.el @ 12:04:26 (about 80 min ago). The good news: no errors! No *Backtrace* or *trace of SMTP session to smtp.pobox.com*, and nothing relevant in *Messages* except *Messages* > Loading sendmail...done > Mark set [4 times] > Sending...done The bad news: nothing like the post above is in my gmail (Inbox or Spam) as of 12:45:00 PM, and nothing like that was caught in my pobox.com spambox (though there is spam received after 12:04:26). By contrast, when I sent the same *mail* from another host (using an emacs I shelled into) @ 12:49:39, the post showed in gmail @ 12:50:16. Hence it looks like my emacs is giving a false positive. I'm wondering, how to fix or debug this? TIA, Tom Roche