Dovecot: IMAP, POP3 & SASL Auth Server (Alpine Linux)

dependabot[bot] 83e3b948a8 Bump docker/build-push-action from 3.2.0 to 3.3.0 (#45) 1 week ago
.github 83e3b948a8 Bump docker/build-push-action from 3.2.0 to 3.3.0 (#45) 1 week ago
CHANGELOG.md 0d596b595c release v1.3.0 1 year ago
Dockerfile 54c8526bc8 Bump alpine from 3.17.0 to 3.17.1 (#44) 1 week ago
Makefile 01fe5a6104 added makefile for image building, pushing & tagging 2 years ago
README.md f55954105e readme: added links to dovecot docs for individual services 2 years ago
docker-compose.yml 68576a9d6d mount ssl dir 3 years ago
dovecot-packages-log.url c591425a9d upgrade dovecot packages from v2.3.19.1-r0 to v2.3.19.1-r6 (see below, includes patch for CVE-2022-30550) 2 months ago
socat-package-log.url 7c38f8c910 upgrade socat package from v1.7.4.3-r0 to v1.7.4.4-r0 2 months ago

README.md

dovecot ✉️ 🐳

Dovecot: IMAP, POP3, LMTP, SASL Auth & ManageSieve Server

https://www.dovecot.org/

Usage

docker run --name dovecot \
    -p ... \
    -v $PWD/dovecot.conf:/etc/dovecot/dovecot.conf:ro \
    fphammerle/dovecot

Postfix SASL Auth Setup

http://www.postfix.org/SASL_README.html#server_sasl_enable

# dovecot.conf

auth_mechanisms = plain login

passdb {
  # https://wiki.dovecot.org/AuthDatabase/PasswdFile
  # doveadm pw -s BLF-CRYPT -u user -p password
  driver = passwd-file
  args = username_format=%n /etc/dovecot/passwd
}

service auth {
  # https://wiki.dovecot.org/Services#inet_listeners
  inet_listener auth {
    address = *
    port = 12345
  }
}
# postfix main.cf

smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = inet:dovecot:12345

smtpd_relay_restrictions = [...], permit_sasl_authenticated, reject_unauth_destination

Deliver Mail From Postfix to Dovecot via LMTP

https://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP