绕过 exim $message_body if 条件中的某些域

绕过 exim $message_body if 条件中的某些域

我有一个自定义的 exim 电子邮件过滤器,其示例如下所示。只是想弄清楚如何绕过针对特定发件人域名(例如“.com”)的过滤器的“$message_body contains”部分,但我仍然想记录邮件 ID 以进行后续操作?

下面的会起作用吗?

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

相关内容