I am setting up a VPS on linode but I can't seem to setup a mail sending program like sendmail so that I can send emails through PHP.
I am stuck at the very first step of changing the hostname. I changed the entries under
/etc/hosts but when I even reboot the VPS, then
hostname -f shows
hostname: Name or service not known
What's wrong? And any good tutorial for setting things up?
I am using nginx, if that somehow matters in any case.
127.0.0.1 localhost 188.8.131.52 mail.bankpo.in # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
which hostname returns