Skip to content

Instantly share code, notes, and snippets.

@aont
Last active May 2, 2025 01:24
Show Gist options
  • Save aont/34176c57fcd904d034c2b4cef8295310 to your computer and use it in GitHub Desktop.
Save aont/34176c57fcd904d034c2b4cef8295310 to your computer and use it in GitHub Desktop.

dovecot imap server sample

v2.4

config: config/mine.conf

ssl=no
# auth_allow_weak_schemes=yes
auth_allow_cleartext=yes
auth_mechanisms = plain login cram-md5

mail_utf8_extensions = no
mailbox_list_utf8 = yes

mail_plugins {
  fts = yes
  fts_flatcurve = yes
}

language_tokenizer_generic_algorithm = tr29
language_tokenizer_generic_wb5a = yes
# fts_flatcurve_substring_search = yes
mkdir vmail
chmod 0777 vmail

start container

docker run --rm -it -p 143:31143 \
     -v ./config:/etc/dovecot/conf.d \
     -v ./vmail:/srv/vmail \
     --name dovecot \
     -e USER_PASSWORD=pass \
     dovecot/dovecot:2.4-latest

FYI

doveadm index -u [email protected] \*
doveadm fts rescan -u [email protected]
doveadm search -u [email protected] text "foobar"

v2.3

config: config/mine.conf

ssl=no
disable_plaintext_auth=no
# auth_mechanisms = plain login
mkdir mail
chmod 0777 mail

start container

docker run --rm -it --network host \
     -v ./config:/etc/dovecot/conf.d \
     -v ./mail:/srv/mail \
     --name dovecot dovecot/dovecot:2.3-latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment