From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rene Newsgroups: gmane.emacs.devel Subject: Using smtps over port 465 in emacs24 Date: Thu, 15 Dec 2011 03:45:08 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323970830 16981 80.91.229.12 (15 Dec 2011 17:40:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2011 17:40:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 15 18:40:25 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RbFI7-0006Pt-Rn for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2011 18:40:24 +0100 Original-Received: from localhost ([::1]:59621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbFI7-0005bI-6W for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2011 12:40:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbFI4-0005b7-9m for emacs-devel@gnu.org; Thu, 15 Dec 2011 12:40:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbFHw-0006mb-T7 for emacs-devel@gnu.org; Thu, 15 Dec 2011 12:40:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:32946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbFHw-0006mM-KE for emacs-devel@gnu.org; Thu, 15 Dec 2011 12:40:12 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RbFHv-0006IB-3G for emacs-devel@gnu.org; Thu, 15 Dec 2011 18:40:11 +0100 Original-Received: from vaf26-3-88-162-208-155.fbx.proxad.net ([88.162.208.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Dec 2011 18:40:10 +0100 Original-Received: from jlr_0 by vaf26-3-88-162-208-155.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Dec 2011 18:40:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 88 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 88.162.208.155 (Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146727 Archived-At: emacs-version "24.0.92.1" I didn't encounter any problem using the smtp protocol on port 25. But now that my company has turned to a secured smtp server I now should be using the smtps protocol on port 465. Unfortunately I cannot seem to make this work. Besides I don't get any error message at all which leaves me with no clue on how to debug this problem although both `smtpmail-debug-verb' and `smtpmail-debug-info' are set to t. *Here is my configuration* (setq smtpmail-smtp-server "smtps.company.domain.name") (setq smtpmail-smtp-service 465) (setq user-mail-address "my.name@domain.name") (setq smtpmail-local-domain "domain.name") (setq smtpmail-smtp-user "loginName") *Here is the corresponding line in my ~/.authinfo.gpg* machine smtps.company.domain.name login loginName password xxx port 465 *Here is the trace* Debugger entered--Lisp error: (quit) accept-process-output(# 0 50) network-stream-get-response(# 1 "^[0-9]+ .*^M\n") network-stream-open-starttls("smtpmail" # "smtps.company.domain.name" 465 (:type nil :return-list t :capability-command "EHLO machine.domain.name^M\n" :end-of-command "^[0-9]+ .*^M\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #[(capabilities) "\301\302^H\"\205^H^@\303\207" [capabilities string-match "[ -]STARTTLS" "STARTTLS^M\n"] 3] :client-certificate t :use-starttls-if-possible t)) open-network-stream("smtpmail" # "smtps.company.domain.name" 465 :type nil :return-list t :capability-command "EHLO machine.domain.name^M\n" :end-of-command "^[0-9]+ .*^M\n" :success "^2.*\n" :always-query-capabilities t :starttls-function #[(capabilities) "\301\302^H\"\205^H^@\303\207" [capabilities string-match "[ -]STARTTLS" "STARTTLS^M\n"] 3] :client-certificate t :use-starttls-if-possible t) byte-code("\306\307\310^H\"!^Qr q\210\311^R\312 \210)\313\211^[^\\314\315 ^H^M\316^N@\317\311\320\307\321\322 (...) [host process-buffer buffer-undo-list coding-system-for-write coding-system-for-read port get-buffer-create format "*trace of SMTP session to %s*" t erase-buffer binary open-network-stream "smtpmail" :type :return-list :capability-command "EHLO %s^M\n" smtpmail-fqdn :end-of-command "^[0-9]+ .*^M\n" :success "^2.*\n" :always-query-capabilities :starttls-function #[(capabilities) "\301\302^H\"\205^H^@\303\207" [capabilities string-match "[ -]STARTTLS" "STARTTLS^M\n"] 3] :client-certificate :use-starttls-if-possible throw done plist-get :error "Unable to contact server" set-process-filter smtpmail-process-filter :greeting smtpmail-response-code "No greeting: %s" 400 "Connection not allowed: %s" set-buffer-process-coding-system raw-text-unix make-local-variable smtpmail-read-point :capabilities smtpmail-command-or-throw "HELO %s" delete "" split-string ...] 24) smtpmail-via-smtp((#("Jean-Luc.Koning@esisar.domain.name" 0 38 (fontified nil))) #) smtpmail-send-it() mail-send() vm-mail-send() ad-Orig-vm-mail-send-and-exit(nil) apply(ad-Orig-vm-mail-send-and-exit nil) vm-mail-send-and-exit(nil) call-interactively(vm-mail-send-and-exit) Any help is much welcome. -- Rene