I was Asking more about how to change a single account mail IP and Reverse DNS (PTR) for The EXim
Here is how I do that:
1st in
WHM -> Service Configuration -> Exim Configuration Manager -> Domains and IPs:
Send mail from the account’s IP address = Off
Use the reverse DNS entry for the mail HELO/EHLO if available = Off
Reference /etc/mailhelo for custom outgoing SMTP HELO = On
Reference /etc/mailips for custom IP on outgoing SMTP connections = On
Lets say that the main IP to send emails from is 12.34.56.1
If 12.34.56.1 is your server's public IP and your server's hostname is host.example.com , then host.example.com must resolve to 12.34.56.1, AND reverse dns of 12.34.56.1 = host.example.com.
Now in /etc/mailhelo it's like this:
*: host.example.com
and in /etc/mailips it's like this:
*: 12.34.56.1
Ok, so if you want that emails sent from
clientdoman.com are sent from IP 12.34.56.2 you do this:
you create hostname
host2.example.com, and
host2.example.com resolves to
12.34.56.2, AND reverse dns of
12.34.56.2 =
host2.example.com
Then in
/etc/mailhelo it's like this:
clientdoman.com: host2.example.com
*: host.example.com
and in
/etc/mailips
clientdoman.com: 12.34.56.2
*: 12.34.56.1
After that emails sent from
clientdoman.com are sent from IP
12.34.56.2, the HELO is
host2.example.com, all other emails are sent from IP
12.34.56.1 with HELO
host.example.com.
And when you change /etc/mailhelo and/or /etc/mailips you must restart Exim.
EDIT: corrected some typos