You need to edit the Exim Configuration , in order to set the mail server to forward the out going mails.
You can do it from WHM >> Exim Configuration Editor >> Advanced Editor >> Don’t make any changes, just click “save”. This creates file “/etc/exim.conf.local”.
You need to edit /etc/exim.conf.local and need to edit @CONFIG@ and @TRANSPORTSTART@ sections.
You can look for the following options in file /etc/exim.conf.local, edit the accordingly :
Quote:
@AUTH@
@BEGINACL@
@CONFIG@
system_filter_directory_transport = local_copy_outgoing
@DIRECTOREND@
@DIRECTORMIDDLE@
@DIRECTORSTART@
@ENDACL@
@RETRYEND@
@RETRYSTART@
@REWRITE@
@ROUTEREND@
@ROUTERSTART@
@TRANSPORTEND@
@TRANSPORTMIDDLE@
@TRANSPORTSTART@
local_copy_outgoing:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
group = cpaneleximfilter
user = cpaneleximfilter
mode = 0660
maildir_format = true
create_directory = true
|
Quote:
|
cp /etc/cpanel_exim_system_filter /etc/cpanel_exim_system_filter_custom
|
Edit /etc/exim.conf.localops and change the “systemfilter” option to match new file:
Quote:
|
systemfilter=/etc/cpanel_exim_system_filter_custom
|
open /etc/cpanel_exim_system_filter_custom and the following :
Quote:
if $header_from: contains "@senderdomain.com"
then
unseen deliver "other@emailaddress"
endif
|
Replace the email and domain with the actual email and domain.
To Apply these new settings to exim.conf and restart the service.
Quote:
/scripts/buildeximconf
service exim restart
|