[mail-crypt-plugin] Private key location in Folder Key Mode

2019-06-01 Thread emordin via dovecot
Nice. It worked but I think there is a little output error (probably not a big issue): When I type the following command I get this output: user'@'host:~$ doveadm -o plugin/mail_crypt_private_private_password=1234 mailbox cryptokey export -u username -U

[mail-crypt-plugin] Private key location in Folder Key Mode

2019-05-31 Thread emordin via dovecot
Hi, So I am trying to locate the private key in dovecot-attributes but I can't seem to find it. I have went thru the strings in the file with the lib-dcrypt document as a guide but the private key doesn't seem to be in there. I'm guessing the private key is an internal attribute located here

[mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-31 Thread emordin via dovecot
> Can you try rm dovecot-attributes file? Okay it worked. I kinda did that by 'rm -rf' the entire /var/vmail/domain, and then I ran the following: doveadm -o plugin/mail_crypt_private_password=desired_password mailbox cryptokey generate -u user -UR And I got the check mark and the ID string

[mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-31 Thread emordin via dovecot
So when I tried this way I got the following output: user'@'host:~$ doveadm -o plugin/mail_crypt_private_password=desired_password mailbox > cryptokey generate -u user -UR user'@'host:~$ And when I tried this way I got the following output: user'@'host:~$doveadm -o

(4) [mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-31 Thread emordin via dovecot
>> Can you try >> >> doveadm -o plugin/mail_crypt_private_password=desired_password mailbox > cryptokey generate -u user -UR >> >> Aki > > I tried that and got the following: > > [user at host](https://dovecot.org/mailman/listinfo/dovecot) :~$ doveadm -o

[mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-31 Thread emordin via dovecot
> Can you try > > doveadm -o plugin/mail_crypt_private_password=desired_password mailbox > > cryptokey generate -u user -UR > > Aki I tried that and got the following: user@host:~$ doveadm -o plugin/mail_crypt_private_password=desired_password mailbox > cryptokey generate -u user -UR Folder

[mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-30 Thread emordin via dovecot
So I believe I generated a key successfully with: 'doveadm mailbox cryptokey generate -u user -UR' because I got the output with the check mark and the Public ID string of characters. However I still can't read the CRYPTED emails when logging in with IMAP.. i'm still getting the following error

[mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-30 Thread emordin via dovecot
Please disregard the previous question. But I have another... I have set up Folder Key encryption, and have sent an email to my mail server which is CRYPTED, however when I try to login to read the email I'm getting a 'Private key not available: Cannot decrypt <...>: error:03070068:bignum

[mail-crypt-plugin] Password Query for Folder Keys questions

2019-05-29 Thread emordin via dovecot
In Folder key plugin operation mode, using the following password query: password_query = SELECT \ email as user, password, \ '%w' AS userdb_mail_crypt_private_password \ FROM virtual_users WHERE email='%u'; Say I have two 'email' users...will each 'email' have a

[mail-crypt-plugin] How to decrypt mailbox?

2019-05-21 Thread emordin via dovecot
How do I enable the mail-crypt-plugin globally? Do I have to place 'mail_plugins = $mail_plugins mail_crypt' inside ever conf.d file where there is a protocol code block? Like for example the protocol lda codeblock in 15-lda.conf and the protocol imap codeblock in 20-imap.conf I placed

[mail-crypt-plugin] How to decrypt mailbox?

2019-05-20 Thread emordin via dovecot
Hi, So I am able to encrypt email using the crypt plugin, but when I try to access the email by logging in thru mutt or roundcube the email is still encrypted. Is the decryption process automatic or do I have to create a custom program with the decrypt.rb code? Thanks. Sent with

Setting up individual encrypted user keys using mail-crypt-plugin

2019-05-15 Thread emordin via dovecot
Hi, I have setup up a simple mail server using the ISPMail tutorial and I'm trying to learn how to create email encryption at rest. I'm having a tough time understanding how to set this up... So say a user logins thru roundcube and they type in their password...so the password authenticates to