[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [22] problem configuring smtpmail for gmail.com
From: |
Tom Roche |
Subject: |
Re: [22] problem configuring smtpmail for gmail.com |
Date: |
Sat, 18 Jul 2009 13:41:09 -0400 (EDT) |
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 <pw omitted/> password <pwomitted/>
> `----
arrggghhhh! fixed that first:
tlroche@tlrZ61t:~$ cat ~/.authinfo
> machine smtp.gmail.com port 587 login <omitted/> password <omitted/>
> machine smtp.pobox.com port 25 login <omitted/> password <omitted/>
Thierry Volpiatto Sat, 18 Jul 2009 07:23:31 +0200
> ,----[ My settings ]
> | ;; «config-pour-gmail» (to ".config-pour-gmail")
> | (setq user-mail-address "you@gmail.com"
> | user-full-name "you")
> |
> | ;; «config-gmail-avec-starttls» (to ".config-gmail-avec-starttls")
> | ; Sending mail
> | (setq message-send-mail-function 'smtpmail-send-it)
> | (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)))
> |
> | ;; «Now-my-password-are-in-.authinfo» (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==t
> (setq smtpmail-debug-info t)
> (setq smtpmail-debug-verb t)
> (setq user-mail-address <omitted>
> 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 <Tom_Roche@pobox.com>
> Subject: testing post from xubuntu emacs
> --text follows this line--
> testing post from xubuntu emacs,
> 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 <Tom_Roche@pobox.com>