Ignorar alguns domínios no exim $ message_body se condição

2

Eu tenho um filtro de e-mail exim personalizado, cuja amostra é mostrada abaixo. Apenas tentando descobrir como ignorar a parte "$ message_body contains" do meu filtro para nomes de domínio de remetentes específicos, como ".com", mas ainda quero registrar o ID da mensagem para acompanhamento?

O abaixo funciona?

if
 $message_body contains "Hello PayPal" or
 $message_body contains "Dear valued PayPal" or
 $message_body contains "We have a dedicated team" or
 $message_body contains "find love again" or
 $message_body contains "rediscover love" or
 $message_body contains "forward to your positive reply"
 then
  if  
  $sender_address contains ".com" or
  $sender_address contains ".ca"
  then
  logfile /var/log/filter.log 0666
  logwrite "$tod_log Message Body Contains SPAM keywords - Email Sent – Header from: $header_from $message_id" 
  else
  logfile /var/log/filter.log 0666
  logwrite "$tod_log Message Body Contains SPAM keywords – Email Blocked - Header from: $header_from $message_id" 
  freeze 
  endif
endif


if
$header_from contains "igorexdd" or
$header_from contains "secret." or 
$header_from contains "netjobscom" 
then
logfile /var/log/filter.log 0666
 logwrite "$tod_log Email Address Contains Hackers email – Header from:        
$header_from $message_id" 
freeze 
endif
    
por Andrew 03.09.2018 / 01:15

0 respostas