SPF check failed to Google - Shows IPv6 address

Akshunhiro

Registered
Feb 9, 2023
2
0
1
Australia
cPanel Access Level
Website Owner
Hi all, hoping to get some help on how I can set the server to use IPv4.

SPF & DKIM have been configured but seems the server is sending from an IPv6 address instead of IPv4.

I was thinking of adding the IPv6 address to the SPF record but noticed it was vastly different while testing over the last few days.

While scouring forums, I did see a potential fix in WHM but I don't have the setting in my dashboard
(WHM Home > Service Configuration > Exim Configuration Manager > Advanced Editor).

Also tried binding the address in PHP Mailer config but that didn't work e.g.

Code:
$mail->SMTPOptions = [
    'socket' => [
        'bindto' => "$bound_ip:0",
    ],
];
I did see suggestions to use SMTP rather than PHP Mailer but kinda in over my head trying to configure that.
 

OfficialHax

Member
Oct 2, 2020
14
6
78
Ulefoss, Norway
cPanel Access Level
Root Administrator
Hello Akshun.
I assume youve assigned the ipv4 IP to the site in question?
Do this you, will need to be able to access WHM. WHM is the dashboard to admin the cpanel accounts in question.

I would check out the following article from Cpanel on how you configure your Exim mailer to force your ipv4.

As you mentioned, I would really suggest relaying your email throught an smtp relay.

Hope this helped
 
Last edited:
  • Like
Reactions: cPRex

Akshunhiro

Registered
Feb 9, 2023
2
0
1
Australia
cPanel Access Level
Website Owner
Thanks for the response!

TBH, I'm a little out of my depth with this. I also tried getting terminal access to check configs but can't even do that (even though it's now optioned on in my account settings).

I've reached out to our host and they've also suggested configuring SMTP as this plugin we're using is indeed using the default PHPMailer but not sure what I need to do.

WordPress has SMTP configured for some forms which is working fine, not sure if I can piggy-back off that with its function?