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

dependabot[bot] f109e25cd4 Bump alpine from 3.14.0 to 3.14.1 преди 3 години
.github 75f6d9ab80 Bump docker/setup-buildx-action from 1.5.0 to 1.5.1 преди 3 години
CHANGELOG.md 0796ea1215 added socat преди 4 години
Dockerfile f109e25cd4 Bump alpine from 3.14.0 to 3.14.1 преди 3 години
Makefile 01fe5a6104 added makefile for image building, pushing & tagging преди 3 години
README.md f55954105e readme: added links to dovecot docs for individual services преди 4 години
docker-compose.yml 68576a9d6d mount ssl dir преди 5 години
dovecot-packages-log.url 538726f79e upgrade alpine base image v3.12.3->v3.13.0 including upgrade of dovecot v2.3.11.3-r1->v2.3.13-r0 (diff links below, fixes CVE-2020-24386 & CVE-2020-25275) преди 3 години
socat-package-log.url 538726f79e upgrade alpine base image v3.12.3->v3.13.0 including upgrade of dovecot v2.3.11.3-r1->v2.3.13-r0 (diff links below, fixes CVE-2020-24386 & CVE-2020-25275) преди 3 години

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