Author Topic: Hostname is not properly set!  (Read 5886 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hostname is not properly set!
« on: August 19, 2018, 06:13:20 PM »
I'm trying to install CWP 7 on Centos CentOS 7 64bit. I have already installed other times but was having error in outlook and I am trying to sort out and understand where the error is.

In this latest release of CWP 7, an error is occurring and the installation is halting with this message:
[...]
Archive:  /mail_server.zip
  inflating: etc/clamd.conf
  inflating: etc/postfix/vacation.php
  inflating: etc/postfix/mysql-virtual_vacation.cf
  inflating: etc/postfix/mysql-virtual_mailbox_maps.cf
  inflating: etc/postfix/mynetworks
  inflating: etc/postfix/mysql-relay_domains_maps.cf
  inflating: etc/postfix/master.cf
  inflating: etc/postfix/vacation.pl
  inflating: etc/postfix/mysql-virtual_alias_maps.cf
  inflating: etc/postfix/main.cf
  inflating: etc/postfix/mysql-virtual_mailbox_limit_maps.cf
  inflating: etc/postfix/vacation.conf
  inflating: etc/postfix/mysql-virtual_domains_maps.cf
  inflating: etc/dovecot/dovecot-dict-quota.conf
  inflating: etc/dovecot/trash.conf
  inflating: etc/dovecot/dovecot-mysql.conf
  inflating: etc/dovecot/dovecot.conf
  inflating: etc/amavisd.conf
   creating: var/sieve/
  inflating: var/sieve/globalfilter.sieve
   creating: var/spool/vacation/
Hostname is not properly set!

My footerprints:
0-Change MYDOMAIN.COM NAMESERVERS to NS1.CENTOS-WEBPANEL.COM and NS2.CENTOS-WEBPANEL.COM
1-change hostname for SRV1.MYDOMAIN.COM
2-update CENTOS (yum -y update && reboot)
3-install cwp-el7-latest

at this moment I get the error message.

Could someone tell you where the error is?  In advance, thank you



Offline
*
Re: Hostname is not properly set!
« Reply #1 on: August 22, 2018, 05:12:51 PM »
My Mistake

I was changing the hostname with the hostname srv.dominio.com command
But when the server restarted this name was not recorded

The correct command:
hostnamectl set-hostname srv.DOMINIO

And for check:
hostname status

Offline
**
Re: Hostname is not properly set!
« Reply #2 on: April 16, 2019, 07:00:12 PM »
And for check:
hostname status
Be careful!!! This "hostname status" command will change your hostname to "status"!
Do not run this command unless that's what you want your hostname to be!

Offline
**
Re: Hostname is not properly set!
« Reply #3 on: April 18, 2019, 08:35:53 AM »
My Mistake

I was changing the hostname with the hostname srv.dominio.com command
But when the server restarted this name was not recorded

The correct command:
hostnamectl set-hostname srv.DOMINIO

And for check:
hostname status


To Set Hostname Permanently , You can follow the Guide :
https://www.awsmonster.com/2019/01/cwp-installation-perquisite-set.html