Results 1 to 2 of 2

How to change SMTP server IP (Exim IP) on WHM server?

This is a discussion on How to change SMTP server IP (Exim IP) on WHM server? within the Web & Server Administration forums, part of the Web Designing & Development category; Login to WHM Click Exim Configuration Editor Check the box next to: "Send outgoing mail from the ip that matches ...

  1. #1
    Senior Member hostechsupport's Avatar
    Join Date
    Feb 2017
    Posts
    404

    Post How to change SMTP server IP (Exim IP) on WHM server?

    Login to WHM

    • Click Exim Configuration Editor
    • Check the box next to:
    • "Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface)"
    • Save Changes
    • Then edit the file /etc/mailips
    • from shell and add: *: #ReplacewithnewIP#
    • service exim restart

    Login to Shell

    • Access the Exim configuration file:

    nano /etc/exim.conf

    • Locate remote_smtp
    • The default setup will look like:


    remote_smtp:
    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}}+



    • Change to:

    remote_smtp:
    driver = smtp
    interface = 12.14.12.14 # Change to your server IP address.

    • Save changes and exit.
    • Restart Exim


    If there is an exim update when you upgrade your cPanel server you will need to re-enter the interface again.
    HostechSupport
    Best Linux/ Windows Server Management
    24x7 Skype: hostechsupportindia

  2. #2
    Senior Member
    Join Date
    Jul 2017
    Posts
    188

    Default Re: How to change SMTP server IP (Exim IP) on WHM server?

    Thanks for sharing the useful information...

Tags for this Thread