Documentation Index

Fetch the complete documentation index at: https://docs.serversaustralia.com.au/llms.txt

Use this file to discover all available pages before exploring further.

Change your outgoing Email IP address on a WHM / cPanel server

Prev Next

Use the below listed guide to change the outgoing mail IP address for the entire server:

  1. Log into WHM and go to the 'Exim Configuration Manager':

    The Exim Configuration Manager is highlighted in the WHM service configuration menu.

  1. Through the ‘Basic Editor’, select the 'Domains and IPs' section:

    Exim Configuration Manager interface showing Basic Editor and Domains and IPs options.

Followed by turning the following setting to ‘On’ and save your changes.Instructions for configuring custom IP for outgoing SMTP connections in mail settings.

  1. SSH to the server and edit the /etc/mailips file in your favourite command line text editor. If you're unsure of which text editor to use, 'nano' is the easiest for beginners.

    root@server ~]# nano /etc/mailips

  1. Edit the file to make sure it looks like this:

    *: 123.123.123.123

    (Make sure you replace 123.123.123.123 with the actual IP address you wish to send email from).

  2. Save the file.

    That's it! Your Exim mail server will now send email from the IP address you've specified in the /etc/mailips file.

Please Note!

You will need to make sure your domain's SPF record specifies the new IP address or your email may not be accepted by the receiving host. i.e. "v=spf1 a mx ip4:123.123.123.123 ~all"