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:
- Log into WHM.
- Navigate to IP Functions → Show IP Address Usage.
- 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.
- In WHM, go to Service Configuration → Exim Configuration Manager.
- Click on the Advanced Editor tab.
- Find the section labeled “remote_smtp:”.
- Modify the section to include the new outgoing IP:
remote_smtp: driver = smtp interface = xxx.xxx.xxx.xxx # Replace with your desired IP address
- 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:
- In WHM, open Exim Configuration Manager.
- Go to the Domains and IPs section.
- Enable .
- 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:
- Send a test email from a cPanel email account.
- Check the email headers in your recipient’s inbox.
- Look for the line:
Received: from (xxx.xxx.xxx.xxx)
- 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.