Rigth configuration to send mail (gmail)

please take the time to properly format your snippets. This is impossible to read.

bin/elasticsearch-keystore in the docs is just a pointer, when installing elasticsearch via tar.gz archive and you are in that installed directory. When you use a package you can find those commands in /usr/share/elasticsearch/bin