This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
fuss:dovecot [2017/09/06 06:41] – office | fuss:dovecot [2018/07/29 20:10] – [Enable NOTIFY] office | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Migrate Between Mailbox Formats ====== | ||
+ | |||
+ | As Dovecot supports multiple mailbox formats, it is useful to be able to convert or synchronise between them. | ||
+ | |||
+ | For example, to convert from '' | ||
+ | < | ||
+ | mail_location=maildir: | ||
+ | </ | ||
+ | |||
+ | in the Dovecot configuration (''/ | ||
+ | < | ||
+ | separator = / | ||
+ | </ | ||
+ | |||
+ | after which for every mailbox / user to migrate, you would run the command: | ||
+ | <code bash> | ||
+ | dsync -u username mirror mbox: | ||
+ | </ | ||
+ | |||
+ | where '' | ||
+ | |||
+ | Sometimes folders fail to sync with '' | ||
+ | <code bash> | ||
+ | dsync -u username mirror -m maps mbox: | ||
+ | </ | ||
+ | |||
+ | in order to just sync the '' | ||
+ | |||
+ | ====== Automatically Create Folders for Compatibility ====== | ||
+ | |||
+ | If you install RoundCube or SquirrelMail you may notice that some of the default folders have not been created in which case you can solve the issue by enabling the '' | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | mail_plugins = $mail_plugins autocreate | ||
+ | </ | ||
+ | |||
+ | then, at the end of the ''/ | ||
+ | < | ||
+ | # Automatically create folders for compatibility | ||
+ | plugin { | ||
+ | autocreate = Trash | ||
+ | autocreate2 = Junk | ||
+ | autocreate3 = Drafts | ||
+ | autocreate4 = Sent | ||
+ | autosubscribe = Trash | ||
+ | autosubscribe2 = Junk | ||
+ | autosubscribe3 = Drafts | ||
+ | autosubscribe4 = Sent | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== Increase DH Group for Logjam ====== | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | ssl_dh_parameters_length = 2048 | ||
+ | </ | ||
+ | |||
+ | followed by '' | ||
+ | |||
+ | ====== Enable IMAP Compress ====== | ||
+ | |||
+ | To enable [[http:// | ||
+ | < | ||
+ | mail_plugins = zlib | ||
+ | </ | ||
+ | |||
+ | This change is only required for Dovecot 2.1 and above. | ||
+ | |||
+ | After that, edit ''/ | ||
+ | < | ||
+ | protocol imap { | ||
+ | mail_plugins = $mail_plugins imap_zlib | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | and restart Dovecot. | ||
+ | |||
+ | ====== Disable POODLE, FREAK/ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | ssl_protocols = !SSLv2 !SSLv3 !TLSv1 | ||
+ | </ | ||
+ | |||
+ | and specify secure strong ciphers: | ||
+ | < | ||
+ | ssl_cipher_list = ALL: | ||
+ | </ | ||
+ | |||
+ | as well as enabling the server-side cipher list only: | ||
+ | < | ||
+ | ssl_prefer_server_ciphers = yes | ||
+ | </ | ||
+ | |||
+ | ====== Enable Hardware Cryptography ====== | ||
+ | |||
+ | In case your machine contains a cryptographic module, you can run most of the cryptographic tasks through the module. To find out which hardware engines are available, issue: | ||
+ | <code bash> | ||
+ | openssl engine | ||
+ | </ | ||
+ | |||
+ | For instance, the output may be: | ||
+ | < | ||
+ | (rsax) RSAX engine support | ||
+ | (rdrand) Intel RDRAND engine | ||
+ | (dynamic) Dynamic engine loading support | ||
+ | </ | ||
+ | |||
+ | the '' | ||
+ | |||
+ | To use '' | ||
+ | < | ||
+ | ssl_crypto_device = rdrand | ||
+ | </ | ||
+ | |||
+ | and reload dovecot. | ||
+ | |||
+ | Usually, the configuration file that contains this directive already can be found at ''/ | ||
+ | |||
+ | ====== Enable NOTIFY ====== | ||
+ | |||
+ | To enable IMAP NOTIFY as per RFC5465, also required for the notify extension, edit ''/ | ||
+ | |||
+ | ====== Enable METADATA Capability ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | For instance, one would specify: | ||
+ | < | ||
+ | mail_attribute_dict = file: | ||
+ | </ | ||
+ | in order to place a file named '' | ||
+ | |||
+ | Next, enable IMAP METADATA by editing ''/ | ||
+ | < | ||
+ | protocol imap { | ||
+ | # METADATA extension (RFC 5464)] | ||
+ | imap_metadata = yes | ||
+ | } | ||
+ | </ | ||
+ | |||