block outgoing email to special receiver

parsibox

Verified User
Joined
Apr 18, 2013
Messages
50
hi
how can i block sending email from my server to special receiver outside ?
 
You will have to deal with Exim configuration directly (acl_check_rcpt section). You can find numerous examples just using any search engine.
 
i need something like this
Code:
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

i add this to /etc/exim.conf but exim not start!
 
Back
Top