Change Exim Sending IP
By default, every cPanel dedicated or VPS server sends its email by using the main servers IPv4 address. In this guide, we’re going to cover how you can change Exim sending IP to send outgoing mail.
If you have sites that use a dedicated IP, we’re also going to show you how to configure Exim to send mail through users a dedicated IP. All steps in this article require you have root access to your server.
How to configure Exim to send using sites dedicated IP
- Login to WHM and in the search box type “Exim configuration manager”
- Enable the Send mail from account’s dedicated IP address option
NOTE: Ensure the correct rDNS entry is in place to avoid having your email marked as spam
How to change Exim’s outgoing IPv4 address
Login to WHM and in the search box type “Exim configuration manager”
Enable the following options;
Reference /etc/mailhelo for outgoing SMTP HELO
Reference /etc/mailips for outgoing SMTP connections
In an ssh console edit the below files. They should already be created but if not, just create them;
nano /etc/mailhelo
In the mailhelo file place the required domain names in the following format;
domain.com: domain.com
example.domain.com: domain.com
In an ssh console open the file /etc/mailips. This file controls the IPs used to send per domain name or subdomain name
nano /etc/mailips
In the mailips file place the domain name and IP you wish to use to send mail in the following format
example.com: 192.168.0.2
sub.example.com: 192.168.0.2
example.net: 192.168.0.3
addon.example.net: 192.168.0.3
*: 192.168.0.1
Save all files and then restart Exim issuing the restart command
/etc/init.d/exim restart
Your Exim sending IP should now be changed. Ensure you have the correct rDNS entries for the new IPs.
How was this article? – Change Exim sending IP
You might also like
More from cPanel
How To Install A Cloudflare Origin SSL Certificate In cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
Create a SWAP partition on CentOS, RHEL and AlmaLinux without a reboot
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
Help fixing Error: last request failed: [AUTH] Authentication failed.
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …