Hostname is not properly set!

Started by jclins, August 19, 2018, 06:13:20 PM

Previous topic - Next topic

jclins

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



jclins

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

ring_c

Quote from: jclins on August 22, 2018, 05:12:51 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!

glorency

Quote from: jclins 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


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