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 use based on my From address, I don't know how to > pass this information to the MTA and I am assuming this should not > even happen. > > One other alternative may be to let mutt send e-mails to SMTP servers > itself, directly, without going through sendmail/exim4, but then I am > wondering what is going to happen if I try to send an e-mail while my > computer is off-line. Am I correct that mutt has no queue or > whatsoever that would allow it to defer sending e-mails until the > computer is back online, which is exactly what the MTA does? > > I can't come up with a satisfactory solution and would really > appreciate feedback on this topic.
Consider using msmtp for sending, and msmtp-queue for queueing: https://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-20210208/002485.html Sam