Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cpanel:smx-zone-template [2010-03-03 19:56:04]
shaun.reitan
cpanel:smx-zone-template [2011-05-25 15:22:07]
garrett.plasky Approved
Line 2: Line 2:
  
 Our sMX panel makes use of secondary MX record entries to facilitate mail delivery to the sMX server. MX records include a 'weight' value and this value is used to determine the priority of mailserver delivery. Secondary MX entries are determined by having a higher relative weight than the record associated with the primary mailserver. The numbers themselves are not relevant as absolute values so much as they are as compared to other weights. For instance, consider for mail1 and mail2 the following entries that will function identically: Our sMX panel makes use of secondary MX record entries to facilitate mail delivery to the sMX server. MX records include a 'weight' value and this value is used to determine the priority of mailserver delivery. Secondary MX entries are determined by having a higher relative weight than the record associated with the primary mailserver. The numbers themselves are not relevant as absolute values so much as they are as compared to other weights. For instance, consider for mail1 and mail2 the following entries that will function identically:
-<q>example.com    3600   IN  MX  1   mail1.example.com+<sxh plain>example.com    3600   IN  MX  1   mail1.example.com
 example.com    3600   IN  MX  2   mail2.example.com example.com    3600   IN  MX  2   mail2.example.com
  
Line 9: Line 9:
    
 example.com    3600   IN  MX  5      mail1.example.com example.com    3600   IN  MX  5      mail1.example.com
-example.com    3600   IN  MX  2000   mail2.example.com</q>+example.com    3600   IN  MX  2000   mail2.example.com</sxh>
  
 Mail1 would be considered the 'primary' mailserver and mail2 would be considered the 'secondary' mailserver in these cases. Wikipedia has a nice writeup on the function of weights for a more verbose description for the inquisitive:[[http://en.wikipedia.org/wiki/MX_record#Why_have_priority.3F|MX Record Priorities]]. For this tutorial, we'll stick to 0 for primary MX servers and 10 for secondary ones. Mail1 would be considered the 'primary' mailserver and mail2 would be considered the 'secondary' mailserver in these cases. Wikipedia has a nice writeup on the function of weights for a more verbose description for the inquisitive:[[http://en.wikipedia.org/wiki/MX_record#Why_have_priority.3F|MX Record Priorities]]. For this tutorial, we'll stick to 0 for primary MX servers and 10 for secondary ones.
  
 ======Editing the Zone Template===== ======Editing the Zone Template=====
-In order to allow newly create accounts to automatically be setup for use with an sMX server, the default zone template needs to be modified. In the WHM, jump to //Main >> DNS Functions >> Edit Zone Templates// and select **standard**. The entire template is included below for reference, however the modified section has been bolded: +In order to allow newly create accounts to automatically be setup for use with an sMX server, the default zone templates need to be modified. In the WHM, jump to //Main >> DNS Functions >> Edit Zone Templates// and select the zone template you wish to edit. Please see [[http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EditTemplates|this guide]] for information on which template to edit. A sample **standard** template has been included below with the SMX modification. 
-<q>; cPanel %cpversion%+<sxh plain>; cPanel %cpversion%
 ; Zone file for %domain% ; Zone file for %domain%
 $TTL %ttl% $TTL %ttl%
Line 40: Line 40:
  
 %domain%. IN MX 0 %domain%. %domain%. IN MX 0 %domain%.
-**%domain%. IN MX 10 smx.yourdomain.com.**+%domain%. IN MX 10 smx.yourdomain.com. ; add this line and change to your SMX hostname
  
 mail IN CNAME %domain%. mail IN CNAME %domain%.
 www IN CNAME %domain%. www IN CNAME %domain%.
-ftp IN CNAME %domain%.</q>+ftp IN CNAME %domain%.</sxh>
  
-Note that the part that reads //smx.yourdomain.com// needs to be changed to a valid hostname for your sMX server. once done performing the edit click the //Save// button and you're all set!+Note that the part that reads //smx.yourdomain.com// needs to be changed to a valid hostname for your sMX server. Once done performing the edit click the //Save// button and you're all set!
  
 ======Existing Domain Zones===== ======Existing Domain Zones=====