Osama Tariq

Well-Known Member
Nov 27, 2014
206
2
18
Lahore, Pakistan
cPanel Access Level
Root Administrator
Twitter
I want to blocked outgoing emails and delivered that emails to specific email id, but it's not working. below are the details:

Code:
grep ^system_filter /etc/exim.conf
system_filter_user = cpaneleximfilter
system_filter_group = cpaneleximfilter
system_filter = /usr/local/cpanel/etc/exim/sysfilter/options/cpanel_exim_system_filter

Code:
if ( $received_protocol is "local" or
$received_protocol is "esmtpa" ) and
($header_from contains "@gmail.com" )
then
deliver "[email protected]"
seen finish
endif
 

Osama Tariq

Well-Known Member
Nov 27, 2014
206
2
18
Lahore, Pakistan
cPanel Access Level
Root Administrator
Twitter
There's no error i have already checked, actually this filter is not working for me. Is there any kind of improvement ?
i want to blocked all outgoing external emails that would be send to gmail,yahoo etc and if somebody send than it would be delivered to specific local email address.