Changes between Version 88 and Version 89 of SystemAdministration/Default_VM_setup


Ignore:
Timestamp:
07/26/18 13:07:55 (6 years ago)
Author:
André Moreira
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Default_VM_setup

    v88 v89  
    2424
    2525## Set hostname to hostname shown in hoster's control panel
     26## Use host's local name only, without the domain part in order for postfix mail system to work (see postfix configuration bellow)
    2627sudo hostnamectl set-hostname 'clarineric-vps4'
    2728
     
    173174postconf -e "inet_protocols=ipv4"
    174175postconf -e "mydomain=${DOMAIN}"
    175 postconf -e "myhostname=`hostname`"
     176postconf -e "myhostname=`hostname | sed -E "s/\./-/g"`"
    176177postconf -e "myorigin=\$myhostname"
    177178postconf -e "mydestination=\$myhostname,localhost.\$mydomain,localhost"