From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: Gnus and offline Email Date: Thu, 17 Nov 2016 16:47:23 +0300 Message-ID: References: <58273138.4070808@openmailbox.org> <87y40k63kc.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479390491 2581 195.159.176.226 (17 Nov 2016 13:48:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Nov 2016 13:48:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) Cc: help-gnu-emacs@gnu.org To: Jeffrey DeLeo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 17 14:48:07 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7N2s-0008AM-PI for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 14:48:06 +0100 Original-Received: from localhost ([::1]:59163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7N2v-0006iC-VI for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Nov 2016 08:48:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7N2S-0006hw-7B for help-gnu-emacs@gnu.org; Thu, 17 Nov 2016 08:47:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7N2M-0007ne-Rz for help-gnu-emacs@gnu.org; Thu, 17 Nov 2016 08:47:40 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:33510) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7N2M-0007nJ-NF for help-gnu-emacs@gnu.org; Thu, 17 Nov 2016 08:47:34 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 145DB20742; Thu, 17 Nov 2016 08:47:33 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 17 Nov 2016 08:47:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=D6iY2myLOEaomHZDmRSIqVQICLo=; b=m7k7ld VHDgi6DVEjcBk7tv5631EE7J0/4RSd4HMydpgjcZj7dRvgYQrGaid+VmV8i4vKXy 0b6EOfEq9djl32sNoKgdXMsqt/PId15Mj9BKwAkkeMjh/YhB0KwkUneU5ec4vRet 4ShbrUdUHiQ4J6/AhMbEXrqwma18J1gbuimuc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=D6iY2myLOEaomH ZDmRSIqVQICLo=; b=tFQtve89x6rzLluIloLfqKebKXNnGw56QykPNmpGKlaoA4 LlHPTQqUMLpBf8eYH2GRa/lVGflZRa0YLzA5YlSyslrUQJIY8gxiBFe77gejagdh YG56ubDzNnirbLk1DeJLFjW3KCM3okO1Sd1+3ETcW12ueoQsSTiDtySmFmZKo= X-ME-Sender: X-Sasl-enc: XQsy6r38Lip340EMvgC/NtAmCv2Qb3y6QZUreNoyROJs 1479390451 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A61D25041; Thu, 17 Nov 2016 08:47:29 -0500 (EST) In-Reply-To: <87y40k63kc.fsf@gmail.com> (Jeffrey DeLeo's message of "Tue, 15 Nov 2016 09:44:19 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111736 Archived-At: On 15/11/2016 09:44 -0800, Jeffrey DeLeo wrote: > Re: sending mail: In fact, I used to send mail directly from emacs. This > involved fiddling with a number of things. It turned out to be much > easier to just let postfix handle it. For example, I use several > different email accounts to send mail from in Gnus; I now let gnus know > about this via posting-styles, and let postfix worry about which address > should go to which server, and how. Could you please show how you set up whatever points to your target smtp server in posting styles? I now write smth like this to separate my private and work accounts: (setq gnus-posting-styles '((".*" (address "fgunbin@fastmail.fm") ("X-Message-SMTP-Method" "smtp mail.messagingengine.com 587")) ("nnfolder\\+mailserver:mail.work" (address "fgunbin@work.com") ("X-Message-SMTP-Method" "smtp outlook.office365.com 587")))) When replying, it just works. When writing new message, I have to put point onto `mail.work' group in *Groups* and use `C-u m' to have *message* buffer set with the posting style above. Filipp