diff --git a/app/config.py b/app/config.py index 2cc6e73d..ff54a834 100644 --- a/app/config.py +++ b/app/config.py @@ -349,3 +349,6 @@ PGP_SENDER_PRIVATE_KEY_PATH = os.environ.get("PGP_SENDER_PRIVATE_KEY_PATH") if PGP_SENDER_PRIVATE_KEY_PATH: with open(get_abs_path(PGP_SENDER_PRIVATE_KEY_PATH)) as f: PGP_SENDER_PRIVATE_KEY = f.read() + +# the signer address that signes outgoing encrypted emails +PGP_SIGNER = os.environ.get("PGP_SIGNER") diff --git a/app/dashboard/templates/dashboard/mailbox_detail.html b/app/dashboard/templates/dashboard/mailbox_detail.html index 648e1df4..17b0f62e 100644 --- a/app/dashboard/templates/dashboard/mailbox_detail.html +++ b/app/dashboard/templates/dashboard/mailbox_detail.html @@ -85,7 +85,10 @@ Pretty Good Privacy (PGP)
By importing your PGP Public Key into SimpleLogin, all emails sent to {{ mailbox.email }} are - encrypted with your key. + encrypted with your key.
+ {% if PGP_SIGNER %} + All forwarded emails will be signed with {{ PGP_SIGNER }}. + {% endif %}
diff --git a/server.py b/server.py index e82d5ef6..e4f48263 100644 --- a/server.py +++ b/server.py @@ -52,6 +52,7 @@ from app.config import ( get_abs_path, PADDLE_MONTHLY_PRODUCT_IDS, PADDLE_YEARLY_PRODUCT_IDS, + PGP_SIGNER, ) from app.dashboard.base import dashboard_bp from app.developer.base import developer_bp @@ -475,6 +476,7 @@ def jinja2_filter(app): LANDING_PAGE_URL=LANDING_PAGE_URL, STATUS_PAGE_URL=STATUS_PAGE_URL, SUPPORT_EMAIL=SUPPORT_EMAIL, + PGP_SIGNER=PGP_SIGNER, )