On 8/9/22 12:29 pm, to...@tuxteam.de wrote:
On Wed, Sep 07, 2022 at 10:31:37PM +0200, Sébastien Hinderer wrote:Dear all,(I am not subscribed to the list) Currently I am using exim4 as mail transport agent (MTA). I am looking for another one, because I would like to be able to configure the SMTP server to use based on the address I am using in the >From header. For instance, if I am sending from my personal account then I'd like to use one smarthost and SMTP configuration, but if I am sending from my work address, I would like the MTA to choose my work's SMTP server as its smarthost. Am I correct that exim4 does not allow for such a configuration? If it would, I think that would be my preferred solution, although I find exim4 really big and difficult to apprehend.I've been mulling over it (and I want to stay with exim) and came to the conclusion that it should be possible. But I haven't implemented it yet, so take my conclusion with two fists of salt. Cheers
It's incredibly easy using postfix sender_dependent_relayhost_mapsOne option retaining exim4 is to use postfix as an outgoing mail gateway and forward to it from the exim4 instance.
-- Jeremy
OpenPGP_signature
Description: OpenPGP digital signature