Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Štěpán Němec" <stepnem@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: info-gnus-english@gnu.org
Subject: Re: smtpmail vs msmtp
Date: Fri, 02 Aug 2019 00:10:48 +0200	[thread overview]
Message-ID: <87ftmkmt93.fsf@gmail.com> (raw)
In-Reply-To: <87tvb0ehui.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 01 Aug 2019 13:44:21 -0700")

On Thu, 01 Aug 2019 13:44:21 -0700
Eric Abrahamsen wrote:

> I'm using smtp with multiple accounts, and a `message-send-mail-hook'
> that sets the msmtp account based on the From header. Is that still the
> way everyone is doing it? Is there anything simpler for handling
> multiple accounts?

I'm also using multiple accounts and all I'm doing to that end on Emacs
side seems to be the following:

(setq send-mail-function 'message-send-mail-with-sendmail
      message-send-mail-function 'message-send-mail-with-sendmail
      sendmail-program "/usr/bin/msmtp"
      message-sendmail-envelope-from 'header
      message-sendmail-f-is-evil nil)
      
I.e., I let msmtp pick the account based on the From header.

-- 
Štěpán

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2019-08-01 22:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-01 14:41 Saša Janiška
2019-08-01 15:08 ` Štěpán Němec
2019-08-01 20:35   ` Bob Newell
2019-08-01 20:44     ` Eric Abrahamsen
2019-08-01 22:10       ` Štěpán Němec [this message]
2019-08-01 22:21         ` Eric Abrahamsen
2019-08-02  6:25           ` Lars-Johan Liman
2019-08-02 20:47             ` Eric Abrahamsen
2019-08-06  6:37               ` Lars-Johan Liman
2019-08-06 19:33                 ` Eric Abrahamsen
2019-09-16 20:40       ` Lars Ingebrigtsen
2019-09-22 17:24         ` Eric Abrahamsen
2019-08-02  6:44     ` Saša Janiška
2019-08-02 17:16       ` Bob Newell
2019-08-03  5:08         ` Saša Janiška
2019-10-25 11:51   ` 황병희
2019-10-25 12:42     ` William Henderson
2019-10-26  4:54       ` 황병희
2019-08-01 15:25 ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftmkmt93.fsf@gmail.com \
    --to=stepnem@gmail.com \
    --cc=eric@ericabrahamsen.net \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).