Re: [exim] How to offer tls only on certain ports?

Góra strony
Delete this message
Reply to this message
Autor: Dave Evans
Data:  
Dla: exim-users
Temat: Re: [exim] How to offer tls only on certain ports?
On Mon, Jun 29, 2009 at 02:34:38PM -0400, Gordon Dickens wrote:
>
>    How can I setup exim to only offer tls on certain ports?  For example,
>    if I only want to offer tls on ports 25 and 587 for all hosts then I
>    thought that I could set tls_advertise_hosts as follows:
>        tls_advertise_hosts = 0.0.0.0.25 : 0.0.0.0..587
>    However, it does not appear to work. Any help would be appreciated!


tls_advertise_hosts is a host list - no port numbers. If you want to make it
port-specific, use an expansion based on $received_port. e.g.

tls_advertise_hosts = ${if eq{$received_port}{587} {*}{:}}

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey