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.

editing zone templates help

Discussion in 'General Discussion' started by Cloud9, Dec 27, 2013.

  1. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi my zone template as standard is this

    Code:
    ; cPanel %cpversion%
    ; Zone file for %domain%
    $TTL %ttl%
    @      %nsttl%	IN      SOA     %nameserver%. %rpemail%. (
    		%serial%	; serial, todays date+todays
    		86400		; refresh, seconds
    		7200		; retry, seconds
    		3600000		; expire, seconds
    		86400 )		; minimum, seconds
    
    %domain%. %nsttl% IN NS %nameserver%.
    %domain%. %nsttl% IN NS %nameserver2%.
    %domain%. %nsttl% IN NS %nameserver3%.
    %domain%. %nsttl% IN NS %nameserver4%.
    
    %nameserverentry%. IN A %nameservera%
    %nameserverentry2%. IN A %nameservera2%
    %nameserverentry3%. IN A %nameservera3%
    %nameserverentry4%. IN A %nameservera4%
    
    %domain%. IN A %ip%
    
    localhost.%domain%. IN A 127.0.0.1
    
    %domain%. IN MX 0 %domain%.
    
    mail IN CNAME %domain%.
    www IN CNAME %domain%.
    ftp IN A %ftpip%
    
    
    Now i want to add this

    Code:
    %domain%. IN TXT "v=spf1 a mx ptr ip4:xx.xxx.xx.3 ip4:xx.xxx.xx.4  mx:%domain%. include:mailrelaystation.co.uk ?all"
    
    So do i remove the line

    Code:
    %domain%. IN MX 0 %domain%.
    Or should i just add this

    Code:
    %domain%. IN TXT     "v=spf1 ip4 xx.xxx.xx.3 ip4:xx.xxx.xx.4 mx a ptr include:mailrelaystation.co.uk ?all"
     
    #1 Cloud9, Dec 27, 2013
    Last edited: Dec 27, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,417
    Likes Received:
    1,213
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    SPF records are not meant to replace MX records so it's important you leave the existing MX record in-place.

    Thank you.
     
  3. Cloud9

    Cloud9 Active Member

    Joined:
    Sep 17, 2012
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks, Have a good week
     
Loading...

Share This Page