Why Change the Outgoing Email IP in cPanel & Exim?

By default, Exim in cPanel uses the server’s main IP address for sending emails. However, there are several reasons why you might want to change this:

  • Avoid blacklisted IPs: If your main IP is on an email blacklist, switching to a clean IP can improve deliverability.
  • Better email management: Assign different IPs to different domains or email accounts.
  • Compliance & reputation management: Keeping transactional and marketing emails on separate IPs prevents one from affecting the other.

Step-by-Step Guide to Changing the Outgoing Email IP

Step 1: Ensure You Have a Secondary IP Address

Before modifying Exim, ensure that your server has additional IP addresses assigned. You can check available IPs in WHM:

  1. Log into WHM.
  2. Navigate to IP Functions → Show IP Address Usage.
  3. Ensure you have at least one additional unused IP.

Step 2: Edit the Exim Configuration

Now, we’ll modify Exim to send emails from a different IP.

  1. In WHM, go to Service Configuration → Exim Configuration Manager.
  2. Click on the Advanced Editor tab.
  3. Find the section labeled “remote_smtp:”.
  4. Modify the section to include the new outgoing IP:
    remote_smtp:
      driver = smtp
      interface = xxx.xxx.xxx.xxx  # Replace with your desired IP address
  5. Click Save and restart Exim.

Step 3: Assign Different IPs to Specific Domains (Optional)

If you want to use different outgoing IPs for different domains:

  1. In WHM, open Exim Configuration Manager.
  2. Go to the Domains and IPs section.
  3. Enable .
  4. Assign specific IPs to each domain via Account Functions → Change Site’s IP Address.

Step 4: Verify and Test the New Outgoing IP

To confirm your emails are sent from the new IP:

  1. Send a test email from a cPanel email account.
  2. Check the email headers in your recipient’s inbox.
  3. Look for the line:
    Received: from (xxx.xxx.xxx.xxx)
  4. Ensure the IP matches the one you configured.

Best Practices for Email Deliverability

  • Update SPF records: Add the new IP to your domain’s SPF record.
  • Set up Reverse DNS (PTR): Ensure the new IP has a proper PTR record.
  • Monitor blacklists: Regularly check if your IP is blacklisted.
  • Use DKIM and DMARC: Authenticate emails for better inbox placement.

Need Assistance?

If you need help configuring Exim or optimizing email deliverability, @CustomerPanel is available 24/7. Check out UnderHost’s Managed Hosting for expert-managed email solutions.