tl;dr

  • Running the email proxy
  • Configuring git send-email with kw send-patch
  • Testing the setup with kw send-patch

Commands

cd ~/github/emailproxy-container
docker compose up --build -d # run the container
docker exec -it emailproxy-container-server-1 /bin/bash # attach to the container terminal
emailproxy --no-gui --external-auth --config-file /app/emailproxy.config # start the email proxy
kw send-patch --send --private --to='<EMAIL-ADDRESS-1>','<EMAIL-ADDRESS-2>' # send the patch, use --simulate to dry-run

Notes

For this tutorial, we started by installing docker and docker-compose following this guide.

After editing the config file in the emailproxy-container repository clone, we ran the container with the following command:

docker compose up --build -d

After this, we attached the terminal to the container with:

docker exec -it emailproxy-container-server-1 /bin/bash

And then started the email proxy with:

emailproxy --no-gui --external-auth --config-file /app/emailproxy.config

Finally, we sent the email after some configurations to kw send-patch:

kw send-patch --send --private --to='<EMAIL-ADDRESS-1>','<EMAIL-ADDRESS-2>'

In this final step, I had some trouble when authenticating my email address. In the end I had to disable ad and tracking blocker extensions to be able to get the http://localhost/... URL.

Reference

Sending patches by email with git

Sending patches with git and a USP email