Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Adelaide, Australia
    Posts
    3

    Default DNS Zone Templates for SPF records

    Hi All

    A couple of questions -

    I am implementing SPF records as TXT entries in the DNS of all my existing sites in order to mitigate against spoof emails using my domain names. I want to change the zone template for new accounts also. Which template do I need to change - is it just the 'standard' template.
    What are the other templates for.

    Second question - when will Cpanel support SPF type DNS records.

    Thanks

    Martin
    Last edited by mrgold; 10-07-2006 at 10:54 PM. Reason: typos

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    On ours, we actually added the SPF record to all 3 of the templates even though
    some domains might not actually be used for email. Doesn't hurt though.

  3. #3
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Quote Originally Posted by Spiral
    On ours, we actually added the SPF record to all 3 of the templates even though
    some domains might not actually be used for email. Doesn't hurt though.
    Hello,

    how exactly did you do this? Can you post a sample?

    Thx's
    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by mickalo
    how exactly did you do this? Can you post a sample?
    Sure, no problem ....

    Code:
    %domain%. IN TXT "v=spf1 ip4:x.x.x.x  a mx a:(hostname) mx:(hostname) mx:(mail server) mx:%domain% include:(mail server) ~all"
    Add the above line to your DNS templates but with the following changes:

    x.x.x.x = your server's ip address bound to Exim
    (you could use %ip% if you use mostly shared IP accounts)

    (hostname) = your server's hostname

    (mail server) = your server's mail server (or primary domain name)

    If you have multiple IP addresses bound to Exim, you can add additional
    "ip4:x.x.x.x" sections in line to the SPF line

    Hope that helps ....

    Pretty simple and works!



    NOTE: Adding SPF to the templates will only effect new accounts and will not change existing domains but you can
    update those by modifying the respective /var/named/(domain).db files or rebuilding the DNS for the domains
    Last edited by Spiral; 10-08-2006 at 09:43 AM.

  5. #5
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Quote Originally Posted by Spiral
    Sure, no problem ....

    Code:
    %domain%. IN TXT "v=spf1 ip4:x.x.x.x  a mx a:(hostname) mx:(hostname) mx:(mail server) mx:%domain% include:(mail server) ~all"
    Add the above line to your DNS templates but with the following changes:

    x.x.x.x = your server's ip address bound to Exim
    (you could use %ip% if you use mostly shared IP accounts)

    (hostname) = your server's hostname

    (mail server) = your server's mail server (or primary domain name)

    If you have multiple IP addresses bound to Exim, you can add additional
    "ip4:x.x.x.x" sections in line to the SPF line

    Hope that helps ....

    Pretty simple and works!



    NOTE: Adding SPF to the templates will only effect new accounts and will not change existing domains but you can
    update those by modifying the respective /var/named/(domain).db files or rebuilding the DNS for the domains
    This one here:
    Code:
    x.x.x.x = your server's ip address bound to Exim
    (you could use %ip% if you use mostly shared IP accounts)
    what does this mean ... which IP are you referring too here?

    I assume we could edit all the exisiting DNS zone files and add this to them them via the WHM >> Edit DNS zones ... correct?

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  6. #6
    Member
    Join Date
    Mar 2006
    Posts
    378

    Default

    Quote Originally Posted by mickalo
    This one here:
    Code:
    x.x.x.x = your server's ip address bound to Exim
    (you could use %ip% if you use mostly shared IP accounts)
    what does this mean ... which IP are you referring too here?

    I assume we could edit all the exisiting DNS zone files and add this to them them via the WHM >> Edit DNS zones ... correct?

    Mickalo
    Usually that's your primay share IP address. You may get that from the dnsreport.com in the MX zone.
    Tweakservers | Professional Server Setup & Security Hardening
    Authorised SmarterTools Reseller, SSL Certificate & TRUSTe Privacy Policy

  7. #7
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Quote Originally Posted by tweakservers
    Usually that's your primay share IP address. You may get that from the dnsreport.com in the MX zone.
    Ok, thanks. that's what I though it was

    Appreciate the info.

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  8. #8
    Registered User
    Join Date
    Mar 2005
    Location
    Adelaide, Australia
    Posts
    3

    Default

    Quote Originally Posted by Spiral
    Sure, no problem ....

    Code:
    %domain%. IN TXT "v=spf1 ip4:x.x.x.x  a mx a:(hostname) mx:(hostname) mx:(mail server) mx:%domain% include:(mail server) ~all"
    Add the above line to your DNS templates but with the following changes:

    x.x.x.x = your server's ip address bound to Exim
    (you could use %ip% if you use mostly shared IP accounts)

    (hostname) = your server's hostname

    (mail server) = your server's mail server (or primary domain name)

    If you have multiple IP addresses bound to Exim, you can add additional
    "ip4:x.x.x.x" sections in line to the SPF line

    Hope that helps ....

    Pretty simple and works!



    NOTE: Adding SPF to the templates will only effect new accounts and will not change existing domains but you can
    update those by modifying the respective /var/named/(domain).db files or rebuilding the DNS for the domains
    Thanks. I'm using a much simpler entry, in the 'standard' template -

    %domain%. IN TXT "v=spf1 a mx -all"

    Note that the "~" you've used gives a soft response, whereas I am using a "-" which gives a fail response..

    This entry produces good test results.

    SPF org suggests adding a

    %domain%. IN SPF "v=spf1 a mx -all", but this isn't supported yet on my server.

    I also have the following templates -

    simple
    simple.rej
    simple.orig
    standard.rej
    standard.orig
    and some ftp templates.

    When are each of these templates used ? I'm assuming that the 'standard' template is the one used when I create a new site ?

    Martin

  9. #9
    Member freedog96150's Avatar
    Join Date
    Mar 2005
    Location
    Nevada, USA
    Posts
    68

    Default

    Anyone answer as to when the additional template files are used???
    **********************
    Brian Frias
    "Without fear, there is no
    courage"
    **********************

  10. #10
    Registered User
    Join Date
    Mar 2005
    Location
    Adelaide, Australia
    Posts
    3

    Default SPF Records

    Quote Originally Posted by freedog96150 View Post
    Anyone answer as to when the additional template files are used???
    No, not yet.

    Nor when SPF type records will be supported, bu this may not be a Cpanel issue ???

    Martin

Similar Threads & Tags
Similar threads

  1. DNS Zone Templates
    By ChrisFirth in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-06-2009, 03:08 PM
  2. DNS Zone Templates problem
    By karlos in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 11-26-2008, 11:54 AM
  3. Adding DNS Zone Templates
    By infinitymedia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-15-2007, 05:55 PM
  4. Replies: 21
    Last Post: 04-12-2007, 06:57 PM
  5. DNS Zone Templates
    By Stevez in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-06-2004, 01:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube