Mailing List Archive

[Bug 2972] New: ACL check "!verify = reverse host lookup" gives error
https://bugs.exim.org/show_bug.cgi?id=2972

Bug ID: 2972
Summary: ACL check "!verify = reverse_host_lookup"
gives error
Product: Exim
Version: 4.96+
Hardware: x86
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: ACLs
Assignee: jgh146exb@wizmail.org
Reporter: ente@ck76.de
CC: exim-dev@exim.org

Version Info:
? pacman -Q | grep exim
exim 4.96-2

An ACL with the following lines gives some strange and hard to predict error:

warn log_message = [ACL_MAIL_UNAUTHED] Reverse DNS lookup failed
!verify = reverse_host_lookup
set acl_m_reject = true
add_header = X-SPAM-REVERSE-DNS-LOOKUP: failed


There are 2 different versions of the error. For the precise text above
currently the error is only received when actually processing an incoming mail:

X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no temporarily rejected MAIL
<XXXXX@XXXXX.XX>: expected "sender[=address]", "recipient", "helo",
"header_syntax", "header_sender", "header_names_ascii" or "reverse_host_lookup"
at start of ACL condition "verify  reverse_host_lookup"

This is literally copied from journald. The '=' is suddenly missing. In the
config file, it exists.

Before I got a different error, when starting up exim. Same line. A minor
different ACL check. The old check was:

warn log_message = ACL_MAIL_UNAUTHED: Reverse DNS lookup failed.
!verify = reverse_host_lookup
set acl_m_reject = true
add_header = X-SPAM-REVERSE-DNS-LOOKUP: failed

The error was:
[2/2] error in ACL: "=" missing after ACL "verify" condition
[1\2] 2023-01-12 16:53:36.247 [18255] Exim configuration error in line 137 of
/etc/mail/exim.conf:
error in ACL: "=" missing after ACL "verify" condition

Now I commented those lines, everything else is working fine. I have 8 checks
in this ACL. They are all in a similar structure. Among others I have
!verify = helo
!verify = csa
!verify = sender/callout=10s,fullpostmaster
in the same ACL and they dont throw any error.

So this is weird to me. Am I blind and can't spot my own error? Sorry for the
noise, if so.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
Re: [Bug 2972] New: ACL check "!verify = reverse host lookup" gives error [ In reply to ]
On 2023-01-12, admin--- via Exim-dev <exim-dev@exim.org> wrote:
>
> The error was:
> [2/2] error in ACL: "=" missing after ACL "verify" condition
> [1\2] 2023-01-12 16:53:36.247 [18255] Exim configuration error in line 137 of
> /etc/mail/exim.conf:
> error in ACL: "=" missing after ACL "verify" condition

And it's definately that line? This command:

cat -n /etc/mail/exim.conf | grep '^ *1[34][0-9]\W'

shows that line as 137?

> So this is weird to me. Am I blind and can't spot my own error? Sorry for the
> noise, if so.

Maybe there could be some non-printing, or other unusual, characters on that line, UTF-8 is
both a blessing and a curse, maybe re-typing the line from scratch will fix it.

--
Jasen.
p?s????? s????? ll?

--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##