Re: [exim] exim4.conf variable case sensitivity

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Colin Waring
Datum:  
To: Exim-users@exim.org
Betreff: Re: [exim] exim4.conf variable case sensitivity
Hi Mike,

It is actually part of a large ACL. The first part checks if a domain is listed in a particular file which contains a list of routes. The second part verifies that the listed address is one that we have defined to accept in the second file.

I have a couple of files that are used for different reasons (staticroutes etc) and this is one of them. In this case it is to allow us to spam filter messages to be forwarded on to Exchange 2013 or Office 365. The latest versions of Exchange do recipient validation after the data part thus screwing up the call forward that we use for earlier versions.

All the best,
Colin Waring.


Colin Waring
Technical Director
Dolphin ICT Limited
T
+44 (0)151 438 2246
www.dolphinict.co.uk
colin@???
US15a, Armstrong House, First Avenue, Robin Hood Airport, Doncaster, DN9 3GA





Dolphin ICT Limited. NOTICE & DISCLAIMER
Dolphin ICT Limited, a private limited company, with company registration number 6206916,
registered in the United Kingdom, the registered office of which is at US15a, Armstrong House, First Avenue, Robin Hood Airport, Doncaster, DN9 3GA
VAT registration number GB 918 1896 88.


-----Original Message-----
From: Exim-users [mailto:exim-users-bounces+colin=dolphinict.co.uk@exim.org] On Behalf Of Mike Brudenell
Sent: 23 September 2015 15:30
To: Exim-users@???
Subject: Re: [exim] exim4.conf variable case sensitivity

I'm curious why this is necessary…

On 23 September 2015 at 12:46, Nigel Metheringham <nigel@???> wrote:

> Specifically you want to change
>     /etc/domains/$domain
> to
>     /etc/domains/${lc:$domain}
>


As Colin mentioned, in the Specification the description of the *$domain* variable (p. 127 in the PDF from Exim 4.85) says:

When an address is being routed, or delivered on its own, this variable contains the domain. Uppercase letters in the domain are converted into lower case for $domain.


So surely there shouldn't be a need to translate it to lower case using ${lc:$domain} ?

Or is the documentation wrong and the domain name not converted to lower case before being put into the $domain variable?

Cheers,
Mike B-)

--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/