Select Page

Receive a copy for Outgoing Emails from a specific address on a CPanel server with Exim

  • Knowledge Base
  • Linux
  • Exim
  • Receive a copy for Outgoing Emails from a specific address on a CPanel server with Exim
  1. Within Web Host Manager, go to Exim Configuration Manager then Advanced Editor, click on Save without changing anything in this section
  2. This should create a file named /etc/exim.conf.local
  3. Edit the above mentioned file and add some configurations to the @[email protected]and @[email protected] sections
    @[email protected]
    system_filter_directory_transport = local_copy_outgoing
    
    @[email protected]
    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
  4. Next make a copy of /etc/cpanel_exim_system_filter

    cp /etc/cpanel_exim_system_filter /etc/cpanel_exim_system_filter_custom
  5. Add the following code to the bottom of /etc/cpanel_exim_system_filter_custom

    if $header_from: contains "[email protected]"
    then
    unseen deliver "[email protected]"
    endif
  6. Now within Web Host Manager, go to Exim Configuration Manager and Advanced Editor and follow the screenshot below
  7. Click on Save and your done

Last Updated On April 07, 2018

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.