Configure email username and password for alerts

I am currently accessing opendistro on my mac using docker. I am trying to configure email username and password to send email alerts but I don’t know how to configure username and password in the Elasticsearch keystore.

You can add entries to the keystore using the following command

<ES_BIN_DIR>/elasticsearch-keystore add --stdin <key_name>