Skip to main content

Wrong host-name and domain name in welcome email after server was hacked.

Comments

6 comments

  • Infopro
    The docs explain how to change hostname: Change Hostname - cPanel Documentation
    0
  • dzacharias
    Thanks for the quick reply. I tried that previously the hostname is set correctly. .vB
    0
  • dzacharias
    Ok this can be that hard. Obviously there is a setting somewhere that this script kiddy changed up. It not from the section that you suggested... Any other ideas? Where is this data generated form?
    0
  • dzacharias
    RESOLVED!!! WHM sends a New account creation email template to a given email address after the creation of a new account. This EMAIL SUBJECT line can be modified via the /etc/wwwacct.conf file LOGSTYLE combined TTL 14400 DEFWEBMAILTHEME x3 HOST host1.xxxxxxxxx.xxxxxx Change this to your Fully Qualified Domain Name! NS ns1.xxxxxxxxx.xxxxxx SCRIPTALIAS y DEFMOD x3 NS4 MINUID 500 NS3 NS2 ns2.xxxxxxxxx.xxxxxx ETHDEV venet0:0 CONTACTEMAIL youremail@emailaddress.com ADDR 184.22.255.58 CONTACTPAGER youremail@emailaddress.com HOMEMATCH home HOMEDIR /home NSTTL 86400
    Good luck!
    0
  • quietFinn
    When you go to WHM -> Networking Setup -> Change Hostname and set the hostname, even if it seems correct, WHM updates all the files where the hostname exists, including /etc/wwwacct.conf
    0
  • dzacharias
    Hi quietFinn, thanks for the response. My server was rooted, For some reason they didn't lock me out of the server, which I found strange... I had to clean up the remnants of files that were all over the place. I changed the FQDN in WHM -> Networking Setup -> Change Hostname, but for some reason it did not propagate to the /etc/wwwacct.conf I had to go in there and hand jam it in there. Just did a reboot and checked it again, looks good to go. Took some work on my part but I finally got it, figured I would share with the community. Thanks again. DZ
    0

Please sign in to leave a comment.