problem with hostnames and emails

July 17, 2016 428 views
Applications DNS Email

recently acquired a Droplet. Discourse in the install.

And now I have problems, I want to ride an email service in the droplet.
In the installation tells me run: / etc / hostname.
but I tell you I do says "Permission denied"
(Yes, i use login by SSH Key)

http://mindshat.xyz/uploads/default/original/1X/0b84f47a8d5c954706c159c1cc7d8c57fb7625f8.JPG

Besides I think the system host and domain in cpanel digitalocean not used at all, try using dns mailGun but never checked.

Now, it is assumed that it must create hostname here?

http://mindshat.xyz/uploads/default/original/1X/4cef218cde27a0227a5f0706924251a0b2e8c4c3.JPG

or inside as a cname?
http://mindshat.xyz/uploads/default/original/1X/aafb6301883eeef3b995421eaa406347f55070d3.JPG
use the IP or an @?
All this did not see it anywhere in the installation documentation.
Please help me

2 comments
  • /etc/hostname is just a file. You're getting a permission denied response, because it's not executable, not that it would "run" anyway. You can get your hostname by running "uname -n" - although I think that's not what you want. I think you mean domain name.

  • What sort of email service are you trying to install, and which guide are you using to install it?

1 Answer

This question was answered by @MichaelOjeda:

/etc/hostname is just a file. You're getting a permission denied response, because it's not executable, not that it would "run" anyway. You can get your hostname by running "uname -n" - although I think that's not what you want. I think you mean domain name.

View the original comment

Have another answer? Share your knowledge.