From 7d32581759c206b2c2441b2c083af115d8883467 Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Sun, 24 Mar 2024 17:12:43 +0000 Subject: [PATCH] Update README with git-send-email example (#74) Signed-off-by: Daniel Gray --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 91a9d4e..821d37d 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,14 @@ git-credential-gopass configure --local --store=ci-team This puts the value in front of the Gopass search path. +#### Using with SMTP + +If you want to use this with [`git-send-email`](https://git-scm.com/docs/git-send-email) you'll need to: + +1. [Set Git Credential Helper](#set-git-credential-helper) +2. Put your secret (encrypted) in `.../gopass/stores/root/git/example.com_465/username.gpg`. It is important that the host, top level domain, port and username are there. +3. Include an [`[sendemail]`](https://git-scm.com/docs/git-send-email#_examples) in your `.gitconfig` or alternatively `.git/config`. Remember to prefer `smtpEncryption = ssl` and `smtpServerPort = 465` if your provider supports [implicit TLS](https://git-scm.com/docs/git-send-email#Documentation/git-send-email.txt---smtp-encryptionltencryptiongt). + [Gopass]: https://github.com/gopasspw/gopass [releases]: https://github.com/gopasspw/git-credential-gopass/releases [git credentials]: https://git-scm.com/docs/gitcredentials