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