From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: SMTP library problem Date: Fri, 07 Mar 2008 15:26:07 +0100 Message-ID: <87r6emtxts.fsf@escher.local.home> References: <954cc8bb0803041009pda5f74aq23323b1e9dc4e85b@mail.gmail.com> <87zltdwhl7.fsf@escher.local.home> <87tzjlvtzs.fsf@escher.local.home> <87r6eo1zht.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204900024 15504 80.91.229.12 (7 Mar 2008 14:27:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 14:27:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 15:27:22 2008 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 1JXdXc-0003pd-15 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 15:27:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXdX4-0003Dw-64 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 09:26:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXdWn-0003DE-1o for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 09:26:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXdWl-0003Ca-Ki for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 09:26:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXdWl-0003CV-EH for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 09:26:27 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JXdWl-0005p5-3N for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 09:26:27 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JXdWY-000554-50 for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 14:26:14 +0000 Original-Received: from i5387cfbe.versanet.de ([83.135.207.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 14:26:14 +0000 Original-Received: from Stephen.Berman by i5387cfbe.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 14:26:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387cfbe.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:52122 Archived-At: On Thu, 06 Mar 2008 12:17:23 +0100 David wrote: > Stephen Berman writes: >> Telnetting to port 25 just times out as above with no port. I also >> tried swaks: >> >> $ swaks -s mail.myprovider.com > > If it is indeed ssmtp you would have to call swaks with > > swaks --auth --tls-on-connect -p 465 -s mail.myprovider.com Ah, thanks. That works. >> Again, I can send and receive mail via this server using KMail, which I >> set up simply by providing the server's FQDN and my user name (KMail >> figured out the port and authorization method and prompts for my >> password). So I expected (and still hope) there's some way to access it >> with Gnus. > > If the above swaks command works, you can use an external tool like > stunnel to set up the SSL connection. If you have root on the machine, > you can use stunnel like this > > stunnel -f -c -d localhost:2000 -r mail.myprovider.com:465 > > You should then be able to send mails through your localhost on port > 2000. Note that the '-f' option lets stunnel run in the foreground for > testing purposes. If it works, you can omit this option and let stunnel > run as daemon. I don't have root access to the machine that hosts the mail server, or do you mean the machine I use to send mail via the server? If the latter, how would I make Gnus aware of the tunnel? I instrumented smtpmail.el for Edebug and stepped through the code as I tried to send a mail. The "freeze" occurred in smtpmail-read-response at the call to accept-process-output, which is from the Emacs C code. I assume this means gnutls is not providing the server what it needs, so it just waits until it hits the timeout, but I don't know how to proceed to find out what is going wrong. Steve Berman