Exim System Filter Memblokir Email Tujuan

Berikut ini adalah string exim sistem filter untuk memblokir email tertentu berdasarkan pengirim atau tujuan

#Custom exim block for specific users $date
if $header_from: contains "user@domain.tld" or $header_from: contains "user2@domain.tld" and
$header_to: contains "@gmail.com" or $header_to: contains "@outlook.com" or $header_to: contains "@hotmail.com" or $header_to: contains "@yahoo.com"
then
fail text "This message is not able to be sent to the destiation due to your server configuration. Please speak with your server administrator."
seen finish
endif

Memfilter berdasarkan tujuan saja

if ("$header_to:, $header_cc:" contains "@yahoo.com")
then
fail text "Email to this mail address is temporarily blocked by the Administrator"
seen finish
endif