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.

[Case 12834] package DNS restore vs contact email address

Discussion in 'Bind / DNS / Nameserver Issues' started by tylerl, Sep 17, 2011.

  1. tylerl

    tylerl Active Member

    Joined:
    Dec 11, 2009
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    If the server contact email address (set in basic setup) has a + sign in it (e.g. support+server1@gmail.com), then DNS zone file will not be properly translated during a package restore operation.

    Instead, the plus sign in the email address (as inserted into the SOA record) creates a syntax error in the newly-created zone file. This crashes the perl script building the new zone file, leaving the file empty except for the comment in the first line.

    The solution would be to either disallow addresses with a "+" sign from being used in an SOA record, or to strip the sign and everything between it and the "@" sign from the address before encoding it into the SOA record.

    The nature of "+" signs in email addresses as process by most mail servers is that the sign and everything following it are ignored by the server when looking up the associated account, so <joe+hello@example.com> and <joe+world@example.com> will both be delivered to the mailbox <joe@example.com>, though every other part of the delivery chain behaves as if they were all separate addresses.

    Bear in mind that all of the following characters are all permissible in an email address, but are not allowed in a domain name (and therefore not an SOA record).

    Code:
     ! # $ % & ' * + - / = ? ^ _ ` { | } ~  
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    We have an internal case opened about this issue already, case 12834. This involves both . and + in an email address not being escaped and causing an issue in the DNS zone file.
     
Loading...

Share This Page