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 (the From 
address).

I do realise that the two things (the SMTP server used to send an e-mail
on the one hand, and the e-mail address in the From header of that mail
on the other hand) are not necessarily related and that's actually
my current setting: I use the same SMTP server, with authentication,
no matter where I am and no matter which e-mail address there is
in the From header of the e-ml am sending.

My question is: can that be changed and, if yes, how.

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.

Many thanks in advance,

Sébastien.

Reply via email to