SOLVED Bypass User from Global exim filter

Osama Tariq

Well-Known Member
Nov 27, 2014
206
2
18
Lahore, Pakistan
cPanel Access Level
Root Administrator
Twitter
Is it possible to bypass any specific domain or email id from global exim filter:

#cat /usr/local/cpanel/etc/exim/sysfilter/options/cpanel_exim_system_filter


Code:
if
($received_protocol is "local"
or $received_protocol is "smtp"
or $received_protocol is "smtps"
or $received_protocol is "esmtp"
or $received_protocol is "esmtpa"
or $received_protocol is "esmtps"
or $received_protocol is "esmtpsa")
and ("$h_subject:" contains "swiss")
or ("$h_subject:" contains "sales")
or ("$h_subject:" contains "marketing")
or ("$h_subject:" contains "promotions")
then
  logwrite "$tod_full $message_id from $sender_address contained **SPAM** $h_subject to $h_to keywords"
seen finish
endif