How to change the SMTP server IP [Exim] address in cPanel/WHM

December 1, 2023 / cPanel & WHM

This guide explains how to change the SMTP server IP [Exim] address in cPanel/WHM.

Let us follow the steps-

  1. Log in to WHM.
  2. Select the “Exim Configuration Manager” option under “Service Configuration”.
    Exim Configuration Manager
  3. On the right side of the screen you will find a search box, type “Reference /etc/mailips for custom IP on outgoing SMTP connections”, select the “On” option and click on the “Save” button.On
  4. It will be enabled
    SMTP server IP
  5. Secondly, you need access your server through SSH..
  6. Next, make edits to the specified file at “/etc/mailips” by using the text editor “nano” and add the second sending IP address.nano /etc/mailips
  7. Save the file.
  8. Lastly, edit nano /etc/exim.conf file.
  9. Search for this default command-
    driver = smtp
    interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
    helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}
  10. Replace the above outlined command with the below-
    driver = smtp
    interface = # Change to your server IP address.
  11. Save the changes and leave.
  12. Then, restart exim via cPanel/WHM.

Note-  Kindly be aware that in the event of a future cPanel update, whether initiated manually or occurring automatically, you may need to readdress and rectify the issue once more.

This approach allows you to modify the SMTP server IP [Exim] address within cPanel/WHM. Should you face any challenges, feel free to reach out to our dedicated support specialists, accessible round the clock for your assistance.

Dominos Search