Mail-crypt won't encrypt emails

sewing sewing at flexitool.net
Mon Dec 2 01:35:27 EET 2019


The plugin encrypts mail to be written encrypted at rest /on/ the server, and
then decrypts the same mail when it is read /off/ the server. If it is
working correctly mails sent will arrive at their destination readable. You
need to go to the user directory where the mail is residing (example): 

/mail/vhosts/XXXX/username/cur   (wherever your user mail resides)

Choose any mail (example...  
'1546546546546.Mdffgdfg535435.domain,S=4355435W=4r34534:3,S' ) will look
something like that (I have obfuscated the actual example but it will look
similar).

Now try and view it on the server using 

> postcat  '1546546546546.Mdffgdfg535435.domain,S=4355435W=4r34534:3,S'

1. If you get an error that looks something like:

*** ENVELOPE RECORDS
'1546546546546.Mdffgdfg535435.domain,S=4355435W=4r34534:3,S' ***
message_size: YPTED
postcat: fatal: invalid size record: YPTED???

OR

2. Alternatively you can try and > cat the message like a text file and at
the start of the output you will see the string:  CRYPTED

Then you will know the plugin is working.

If it shows the message in plaintext, the plugin is not active. 



--
Sent from: http://dovecot.2317879.n4.nabble.com/


More information about the dovecot mailing list