사용자 정의 exim 이메일 필터가 있는데 그 예가 아래에 나와 있습니다. 특정 발신자 도메인(예: ".com")을 대상으로 하는 필터의 "$message_body 포함" 부분을 우회하는 방법을 찾으려고 하는데 후속 조치를 위해 메시지 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