Skip to main content

Setting SPF uses private IP instead of public

Comments

10 comments

  • cPanelLauren
    Hi @carolainn I had opened a case about mail deliverability reports reporting the internal IP address erroneously and it was found that this seems to only occur in cases where the NAT configuration is not set up properly. Can you tell me what the output of the following is: cat /var/cpanel/cpnat
    0
  • carolainn
    Hello Lauren, Thanks for your quick reply. The output is the following: cat: /var/cpanel/cpnat: No such file or directory
    0
  • cPanelLauren
    Hi @carolainn That may explain the issue. Can you run the following and let me know the output (just remove the actual public IP address) /scripts/build_cpnat
    0
  • carolainn
    Lauren, Here's the output. warn [build_cpnat] Unable to map xx.xxx.x.176 info [build_cpnat] xxx.xx.xx.234 => xxx.xx.xx.234 info [build_cpnat] All publicly routeable addresses are the same as the local address. Not a NAT system.
    0
  • sparek-3
    What does cat /etc/wwwacct.conf | grep ^ADDR show? Does the first octet start with 192 or 10?
    0
  • carolainn
    What does cat /etc/wwwacct.conf | grep ^ADDR show? Does the first octet start with 192 or 10?

    Hello, the output is: ADDR 148.xx.xx.234 ADDR6
    0
  • cPanelLauren
    In your initial message you indicated:
    When I enable the SPF the value uses the private IP of the server, instead of the public one

    But based on the output of that command you do not have a private IP address.
    0
  • carolainn
    In your initial message you indicated: But based on the output of that command you do not have a private IP address.

    Sorry, my mistake. I meant reserved IP (10.xxx.x.176) which only the server uses. All the accounts are configured with the other one (148.xx.xx.234), but when I set the SPF on, it uses the reserved IP by default.
    0
  • cPanelLauren
    Hi @carolainn
    Sorry, my mistake. I meant reserved IP (10.xxx.x.176) which only the server uses. All the accounts are configured with the other one (148.xx.xx.234), but when I set the SPF on, it uses the reserved IP by default.

    10. anything should be a private IP address it sounds as though there may be a misconfiguration with the NAT routing please feel free to open a ticket while we won't be able to resolve issues with the configuration itself we may be able to let you know how to proceed. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!
    0
  • carolainn
    Ok, thank you, I'll let you know as soon as it's resolved.
    0

Please sign in to leave a comment.