Autor: Kevin P. Fleming Fecha: A: Thomas Tonino Cc: exim-users Asunto: Re: [Exim] Documentation bug?
Thomas Tonino wrote:
> Using 4.20.
>
> In chapter 11.8, I read:
> The calling host matches the list in host_lookup. The default for this
> option is
> *, so it must be changed if any lookups are to be avoided.
>
> I read this as: when I leave this out of the config, it will be *, and
> lookups
> will be done
>
> But it isn't, so name lookups aren't done. It turns out that setting it
> to *
> also makes $sender_host_name available as ACL variable. Which is good for
> customizing error messages.
>
I just noticed a similar thing on Friday; I have some ACL rules in
acl_smtp_mail that check $sender_host_name, and one was failing. Turns
out $sender_host_name was null, because the reverse lookup wasn't
being done. However, there are five rules in that ACL, and only the
first one was known for sure to be failing; the others have accepted
mail recently. I haven't had a chance to look at the code yet to see
what was really going on.
Setting helo_lookup_domains to include the list of domains I check in
acl_smtp_mail cured the problem.