Re: [exim] Something like "domains_require_tls"

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy Harris
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Something like "domains_require_tls"
On 23/03/2023 15:30, Olaf Hopp (SCC) via Exim-users wrote:
> router_A:
>     domains: +domainlist-with-TLS-Domains
>     transport: tlssmtp
> router_B:
>     domains: *
>     transport: smtp
>
> tlssmtp:
>     hosts_require_tls = *
>     driver = smtp
> smtp:
>     driver smtp
>
>
> in reality two routers and transports are much more complicated but almost
> identical. The same is true for the transports.
>
> Is it somehow possible to consolidate this into one router and one transport


allsmtp:
driver = smtp
hosts_require_tls = ${if match_domain{$domain}{+domainlist-with-TLS-Domains} {*}{}}
multi_domain = false

--
Cheers,
Jeremy