File tree Expand file tree Collapse file tree 4 files changed +85
-0
lines changed Expand file tree Collapse file tree 4 files changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM debian:11
2
+
3
+ LABEL org.opencontainers.image.authors=
"[email protected] "
4
+
5
+ ENV container=docker \
6
+ LC_ALL=C
7
+ ARG DEBIAN_FRONTEND=noninteractive
8
+
9
+ ADD dovecot.gpg /etc/apt/trusted.gpg.d
10
+ ADD dovecot.list /etc/apt/sources.list.d
11
+
12
+ RUN apt-get -y update && apt-get -y install \
13
+ tini \
14
+ dovecot-core \
15
+ dovecot-gssapi \
16
+ dovecot-imapd \
17
+ dovecot-ldap \
18
+ dovecot-lmtpd \
19
+ dovecot-lua \
20
+ dovecot-managesieved \
21
+ dovecot-mysql \
22
+ dovecot-pgsql \
23
+ dovecot-pop3d \
24
+ dovecot-sieve \
25
+ dovecot-solr \
26
+ dovecot-sqlite \
27
+ dovecot-submissiond \
28
+ ca-certificates \
29
+ ssl-cert && \
30
+ rm -rf /var/lib/apt/lists && \
31
+ groupadd -g 1000 vmail && \
32
+ useradd -u 1000 -g 1000 vmail -d /srv/vmail && \
33
+ passwd -l vmail && \
34
+ rm -rf /etc/dovecot && \
35
+ mkdir /srv/mail && \
36
+ chown vmail:vmail /srv/mail && \
37
+ make-ssl-cert generate-default-snakeoil && \
38
+ mkdir /etc/dovecot && \
39
+ ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/dovecot/cert.pem && \
40
+ ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/dovecot/key.pem
41
+
42
+ ADD dovecot.conf /etc/dovecot/dovecot.conf
43
+
44
+ VOLUME ["/etc/dovecot" , "/srv/mail" ]
45
+ ENTRYPOINT ["/usr/bin/tini" , "--" ]
46
+ CMD ["/usr/sbin/dovecot" , "-F" ]
Original file line number Diff line number Diff line change
1
+ ## You should mount /etc/dovecot if you want to
2
+ ## manage this file
3
+
4
+ mail_home=/srv/mail/%Lu
5
+ mail_location=sdbox:~/Mail
6
+ mail_uid=1000
7
+ mail_gid=1000
8
+
9
+ protocols = imap pop3 submission sieve lmtp
10
+
11
+ first_valid_uid = 1000
12
+ last_valid_uid = 1000
13
+
14
+ passdb {
15
+ driver = static
16
+ args = password=pass
17
+ }
18
+
19
+ ssl=yes
20
+ ssl_cert=<cert.pem
21
+ ssl_key=<key.pem
22
+
23
+ namespace {
24
+ inbox = yes
25
+ separator = /
26
+ }
27
+
28
+ service lmtp {
29
+ inet_listener {
30
+ port = 24
31
+ }
32
+ }
33
+
34
+ listen = *
35
+
36
+ log_path=/dev/stdout
37
+ info_log_path=/dev/stdout
38
+ debug_log_path=/dev/stdout
Original file line number Diff line number Diff line change
1
+ deb http://repo.dovecot.org/ce-2.3.20/debian/bullseye bullseye main
You can’t perform that action at this time.
0 commit comments