How to change Hostname / Domain name
Change Host Name / Domain Name on Debian server: Step 1: vim /etc/hostname Change domain name > Start this service /etc/init.d/hostname.sh start Step 2: vim /etc/hosts Change the domain name eg: 127.0.0.1 localhost 127.0.1.1 tanjila.com mail > Save & Exit Step 3: Vim /etc/postfix/ main.cf Change the below lines myhostname = mail.tanjila.com and mydestination = tanjila.com , mail.tanjila.com , localhost.tanjila.com , localhost Step 4: Run this command: sysctl kernel.hostname =NEW_HOSTNAME Step 5: Restart server Init 6