Mailing List Archive

4.92.2 math or number comparisions not working at all
Just brought up two 4.92.2 servers (I know not latest ) and everything that
had to do with math just went crazy. Here is an example of what I mean
notice it triggers on every recipient:

2021-01-18 06:03:42 X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no
F=<AAAAA@AAAA.COM> rejected RCPT <aaaaa@bbb.com>: [RCPT] 0 failed recipients
is a good SPAM indicator
2021-01-18 06:03:43 X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no
F=<AAAAA@AAAA.COM> rejected RCPT <bbbbb@bbb.com>: [RCPT] 1 failed recipients
is a good SPAM indicator
2021-01-18 06:03:43 X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no
F=<AAAAA@AAAA.COM> rejected RCPT <ccccc@bbb.com>: [RCPT] 2 failed recipients
is a good SPAM indicator
2021-01-18 06:03:43 X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no
F=<AAAAA@AAAA.COM> rejected RCPT <ddddd@bbb.com>: [RCPT] 3 failed recipients
is a good SPAM indicator
2021-01-18 06:03:43 X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no
F=<AAAAA@AAAA.COM> rejected RCPT <eeeee@bbb.com>: [RCPT] 4 failed recipients
is a good SPAM indicator
2021-01-18 06:03:43 X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no
F=<AAAAA@AAAA.COM> rejected RCPT <fffff@bbb.com>: [RCPT] 5 failed recipients
is a good SPAM indicator

deny message = $rcpt_fail_count failed recipients is a good SPAM
indicator
!authenticated = *
condition = ${if > {${eval:$rcpt_fail_count}}{5}{yes}{no}}

Pretty much everywhere where an integer comparison takes place it's wrong
and many places where I put in debug lines I would see things such as
verified zero showing up as huge numbers, or just 1 like:

Warning: [DATA] Message Has 578734413500645377 To Or CC Lines

it had zero CC and 1 to and the test

warn set acl_m_TooManyCC = ${reduce {${addresses:$h_To:,$h_Cc:}} {0}
{${eval:$value+1}}}
warn set acl_m_TooManyBC = ${reduce {${addresses:$h_Bcc:}} {0}
{${eval:$value+1}}}

warn log_message = [DATA] Message Has $acl_m_TooManyCC To Or CC Lines
sender_domains = !/xxxx/Mail_My_Mail_Domains
condition = ${if >{$acl_m_TooManyCC}{10}}

warn log_message = [DATA] Message Has $acl_m_TooManyBC BCC Lines
sender_domains = !/xxxx/Mail_My_Mail_Domains
condition = ${if >{$acl_m_TooManyBC}{2}}


I have had to revert back until I can figure this out, I did rebuild clean
a second time but it came out the same, and builds without error.

Any help would be great, I am out of ideas.
--
## 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/
Re: 4.92.2 math or number comparisions not working at all [ In reply to ]
On 18/01/2021 13:53, Rick Cooper via Exim-users wrote:
> Any help would be great, I am out of ideas.

Apart from one pointless use of "eval"... it seems you've
broken something fundamental. You imply you're compiling
from source. What platform? Data model?

I suggest you test using "exim -d+all -be"
and feeding it expansions to try. Start with
${if > {1}{0} {good}{bad}}
--
Cheers,
Jeremy

--
## 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/