A
A
awsswa1592021-08-16 11:08:45
Exim
awsswa159, 2021-08-16 11:08:45

Exim4 config sending emails across multiple domains to different networks via proxy?

Network closed from the Internet.
There is Exchange2019 and a bunch of domains (firma1.ru firma2.ru firma3.ru) It is
necessary to send through different VPS with different external addresses
conditionally firma1.ru goes through VPS1 with the address 1.123.123.123
put exim4, in Exchange indicated that domains are sent through exim4 now it is necessary to make a different transport for sending from different domains.
Now the scheme works to receive letters without problems, you need to figure out how to send
. I found an example of a configuration about transport, where there is a send from many network cards to exim 00_exim4
- config_header firma1
:
Relatively speaking, I need about the same with sending through a proxy
Domain:
driver = smtp
is not an interface but a proxy address - proxy=192.168.172.24 port 2525

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
awsswa159, 2021-08-16
@awsswa159

firma1_relay:
debug_print = "R: FIRMA1 for [email protected]$domain and $sender_address and $sender_address_domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
condition = ${if match{$sender_address_domain}{firma1.ru}{yes}{no}}
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
route_list = * 192.168.172.24::2525
no_more
firma2_relay:
debug_print = "R: FIRMA2 for [email protected]$domain and $sender_address and $sender_address_domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
condition = ${if match{$sender_address_domain}{firma2.ru}{yes}{no}}
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
route_list = * 192.168.155.37::2525
no_more

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question