From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.help Subject: Re: Multiple "outgoing" email accounts. Date: Sat, 08 Feb 2014 15:46:39 -0400 Organization: Aioe.org NNTP Server Message-ID: <87k3d5xu8w.fsf@moondust.localdomain> References: <87eh3g0yro.fsf@gmail.com> <87bnykm0ja.wl%hskuhra@eumx.net> <87bnyj2946.fsf@gmail.com> <87sirumdxn.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391889021 19782 80.91.229.3 (8 Feb 2014 19:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 19:50:21 +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 Feb 08 20:50:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WCDv4-0005gv-Ri for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 20:50:30 +0100 Original-Received: from localhost ([::1]:47792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCDv4-0000hs-El for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 14:50:30 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 8zD5md1O4tyyRz7HmX8fhA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:/2stt13loFOyWRSC9fASL9s/V0M= Original-Xref: usenet.stanford.edu gnu.emacs.help:203713 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95981 Archived-At: Answering some of my own questions about the "X-Message-SMTP-Method" header following some experimentation: >> 1. Does the header get removed before the mail is sent? Yes, it does. It would have been surprising if it didn't of course, but I didn't see anything in the documentation that mentions this. >> 2. Can one omit the port number and leave that to be retrieved from >> the .authinfo file? No. Sending the mail seems to fail if the port number is omitted. I don't really understand what's going on here. At some point something must be consulting my .authinfo file to retreive the password for my smtp sever. It's not clear to me why it doesn't get the port number from there as well. And what about the settings of variables like smtpmail-smtp-service, smtpmail-starttls-credentials, smtpmail-auth-credentials etc.? Do they get factored in to the mix, or are they ignored when the "X-Message-SMTP-Method" header is used? >> It would seem like an excessive amount of work, and error prone, to >> type in something like >> >> X-Message-SMTP-Method: smtp smtp.fsf.org 587 other-user >> >> every time I want to send an email. Eric Abrahamsen writes: > I think the idea is to use posting styles to tell gnus to set up the > appropriate STMP method header, depending on your From address. I'm not quite organised to use posting styles yet. In the interim I have set up an abbrev to expand to a "From" header and "X-Message-SMTP-Method" header for each of my smtp accounts which seems to work well enough for the time being.