Hey Sam, many thanks, again, for your response,

Sam Kuper (2022/08/12 19:56 +0000):
> 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 have or need much
> configuration.)  So, if that's what you meant, then yes, it's possible.
> 
> 
> CASE 2

I am definitely in that case. Thanks for having raised the point,
because it was obvious to me but, fortunately for everybody, not
everybody is living in my head.

As I see it, the SMTP configuration to use is fully determined by the
from address of the mail to be sent.

> If, instead, you want to be able to choose, per outgoing *email* (rather
> than per *email address* of yours), which smarthost to use, then I think
> you would have to either:
> 
> -   write a wrapper for msmtp-queue to give you an interactive menu for
>     choosing which smarthost to use for each outgoing email you send, or
> 
> -   rewrite your installed msmtp-queue script to give you such a menu.

Again, as I see it, there shouldn't be any need for interactivity. For
each outoging mail, pick up the right SMTP config based on who (which
address) is sending (From header). As simple as that, I think.

And, thanks a lot for the idea of installing msmtp manally rather than
through the package manager. It should be possible, I think, to handle
it with the package manager, because manually installing is a pain, but
as long as it's not, that sounds like a good idea.

Once I'll have everything set-up, if I manage to, I'll report here,
either in this thread, or in a dedicated one.

Cheers,

Sébastien.

Reply via email to