Re: Using several SMTP servers

2022-08-12 Thread Sam Kuper
On Fri, Aug 12, 2022 at 10:57:41PM +0200, Sébastien Hinderer wrote: > As I see it, the SMTP configuration to use is fully determined by the > from address of the mail to be sent. > > [...] there shouldn't be any need for interactivity. For each outoging > mail, pick up the right SMTP config based

Re: Using several SMTP servers

2022-08-12 Thread Sébastien Hinderer
Hey Sam, many thanks, again, for your response, Sam Kuper (2022/08/12 19:56 +): > CASE 1 > > IIRC, msmtp can be configured to use a different smarthost per *email > address*. (To emphasise: you would set that up in msmtp's config, not > in msmtp-queue's config. msmtp-queue doesn't really ha

Re: Using several SMTP servers

2022-08-12 Thread Sam Kuper
On Fri, Aug 12, 2022 at 08:53:23PM +0200, Daniel Tameling wrote: > On Fri, Aug 12, 2022 at 03:58:02PM +, Sam Kuper wrote: >> - Test/tweak/re-test msmtp until working. (E.g. using Mutt or GNU >> Mailutils's `mail` command to send emails from the command-line, >> with relevant command-

Re: Using several SMTP servers

2022-08-12 Thread Sam Kuper
On Fri, Aug 12, 2022 at 07:01:52PM +0200, Sébastien Hinderer wrote: > 1. Am I correct that it will be possible, when calling smstp-queue, to > specify which smarthost to use? > > In other words, am I correct that this will let me associate one smart > host (SMTP configuration) to each mail in the

Re: Using several SMTP servers

2022-08-12 Thread Sébastien Hinderer
Daniel Tameling (2022/08/12 20:53 +0200): > On Fri, Aug 12, 2022 at 03:58:02PM +, Sam Kuper wrote: > > - Test/tweak/re-test msmtp until working. (E.g. using Mutt or GNU > > Mailutils's `mail` command to send emails from the command-line, > > with relevant command-line options set so

Re: Using several SMTP servers

2022-08-12 Thread Daniel Tameling
On Fri, Aug 12, 2022 at 03:58:02PM +, Sam Kuper wrote: > - Test/tweak/re-test msmtp until working. (E.g. using Mutt or GNU > Mailutils's `mail` command to send emails from the command-line, > with relevant command-line options set so as to ensure that msmtp is > used as the MTA).

Re: Using several SMTP servers

2022-08-12 Thread Sébastien Hinderer
Thanks a lot, Sam! Everything you write makes sense. Just one question and one remark, if you don't mind. 1. Am I correct that it will be possible, when calling smstp-queue, to specify which smarthost to use? In other words, am I correct that this will let me associate one smart host (SMTP conf

Re: Using several SMTP servers

2022-08-12 Thread Sam Kuper
On Fri, Aug 12, 2022 at 04:05:55PM +0200, Sébastien Hinderer wrote: > Hello Sam, many thanks for your interesting response! :) > Sam Kuper (2022/08/11 17:43 +): >> Consider using msmtp for sending, and msmtp-queue for queueing: >> >> https://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-202

Re: Using several SMTP servers

2022-08-12 Thread Derek Martin
On Thu, Aug 11, 2022 at 06:23:56PM +0200, Sébastien Hinderer wrote: > Dear all, > > Sorry if the question is off-topic, hopefully not completely though. > > I am wondering what's the best way to use different SMTP servers to send > mails, depending on which e-mail account I am currently using (th

Re: Using several SMTP servers

2022-08-12 Thread Sébastien Hinderer
Hello Sam, many thanks for your interesting response! Sam Kuper (2022/08/11 17:43 +): > Consider using msmtp for sending, and msmtp-queue for queueing: > > >https://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-20210208/002485.html My understanding is that, on one side, mutt would call msm

Re: Using several SMTP servers

2022-08-11 Thread Sam Kuper
On Thu, Aug 11, 2022 at 06:23:56PM +0200, Sébastien Hinderer wrote: > So far I use exim4 to send e-mails but I didn't see a way to specify > which "smarthost" to use to send e-mails e.g. on the sendmail command > line. So, even if I could use mutt send hooks to choose which SMTP > configuration to