<div dir="ltr">I've successfully implemented the mail_crypt plugin on v2.2.27 and it's working like a champ, but some of our administrative operations require access to Maildir messages in plaintext.<div><br></div><div>I've found numerous threads detailing help with mail_crypt setup, but none of my research has yielded a method of decrypting the stored messages.</div><div><br></div><div>Relevant plugin config:</div><div><br></div><div><div>  mail_crypt_curve = prime256v1</div><div>  mail_crypt_global_private_key = <pirvkey></div><div>  mail_crypt_global_public_key = <pubkey></div><div>  mail_crypt_save_version = 2</div><div><br></div><div><div>Method I attempted for manual decryption is listed below:</div><div><br></div><div><div>openssl pkeyutl -derive -inkey mailcrypt.key -peerkey mailcrypt.pub -out shared_secret.bin</div></div><div>openssl enc -aes256 -base64 -k $(base64 shared_secret.bin) -d -in test.enc -out test.txt<br></div><div><br></div><div>Openssl reports an error reading the input file, but it isn't permissions related.</div><div><br></div><div>I started looking for the encryption/decryption method in the source but figure it's worth seeing if there's some existing methodology I can employ here.</div><div><br></div><div>Appreciate any feedback. Thanks,</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(136,136,136)">-- </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">--</span><br style="color:rgb(136,136,136)"><font color="lightblue" face="arial" size="3"><b>Ben Harrison<br></b></font></div><div style="font-size:12.8px"><font color="lightblue" face="arial" size="3"><b>BHarrison.IT<br></b><a style="color:rgb(17,85,204)">843.492.4870</a></font></div></div></div>
</div></div></div>