Skip to main content

Google email setup

Basic email access (app password)

  1. Sign into the google account
  2. Go here: https://myaccount.google.com/apppasswords 
  3. Create the below in the .env
HIMALAYA_GMAIL_PASSWORD="app password here"
HIMALAYA_CONFIG=~/.hermes/profiles/CHANGE-PROFILE-NAME-HERE/himalaya.toml

4 - create himalaya.toml

[accounts.account-nickname]
email = "account@gmail.com"
display-name = "account-nickname"
default = true

backend.type = "imap"
backend.host = "imap.gmail.com"
backend.port = 993
backend.encryption.type = "tls"
backend.login = "account@gmail.com"
backend.auth.type = "password"
backend.auth.cmd = "echo $HIMALAYA_GMAIL_PASSWORD"

message.send.backend.type = "smtp"
message.send.backend.host = "smtp.gmail.com"
message.send.backend.port = 587
message.send.backend.encryption.type = "start-tls"
message.send.backend.login = "account@gmail.com"
message.send.backend.auth.type = "password"
message.send.backend.auth.cmd = "echo $HIMALAYA_GMAIL_PASSWORD"

folder.aliases.inbox = "INBOX"
folder.aliases.sent = "[Gmail]/Sent Mail"
folder.aliases.drafts = "[Gmail]/Drafts"
folder.aliases.trash = "[Gmail]/Trash"