Re: [exim] Something like "domains_require_tls"

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: 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