From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.help Subject: Re: SMTP library problem Date: Sat, 08 Mar 2008 15:47:54 +0100 Message-ID: References: <954cc8bb0803041009pda5f74aq23323b1e9dc4e85b@mail.gmail.com> <87zltdwhl7.fsf@escher.local.home> <87tzjlvtzs.fsf@escher.local.home> <87r6eo1zht.fsf@escher.local.home> <87r6emtxts.fsf@escher.local.home> <87skz2gpix.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 1204987715 21493 80.91.229.12 (8 Mar 2008 14:48:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 14:48:35 +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 Mar 08 15:49:02 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 1JY0M5-0002kq-Q2 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 15:48:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JY0LX-0006UP-SV for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 09:48:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JY0LI-0006U4-LM for help-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:48:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JY0LE-0006Tb-3f for help-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:48:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JY0LD-0006TW-US for help-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:48:03 -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 1JY0LD-0002Cc-FQ for help-gnu-emacs@gnu.org; Sat, 08 Mar 2008 09:48:03 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JY0LA-0005Ri-HP for help-gnu-emacs@gnu.org; Sat, 08 Mar 2008 14:48:00 +0000 Original-Received: from kafka.physik3.gwdg.de ([134.76.92.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Mar 2008 14:48:00 +0000 Original-Received: from de_bb by kafka.physik3.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Mar 2008 14:48:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: kafka.physik3.gwdg.de User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:8OpDPR9URF9Yf8WP3BComu2D6o4= 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:52160 Archived-At: Stephen Berman writes: > Ok, I set smtpmail-default-smtp-server to "localhost" and > smtpmail-auth-credentials to '(("localhost" 2000 "myusername" > "mypassword")), and indeed it did work -- almost. Since the mail goes > through localhost, it gets picked up by the postfix server running on my > system. You local postfix listens on another port (25), so it should not pick up the mail. You must have done something wrong in your smtpmail.el configuration. Here's how it should work: (setq smtpmail-default-smtp-server "localhost") (setq smtpmail-smtp-service 2000) (require 'smtpmail) (setq send-mail-function 'smtpmail-send-it) (setq message-send-mail-function 'smtpmail-send-it) (setq smtpmail-debug-info t) (setq smtpmail-auth-credentials '(("localhost" 2000 "name" "pass"))) Note that smtp-server and smtp-service are set before the 'require' (though I'm not sure if this is still necessary). > I have postfix configured to relay mail from localhost to > another server (mail.gmx.net), which is what I use for most of my > email. I guess you could configure postfix to use different smart hosts dependent on the sender address, but I don't know postfix and it's OT here anyway. > Unfortunately I don't know what adaptations to smtpmail.el would be > needed nor how to implement them. If you want to try to do it, I would > be grateful (as I am for the help you've already given me). Sorry, I'm afraid I won't have the time to do it. Additionally, I consider ssmtp to be broken and mail servers usually only support it because of MS Outlook anyway, so I see no reason to support this. SMTP+STARTTLS is the right thing to do. -David