> -----Original Message-----
> From: Doug via dovecot <[email protected]>
> Sent: Thursday, November 19, 2026 10:42 AM
> To: 'Dovecot Mailing List' <[email protected]>
> Subject: Disable encryption in doveadm backup
> 
> I have a script that uses doveadm backup to create a local copy of a
> specific mail folder for some processing of the contents. The source
folder
> is encrypted.
> 
> pre Dovecot 2.4 this command worked like a charm.
> 
> doveadm -o plugin/zlib_save=gz                \
>         -o plugin/zlib_save_level=0           \
>         -o plugin/mail_crypt_save_version=0   \
>     backup -u doug -m FolderName maildir:/tmp/Maildir/test:LAYOUT=fs
> 
> It seems mail_crypt_save_version been removed in 2.4? From the mail_crypt
> plugin page the closest thing I could find is to override
> crypt_write_algorithm
>
(https://doc.dovecot.org/2.4.5/core/plugins/mail_crypt.html#crypt_write_algo
> rithm)
> 
> "Set the encryption algorithm for newly written mails. If empty, new mails
> are not encrypted. Existing encrypted mails (with any algorithm) can be
> decrypted regardless of this setting."
> 
> I cannot find a command line syntax to successfully set it to null. The
> following syntax doesn't produce an error, but the resulting messages that
> are created by the backup remain encrypted.
> 
> doveadm -o crypt_write_algorithm="" \
>                backup -u doug -m FolderName maildir:/tmp//Maildir/test
> 
> Is there a way for doveadm backup to save the message decrypted, and
> uncompressed?
> 
> Thanks,
> Doug


I figured this out. I was successfully overriding the encryption, but the
messages were still compressed. I had only solved half the problem. For
anyone who stumbles upon this later, here is the correct syntax to disable
both encryption and compression.


doveadm -o crypt_write_algorithm=""             \
        -o mail_compress_write_method=""        \
        backup -u doug -m FolderName maildir:/tmp/Maildir/test

Doug

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to