Announcement

Collapse
No announcement yet.

How to Edit the /etc/exim.conf File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Edit the /etc/exim.conf File

    Overview

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

    Before you perform this procedure, you must follow the directions in our How to Configure Exim's Outgoing IP Address documentation.

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

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

    Edit the /etc/exim.conf file

    Warnings:
    1.Any edits that you make directly to the /etc/exim.conf file only works 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.
    2.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:

    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:

    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


    Regards,
    Dexter
    http://webhosting.uk.com
Working...
X