-
-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PGP support for emails #414
Comments
The only problem i see with PGP is that the certificate can bet quite large. The only way I can think of implementing this is adding
Or it could be The only catch is that his feature wouldn't work using say the Apprise API for example because it could possibly be exploited (accessing someones remote server and passing in different local files to Thoughts? |
I think you should think of the certificate as a file rather than a string: apprise --title 'Sensitive content' \
--body 'Here is the leaked document.' \
--attach document.pdf \
--pgp certificate.key \
'mailto://myemail:mypass@protonmail.com' if a |
See Pull Request in link above for details, but Email Support now fully supports PGP Encryption. |
Does the PGP support also support signing (without encryption) of emails and dynamic recognition and encryption via WKD? |
No WKD support, no. That would be extra work, but doable. You need to just export your public key so that it's accessible in Apprise. Apprise knows which key to use based on the sender's email being a part of the filename you place for it (with Private key is only required for decryption where as the Public key is used for encryption. Apprise only sends, so it only needs the encryption element at this time. Edit: are you looking for a situation where you selectively do not want to encrypt some emails, but encrypt others carrying the same payload? |
Hello, thanks for the answer. No, I myself use Mailrise as an SMTP relay and would like all emails sent by Apprise to be signed and sent to the recipients. I have already stored the public key for the sender with the email provider so that the recipients can check the signature via WKD. Now Apprise only has to sign the mails with a stored private key. Ideally, Apprise would check for each recipient email whether a public key for encryption is available via WKD and then use this as well. With this setup, outgoing emails would then always be signed and, if a public key is available, additionally encrypted. This would increase security considerably. |
Is it understandable what I want to achieve, or is it perhaps already possible and I have just overlooked it? |
💡 The Idea
Allow to encrypt messages and attachments with PGP/GnuPG using a specified public key before sending emails.
This way you can forward sensitive content to your self-hosted apprise where it will be encrypted before being sent to a publicly hosted mail server over which you don't have control.
👨💻 The Implementation
I don't know how to do this platform independently in Python. A search provided some possibly interesting related projects:
Perhaps it's easiest to do a switch internally and call os dependent binaries. Throw an error when binary does not exist.
The text was updated successfully, but these errors were encountered: