smtpmail, starttls and gmail

Raymond Toy toy.raymond at gmail.com
Fri Mar 11 11:28:04 EST 2011


After a long time, I decided I should get xemacs working with my gmail
account.  After lots of googling and experimenting, I finally got
xemacs to access my gmail account via imap.  This is working fine.

But I can't send mail using smtp.gmail.com.  Well, it does eventually
send the mail, but I get an error which makes gnus think the mail was
not sent.

My settings from custom.el are

 '(message-send-mail-function 'smtpmail-send-it)
 '(smtpmail-auth-credentials '(("smtp.gmail.com" 587 "toy.raymond at gmail.com" nil)))
 '(smtpmail-debug-info t)
 '(smtpmail-debug-verb t)
 '(smtpmail-default-smtp-server "smtp.gmail.com")
 '(smtpmail-local-domain nil)
 '(smtpmail-smtp-server "smtp.gmail.com")
 '(smtpmail-smtp-service 587)
 '(smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))

I have gnutls-cli too.

The contents of *trace SMTP* is appended below where I'm sending
myself a junk message.  The message does get sent, though.

Is this a bug in smtpmail/starttls, gnutls-cli, smtp.gmail.com, or
something else?  Surely there must be other people accessing gmail.com
with xemacs!

Ray

*trace of SMTP session*, but I deleted the AUTH_LOGIN parts in case
that contains my password.

220 mx.google.com ESMTP u45sm3037401yhn.9

Process SMTP exited abnormally with code 1
EHLO gondor.local
250-mx.google.com at your service, [24.148.170.2]
250-SIZE 35651584
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
STARTTLS
220 2.0.0 Ready to start TLS
EHLO gondor.local
250-mx.google.com at your service, [24.148.170.2]
250-SIZE 35651584
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
AUTH LOGIN
[deleted]
235 2.7.0 Accepted
MAIL FROM:<toy.raymond at gmail.com> SIZE=311
250 2.1.0 OK u45sm3037401yhn.9
RCPT TO:<toy.raymond at gmail.com>
250 2.1.5 OK u45sm3037401yhn.9
DATA
354  Go ahead u45sm3037401yhn.9
To: toy.raymond at gmail.com
Subject: testing4
From: Raymond Toy <toy.raymond at gmail.com>
Date: Fri, 11 Mar 2011 11:23:17 -0500
Message-ID: <m14o79hbii.fsf at gondor.local>
User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.5-b29 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

testing4
.
250 2.0.0 OK 1299860605 u45sm3037401yhn.9
QUIT
221 2.0.0 closing connection u45sm3037401yhn.9
*** Fatal error: A TLS packet with unexpected length was received.
*** Server has terminated the connection abnormally.





More information about the XEmacs-Beta mailing list