add courier imap

This commit is contained in:
Quentin 2024-01-07 22:27:12 +01:00
parent 1531600fd0
commit 152d5b7604
Signed by: quentin
GPG key ID: E9602264D639FF68
4 changed files with 30 additions and 0 deletions

View file

@ -20,3 +20,10 @@ services:
- "/dev/log:/dev/log" - "/dev/log:/dev/log"
ports: ports:
- "143:143/tcp" - "143:143/tcp"
courier:
build:
context: ./docker/courier/
image: courier
ports:
- "144:143/tcp"

View file

@ -0,0 +1,10 @@
FROM debian:sid
RUN apt-get update
RUN apt-get install -y courier-imap
RUN useradd -m debian -p '$1$B8Mq5Hki$fg5f4SndVNWsfq.mJiqbI0'
USER debian
RUN maildirmake /home/debian/Maildir
USER root
COPY ./entrypoint.sh /entrypoint
ENTRYPOINT ["/entrypoint"]

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
/usr/lib/courier/courier-authlib/authdaemond &
/usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -access=/etc/courier/imapaccess.dat -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir

View file

@ -51,6 +51,14 @@ parameters = {
"ext": ".cyrus", "ext": ".cyrus",
"mb": "INBOX."+base_test_mb, "mb": "INBOX."+base_test_mb,
}, },
"courier": {
"con": IMAP4,
"port": 144,
"user": "debian",
"pw": "debian",
"ext": ".courier",
"mb": base_test_mb,
},
"stalwart": { "stalwart": {
"con": IMAP4_SSL, "con": IMAP4_SSL,
"port": 1993, "port": 1993,