On Mon, 18 Jul 2022, SÅ‚awomir Dworaczek via Exim-users wrote:

tries to make a rule to bypass the filtering of specific messages containing $ h_X-Bogosity: MATCH 
"Spam" to deliver messages to recipients follow my rule. what should I put for 
"deliver ??????????????"

if $h_X-Bogosity: MATCH "Spam" and $h_from: contains "em...@address.com" or $h_from: 
contains "ema...@address2.com"
then
deliver ??????????????
elif
$h_X-Bogosity: MATCH "Spam" or
   $header_subject: contains "VIAGRA" or
   $message_body: contains "Bitcoin?"
then
   logfile /var/log/exim/spam.log
   logwrite "$header_subject /  $sender_host_address / $sender_address / $local_part 
/ $reply_address"
   deliver alls...@mydomain.com
   seen finish
endif

I would use a "not" and nested "if"s to avoid the issue:

if not ($h_X-Bogosity: MATCH "Spam" and $h_from: contains "em...@address.com" or $h_from: 
contains "ema...@address2.com" )
then
    if
       $h_X-Bogosity: MATCH "Spam" or
       $header_subject: contains "VIAGRA" or
       $message_body: contains "Bitcoin?"
    then
        logfile /var/log/exim/spam.log
        logwrite "$header_subject /  $sender_host_address / $sender_address / 
$local_part / $reply_address"
        deliver alls...@mydomain.com
        seen finish
    endif
endif


--
Andrew C. Aitchison                      Kendal, UK
                   and...@aitchison.me.uk
--
## 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/

Reply via email to