The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with SPF

Discussion in 'E-mail Discussions' started by squaredd, Mar 27, 2014.

  1. squaredd

    squaredd Member

    Joined:
    Jan 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I need some help

    Some mails received from xxx.org domain on our mail server are being discarded by the SPF.
    The reason received by the sender is:
    Code:
    550-SPF: 74.125.82.181 is not allowed to send mail from xxx.org
    That IP address is from google mail.

    The SPF record of xxx.org is set to:
    Code:
    "v=spf1 include:email.domain.co.uk redirect=_spf2.otherdomain.net include:_spf.google.com ~all"
    For what I understand from the SPF record syntax, “redirect=_spf2.otherdomain.net” causes to ignore the other two “includes:” So only the SPF from “=_spf2.otherdomain.net” is being used.

    Is this correct?

    Do you think that changing their SPF to
    Code:
    "v=spf1 include:email.domain.co.uk include:_spf2.otherdomain.net include:_spf.google.com ~all"
    should fix the problem?
     
  2. squaredd

    squaredd Member

    Joined:
    Jan 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Anyone can point us in the right direction. We've contacted the remote domain with the previous info but didn't believe us. They say it is our fault.

    TY
     
  3. markusa

    markusa Member

    Joined:
    Mar 26, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I can't tell what the redirect is causing, but in order to include the mentioned IP, you need something like ip4:74.125.82.181 as it appears, that this IP is not included in their _spf.google.com settings.
    You can also include all IP's from google using CIDR format like ip4:74.125.0.0/16

    Code:
    "v=spf1 ip4:74.125.0.0/16 include:email.domain.co.uk redirect=_spf2.otherdomain.net include:_spf.google.com ~all"
     
  4. squaredd

    squaredd Member

    Joined:
    Jan 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you Markusa. I've done a look up of the google SPF and it includes the 74.125.0.0/16 block.

    So I suspect that the "redirect" modifier is causing this behaviour.

    Can anyone confirm this?

    TY
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Out of curiosity, is there any particular reason you are using this custom SPF record instead of the default record implemented through cPanel? Is there a particular need you must accommodate, or is using the standard SPF record implemented through cPanel an option?

    Thank you.
     
Loading...

Share This Page