Giter Site home page Giter Site logo

blacs30 / docker-protonmail-personal-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facastagnini/docker-protonmail-personal-gateway

0.0 2.0 0.0 33 KB

SMTP bridge to automatically encrypt email addresses to my protonmail account

License: GNU General Public License v3.0

Dockerfile 8.82% Shell 15.31% Perl 75.87%

docker-protonmail-personal-gateway's Introduction

Docker Build Status

docker-protonmail-personal-gateway

The goal of this docker image is to create a simple gateway that will intercept email notifications from appliances and devices that can send alerts over email, encrypt the content of the email and send it to my protonmail account, using the free gmail SMTP service. It should be fairly simple for you to clone this repo and replace the google SMTP with another provider.

Changes compared to tianon/exim4 and metabrainz/docker-exim:

  • it only forwards email addressed to my protonmail account
  • encrypts the body of the email with my protonmail public gpg key

Parameters

  • DOMAIN: optional, use it if you have a custom domain.
  • GMAIL_USER: your google id
  • GMAIL_PASSWORD: the google application password for your account.
  • PROTONMAIL_USER: your protonmail address
  • PROTONMAIL_USER_PUBLIC_KEY: path to your protonmail GPG public key
  • MYNETWORKS: Add additional networks to authorize relaying mails

You can mount the public gpg key with the -v/--volume command when you run docker. Set the mount location to the variable PROTONMAIL_USER_PUBLIC_KEY, it will get imported on start.

After getting a google application password, you may use something like:

docker run --detach --volume ~/Desktop/[email protected]:/tmp/gpgkey.pub --publish 12025:25 --env [email protected] --env GMAIL_PASSWORD=yourapppasswordhere --env [email protected] --env PROTONMAIL_USER_PUBLIC_KEY=/tmp/gpgkey.pub --env MYNETWORKS='192.168.5.0/24;192.168.5.0/24' --name pmgate blacs30/docker-protonmail-personal-gateway

Images are available at https://hub.docker.com/r/blacs30/docker-protonmail-personal-gateway

How to get my protonmail public key?

See https://protonmail.com/support/knowledge-base/download-public-key/

Credits

Exim docker image based on https://github.com/tianon/dockerfiles/tree/master/exim4, plus some improvements added by https://github.com/metabrainz/docker-exim Exim GPG plugin based on https://github.com/Interoberlin/exim-gpg-filter

docker-protonmail-personal-gateway's People

Contributors

blacs30 avatar facastagnini avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.