Introduction
You may want to change the IP address used to send outbound mail on your cPanel & WHM system. This guide explains how to do this; note that you must have root access to the system to make these changes.
Procedure
- Log in to WHM.
- Navigate to Exim Configuration Manager.
- Make sure the following option is enabled:
Reference /etc/mailips for outgoing SMTP connections - In SSH, edit the
/etc/mailips
file and add the following line, replacing 203.0.113.33 with the IP address from which outbound messages should be sent. (NOTE: If you are using a system with a NAT network configuration, enter the private IP address):*: 203.0.113.33
With this code, you configure Exim to send mail for all domains from the 203.0.113.22 IP address on your system.
If you have multiple IPs and you would like to specify a different IP for some domains, you can do so with a configuration similar to the following:
domain1.tld: 203.0.113.11
domain2.tld: 203.0.113.22
*: 203.0.113.33
For additional details and more customization options, see our documentation here:
Comments
0 comments
Article is closed for comments.