[exim] failed to expand condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Valentin S. Ryabinin
Date:  
À: exim-users
Sujet: [exim] failed to expand condition
hello
exim_4.41

i just try exclude local hosts sending e-mails from spam check (simple
variant):

bogofilter_router:
driver = accept
condition = "${if and {\
{!eq {${mask:$sender_host_address/24}}{192.168.0.0/24}}\
{<{$message_size}{128k}}}{1}{0}}"
transport = bogofilter_trans

if host in 192.168.0.0/24 - work ok.

if host not in 192.168.0.0/24, (try from 10.0.0.12) i have error in log:
failed to expand condition "${if and {{!eq
{${mask:$sender_host_address/24}}{192.168.0.0/24}}{<{$message_size}{128k}}}{1}{0}}" for bogofilter_router router: "/24" is not an IP address

this is debug:
15:13:19 32215 --------> bogofilter_router router <--------
15:13:19 32215 local_part=bass domain=asanctus.vlgroup.adm
15:13:19 32215 checking "condition"
15:13:19 32215 expanding: $sender_host_address/24
15:13:19 32215    result: 10.0.0.12/24
15:13:19 32215 expanding: ${mask:$sender_host_address/24}
15:13:19 32215    result: 10.0.0.0/24
15:13:19 32215 expanding: 192.168.0.0/24
15:13:19 32215    result: 192.168.0.0/24
15:13:19 32215 expanding: $message_size
15:13:19 32215    result: 498
15:13:19 32215 expanding: 128k
15:13:19 32215    result: 128k
15:13:19 32215 condition: and {{!eq
{${mask:$sender_host_address/24}}{192.168.0.0/24}}{<{$message_size}{128k}}}
15:13:19 32215    result: true
15:13:19 32215 expanding: 1
15:13:19 32215    result: 1
15:13:19 32215 expanding: 0
15:13:19 32215    result: 0
15:13:19 32215 skipping: result is not used
15:13:19 32215 expanding: ${if and {{!eq
{${mask:$sender_host_address/24}}{192.168.0.0/24}}{<{$message_size}{128k}}}{1}{0}}}
15:13:19 32215    result: 1
15:13:19 32215 calling spamoracle_router router


what is wrong?

p.s. if i try {!eq {mask:$sender_host_address/24}{192.168.0.0/24}} -> in
log: Too many "Received" headers - suspected mail loop