Re: [exim] How to make proxy support work in exim

Pàgina inicial
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
A: exim-users
Assumpte: Re: [exim] How to make proxy support work in exim
Hi,

Andrey via Exim-users <exim-users@???> (So 09 Okt 2022 17:39:39 CEST):
> Nginx and Exim on the same host, Nginx runs as a smtp proxy for exim.
> Nginx v1.22.0 config fragment:


Despite the fact that I do not need to understand why you want to have
the proxy on the same host (probably debugging/development purpose?),
your config looks quite plausible. But never I used nginx as a proxy. I
used haproxy.

> ```
> (Exim v4.96, compiled with SUPPORT_PROXY). Exim config:
>
> ```
> hostlist hosts_proxy = <; 127.0.0.1; 192.46.111.11
> ```


There is no sense in defining a host list w/o using it.
Defining a hostlist as above just creates a list of host items, named
"hosts_proxy".

This doesn't imply any use of the list.

However, there is a main config option "hosts_proxy", which accepts a
host list - that is, a list of host items, or a list that was defined as
a host list previously:

Given your config from above

# referring to the hostlist "hosts_proxy" defined above
hosts_proxy = +hosts_proxy

or
hosts_proxy = <; 127.0.0.1; 192.168.111.11

should work.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -