sender_dependent_relayhost_maps rotate multiple hosts

sojic

Member
Jul 8, 2022
20
1
8
I'm trying to configure postfix to send e-mail over multiple hosts per sender domain. In general, the following guide is OK: https://documentation.n-able.com/sp...utgoing-filtering/postfix-sender-bsd-rout.htm

It works as expected.

But... I would like to have multiple hosts for sending and I couldn't make it! It works well as long as I have 1 sendrelay per domain:
Code:
@domain1    host1
@domain2    host2

I have tried various combinations for multiple domains, ex:
Code:
@domain1    host1a, host1b
@domain2    host2a, host2b

So, I want to get server rotation, first mail to be sent from host1a, second from host1b... e.t.c.

Any hints?

Also, next stage... very complicated: to combine sender and receiver domain (ex: @domain1 sending to @domain2 to use host1a, host1b, host1c; @domain1 sending to @domain3 to use host1d,host1e...)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!