Skip to content
szorfein edited this page Dec 12, 2022 · 4 revisions

So you need to create a [GPG key](other link) and initialize pass

pass init gpg-id

Mail are configured to use protocol imaps with smtp.

Personal Account

Create a pass entry, disroot.org, for example, only accepts passwords with a maximum of 64 characters.

pass generate mail/personal 64
...longpassword...

Next, edit the file.

pass edit mail/personal

Keep the first line, we need to add 6 more fields pass, user, name, imap, imap_port and smtp

...longpassword...
user: personal@mail.com
imap: mail.com
imap_port: 993
name: personal
pass: ...longpassword...
smtp: personal@mail.com:587

You can add any other field if you need like answer_the_question or url.

chezmoi get the entry with passFields:

chezmoi execute-template '{{ (passFields "mail/personal").pass | trim }}'
Clone this wiki locally