2023-08-01 15:43:13 +00:00
|
|
|
FROM almalinux:9
|
2021-01-09 18:06:20 +00:00
|
|
|
|
|
|
|
RUN useradd -m -s /bin/false vmail
|
|
|
|
|
2023-08-01 15:43:13 +00:00
|
|
|
RUN dnf install -y epel-release dnf-plugins-core \
|
|
|
|
&& dnf update -y \
|
|
|
|
&& dnf config-manager --enable crb \
|
2021-01-09 18:06:20 +00:00
|
|
|
&& dnf clean all \
|
|
|
|
&& rm -rf /var/cache/yum
|
|
|
|
|
2023-08-01 15:43:13 +00:00
|
|
|
RUN dnf install -y postfix-3.5.9 postfix-ldap-3.5.9 postfix-mysql-3.5.9 postfix-pgsql-3.5.9 \
|
2023-06-10 03:20:50 +00:00
|
|
|
dovecot-2.3.16 dovecot-pigeonhole-2.3.16 opendkim-2.11.0 opendmarc-1.4.2 \
|
2021-10-21 21:42:06 +00:00
|
|
|
cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
|
2021-01-09 18:06:20 +00:00
|
|
|
&& dnf clean all \
|
|
|
|
&& rm -rf /var/cache/yum
|
|
|
|
|
|
|
|
EXPOSE 110 143 993 995
|
|
|
|
|
|
|
|
CMD ["/usr/sbin/dovecot", "-F"]
|