How to Edit the exim.conf File in WHM

How to Edit the exim.conf File in WHM

Overview

This document describes the final adjustments to change the IP address that Exim uses to send email.

 

Warning:

This document describes an unsupported workaround that is not guaranteed to work in the future.

  • After you perform these steps, it is the system administrator’s responsibility to manage and maintain the server’s database software.
  • We recommend that only experienced system administrators attempt to perform these steps.
  • cPanel, Inc. is not responsible for any data loss that this procedure may cause.

Edit the /etc/exim.conf file

Warnings:

  • Any edits that you make directly to the /etc/exim.conf file only work temporarily, unless you also make the same edits to the /etc/exim.conf.local file. The /etc/exim.conf.local file is Exim’s override file and stores Exim’s default configuration. If you do not edit the /etc/exim.conf.local file when you edit the /etc/exim.conf file, the system will overwrite your changes when you update Exim.
  • We strongly recommend that you use the Advanced Editor feature to make changes to your Exim configuration.

To edit the /etc/exim.conf file, perform the following steps:

  1. Open the /etc/exim.conf file with a text editor and locate the following lines:
    1
    2
    3
    4
    5
    remote_smtp:
      driver = smtp
    dkim_remote_smtp:
      driver = smtp
  2. Below each driver = smtp line, add the following line:
    connection_max_messages = 1

    The file will resemble the following example:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    remote_smtp:
      driver = smtp
      connection_max_messages = 1
      interface = ${if exists {/etc/mailips}{${lookup{$original_domain}lsearch{/etc/ma
      helo_data = ${if exists {/etc/mailhelo}{${lookup{$original_domain}lsearch{/etc/m
    dkim_remote_smtp:
      driver = smtp
      connection_max_messages = 1
      interface = ${if exists {/etc/mailips}{${lookup{$original_domain}lsearch{/etc/ma
      helo_data = ${if exists {/etc/mailhelo}{${lookup{$original_domain}lsearch{/etc/m
      dkim_domain = $sender_address_domain
      dkim_selector = default
      dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}"
      dkim_canon = relaxed

Was this article helpful?

Related Articles

Leave A Comment?