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.

Changing Account Contact Email to NULL

Discussion in 'E-mail Discussions' started by Bdzzld, Jan 6, 2011.

  1. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    Why is it no longer possible to delete the e-mail address that was entered as "Account Contact Email"?
    Only valid e-mail addresses can be entered. When left empty the following error pops up :

    The "Account Contact Email" is not a mandatory field and therefore it should be allowed to be left empty.
    Can this be changed manually in some way?

    Thanks.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Add a forwarder for the address in the email Forwarder section of cPanel, and click Advanced. Select:
    Discard (Not Recommended)
     
  3. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    I thought of that too, but the account is for one of the customers on the server and therefore I'm a little reluctant to add any e-mail forwarders to its account.
    As far as I can recall the e-mail address is stored in a text file by cPanel, but what is it's the exact location?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    .contactemail in root of the account is the filename.
     
  5. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    I've deleted the file.
    In the past I've always been able to overwrite an e-mail address with an empty string w/o any error messages. Why has this been changed?

    Thanks.
     
  6. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Deleting the file or overwriting it with an empty one did not solve the problem.
    The e-mail address which was wentered is still shown in WHM regardless.
    Is it saved somewhere else as well?

    Thanks.
     
  7. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The contact e-mail address(es) is/are stored in the /var/cpanel/users file for the account in the following directives:

    Code:
    CONTACTEMAIL=
    CONTACTEMAIL2=
    If you edit any file in /var/cpanel/users, please make sure to run this command afterward:

    Code:
    # /scripts/updateuserdomains
     
  8. manokiss

    manokiss Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    571
    Likes Received:
    0
    Trophy Points:
    16
    also a note just in case you overlooked this guys (cpanel)....on 11.26 i was able to add multiple email addresses separated by commas...now just is not possible through whm on 11.28, keep saying "insert a valid email address" just after i put a comma...will be great if you put back this as it was.
     
  9. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    I lookup up the file, inserted the two lines and executed /scripts/updateuserdomains :

    The file showed :

    Code:
    #cPanel -- If you edit this file directly you must run /scripts/updateuserdomains after to rebuild the cache
    DNS=
    SUSPENDED=1
    SUSPENDTIME=1193907823
    
    and it's now :

    Code:
    #cPanel -- If you edit this file directly you must run /scripts/updateuserdomains after to rebuild the cache
    CONTACTEMAIL=
    CONTACTEMAIL2=
    DNS=
    SUSPENDED=1
    SUSPENDTIME=1193907823
    
    WHM however still shows the old e-mail address as contact email address.
    Are we overlooking something here?

    Thanks.

    Update: There configuration file that was changed before, was from an old user with the same username minus one last letter. Typical to edit that one instead... :eek: Problem solved.
     
    #9 Bdzzld, Jan 7, 2011
    Last edited: Jan 7, 2011
  10. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    It still does not work... :mad:
    In WHM the contact email address field is shown as empty, but in cPanel it's still there...

    /var/cpanel/users/username contains :
    Code:
    CONTACTEMAIL=
    CONTACTEMAIL2=
    
    and /home/username/.contactemail is zero bytes.
    Any ideas?

    Thanks.

    P.S. I'm still wondering why there's a check for a valid email address at all, when the field should be allowed to be left empty. This is very frustrating to say the least...
     
Loading...

Share This Page