diff options
| author | 2026-05-13 13:43:24 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:24 +0100 | |
| commit | 3b69f8e3c6c1494da1ab85c65476efc90fa13dfb (patch) | |
| tree | 3216e919aac338d19f9fd94895c1fe717aa981b5 | |
| parent | 0806967e099b8ac6132a93271ad0c19b336775b6 (diff) | |
| download | dotfiles-3b69f8e3c6c1494da1ab85c65476efc90fa13dfb.tar.gz dotfiles-3b69f8e3c6c1494da1ab85c65476efc90fa13dfb.tar.bz2 dotfiles-3b69f8e3c6c1494da1ab85c65476efc90fa13dfb.zip | |
feat(git): configure git send-email via ProtonMail Bridge
Add a [sendemail] block targeting the local Bridge SMTP listener
(127.0.0.1:1025, STARTTLS) and a credential helper scoped to that URL
that fetches the password from pass (proton/bridge-smtp). The helper
command is public; the secret stays in the password store. The bridge
SMTP username (sensitive but not secret) goes in the per-identity
private overlay (~/doxfiles), not here.
Also pull in the Perl SMTP modules git send-email needs at runtime.
| -rw-r--r-- | dot_config/git/config | 13 | ||||
| -rw-r--r-- | meta/mail.txt | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/dot_config/git/config b/dot_config/git/config index 87947d0..ed0fabd 100644 --- a/dot_config/git/config +++ b/dot_config/git/config @@ -133,3 +133,16 @@ path = config-personal [includeIf "gitdir:~/dev/personal/"] path = config-personal +[sendemail] + smtpServer = 127.0.0.1 + smtpServerPort = 1025 + smtpEncryption = tls + smtpDomain = localhost + confirm = auto + suppresscc = self + chainReplyTo = false + thread = true + annotate = true + assume8bitEncoding = UTF-8 +[credential "smtp://127.0.0.1:1025"] + helper = "!f() { test \"$1\" = get && printf 'password=%s\\n' \"$(pass show proton/bridge-smtp)\"; }; f" diff --git a/meta/mail.txt b/meta/mail.txt index 0ada68b..c32295d 100644 --- a/meta/mail.txt +++ b/meta/mail.txt @@ -1,2 +1,6 @@ protonmail-bridge-core thunderbird +# git send-email Perl prereqs (SMTP via local Bridge on 127.0.0.1:1025) +perl-authen-sasl +perl-mime-tools +perl-net-smtp-ssl |
