It also looks like I can use: bash-2.03# exim -be '${if match_domain{foo.abc.com}{abc.com:*.abc.com}{true}{false}}' true bash-2.03# exim -be '${if match_domain{abc.com}{abc.com:*.abc.com}{true}{false}}' true
To: [EMAIL PROTECTED] cc: Subject: Re: [exim] match_domain question LSN: Not Relevant User Filed as: Not a Record On Fri, 2007-10-05 at 08:38 -0700, [EMAIL PROTECTED] wrote: > Why does: > > exim -be '${if match_domain{foo.abc.com}{abc.com}{true}{false}}' > > return: > > false The short answer is because foo.abc.com isn't the same as abc.com - but that isn't as obvious as it looks. match_domain doesn't do anything clever to the search term, it simply allows the search to use named domain lists (localdomains, relay_to_domains) in the same way as you might use them elsewhere. If you had domainlist check_domains = foo.com:bar.com:abc.com:foo.abc.com and you did this within your config somewhere ${if match_domain{foo.abc.com}{+check_domains}{true}{false}} you should get "true". To test this use: exim -be '${if match_domain{foo.abc.com}{foo.com:bar.com:foo.abc.com}{true}{false}}' and to see where it's doing stuff, use -d+expand or -d+lists Graeme -- ## List details at http://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/