Knowledgebase: WHM
HOW TO: Change SMTP IP Address
Posted by Asilah A. on 15 August 2023 05:52 PM

The /etc/mailips file controls the IP address from which each domain sends mail.


1- SSH into the server


2- Use 'nano' as per below or any text editor such as 'vim' to edit SMTP IP Address:

# nano /etc/mailips


3- Edit accordingly

Note: the *: in the file refers to all domains. Meaning all domains will use that SMTP IP. Below example will only change SMTP IP to one domain


4- Save the file and restart exim service as per below command:

# service exim restart


If you face any difficulties on the setup, please feel free to contact our support team by submitting a ticket on or emailing out support team at

(0 vote(s))
Not helpful

Comments (0)
Copyright © 1998 - 2021 Shinjiru International Inc. All Rights Reserved.
ERROR: This domain name (, does not match the domain name in the license key file

For assistance with your license, please contact the Kayako support team: