On Mon, Feb 14, 2022 at 5:55 PM Wietse Venema <wie...@porcupine.org> wrote:
The randmap() feature comes to mind.

Instead of "relayhost = old.example" or "relayhost = new.example" use:

    default_transport =
        randmap:{smtp:old.example, smtp:old.example, smtp:new.example}

On 15.02.22 11:51, Danil Smirnov wrote:
Can this technique be used in case of "new.example" is the Postfix itself,
i.e. sending without the relay?

E.g. like this:

   default_transport =
       randmap:{smtp:old.example, smtp:old.example, smtp:}

that's not a relayhost then. If postfix processes mail locally, it does not use relayhost. relayhost is only used for outgoing e-mail, there's no setting only to use relayhost only sometimes.

you could use multiple instances of postfix on your machine (so there's another instance on your machine behaving as relayost for you), but that's too much complexity needed to pass only part of your e-mail to relayhost.

perhaps you could use smtp_fallback_relay
http://www.postfix.org/postconf.5.html#smtp_fallback_relay

which has a different meaning, but perhaps could to what you mean by "warming up" the new relay.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Linux IS user friendly, it's just selective who its friends are...

Reply via email to