Send email via IPv6 in cpanel v86

Operating System & Version
Centos 7
cPanel & WHM Version
v86.016
Mar 27, 2020
12
0
1
Cranberry Twp, PA
cPanel Access Level
Root Administrator
If anyone has any information that would be great. I have contacted Bluehost, Hostgator, Liquid Web and Hostwinds (each one hosts a VPS of mine) and they seem to be all confused as me. I want to send email via my ipv6 address. I have a VPS with 1 IPv4 and 1 IPv6. I added the domain: IPv6 entry in the /etc/domainips, restarted exim, changed the WHM->Exim Configuration Manager->Basic Editor->Reference /etc/mailips for custom IP on outgoing SMTP connections to "ON" yet emails still send from IPv4 address.
I read through the https://docs.cpanel.net/knowledge-base/email/how-to-configure-the-exim-outgoing-ip-address/ documentation and even rebooted the VPS yet Exim defaults to IPv4. If anyone has any suggestions please let me know as I stated before even the Tier 3 and Tier 4 support memebers of the above mentioned companies cannot come up with a solution. Thank you for your help. Have a great weekend.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,272
313
Houston
Hello,


One thing I want to stress is that not all servers support IPv6 so forcing just IPv6 would be a terrible idea if you're sending mail all over the place. cPanel's Exim favors IPv4 over IPv6 and forcing the use of an IPv6 address is not possible with cPanel's exim implementation. Information on this can be found here: Exim & IPv6 - 68.0.21

I am aware that the documentation here: How to Configure the Exim Outgoing IP Address | cPanel & WHM Documentation indicates by telling you how to configure this with IPv6 that it will send with the IPv6 address but it is incorrect and there is currently CPANEL-7173 open for this.
 
Mar 27, 2020
12
0
1
Cranberry Twp, PA
cPanel Access Level
Root Administrator
So far from this scratch VPS i have assigned my IPv6 to the primary cpanel account/domain in WHM, setup my AAAA and SPF for the IPv6. Manually edited the exim.conf file remote_smtp (transport) section (interface line only)

remote_smtp:
driver = smtp
interface = <; IPV6RREMOVED (the <; is needed to escape the colons)
.....

changed the /etc/mailhelo from *:123.hostname.com to IPV6RREMOVED:123.hostname.com

The sender IP shows ::1 instead of my IPv4 that's also on my VPS (I was given 1 IPv4 and 1 IPv6)

Any other help would be greatful thank you community members
 
Last edited by a moderator: