On Mon, 14 Jul 2003, Kevin Reed wrote:
> # If the HELO as my own hostname, drop them
> drop message = You may not HELO of this system's hostname
> log_message = HELO of system's hostname
> set acl_m8 = ${lc:$sender_helo_name}
> set acl_m7 = ${lc:$primary_hostname}
> condition = ${if eq{$acl_m8}{$acl_m7}{yes}{no}}
>
> I wanted to compare the lc (lowercase) version of both but couldn't figure
> out how to code it without an error. The above worked but I'm sure it could
> be done without the variables.
condition = ${if eq {${lc:$sender_helo_name}}{${lc:$primary_hostname}}{yes}{no}}
I have added "caseless eq" to the Wish List.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book: http://www.uit.co.uk/exim-book