I am trying to set up forwarding to two remote SMTP servers. Not at the
same time obviously, but depending on the from line (personal and work
address and accompanying outgoing servers).

Secrets file:

    smtp1.example.com [email protected]:pass
    smtp2.example.org [email protected]:pass

smtpd.conf:

    accept for all relay via smtp1.example.com tls auth secrets
    accept for all relay via smtp2.example.org tls auth secrets

The problem is, first smarthost is always used. Envelope senders are
properly set.

Is there a way to make this work?

Reply via email to