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.

SPF record setup domain ip

Discussion in 'E-mail Discussions' started by nrider321, Jan 23, 2014.

  1. nrider321

    nrider321 Member

    Joined:
    Dec 7, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    So I am trying to limit emails being sent out as spam by domain being used for registrations. currently the activation emails go in the spam box of new members gmail etc.

    I read that enabling SPF under email authentication was a good idea. I have done so and the record was setup
    ex. v=spf1 +a +mx +ip4:0.0.0.12 ~all
    However this ip is the host server ip and not the the cpanel domain ip the spf record was enabled with (also domain sending the emails)

    Is this normal and because this was enabled on the cpanel domain account, the domain ex. 0.0.0.13 is already considered ok? Or do I still need to add the 0.0.0.13 to the additional ip4 block list so that it ok to send mail?

    Also I keep seeing that some records end with -all instead of ~all. Can someone explain the difference and which is better to use?

    Thank you.
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The SPF record configured by cPanel will use the main server IP address. This is by design. The use of "+a" and "+mx" in the SPF record accounts for the possibility the domain name is assigned a dedicated IP address.

    Thank you.
     
  4. nrider321

    nrider321 Member

    Joined:
    Dec 7, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ok that makes sense, great thank you.
     
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Sorry just to be clear, if the customer has a dedicated IP and you have the server set to use dedicated IPs for sending mail.

    Would you still use the main shared IP in the SPF record?

    In this part: (v=spf1 +a +mx +ip4:12.123.123.12 ~all)

    Thanks!
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, that's still a valid SPF record as long as either the A record or the MX record resolves to the dedicated IP address used for sending email.

    Thank you.
     
Loading...

Share This Page