20 lines
581 B
Docker
20 lines
581 B
Docker
FROM almalinux:9
|
|
|
|
RUN useradd -m -s /bin/false vmail
|
|
|
|
RUN dnf install -y epel-release dnf-plugins-core \
|
|
&& dnf update -y \
|
|
&& dnf config-manager --enable crb \
|
|
&& dnf clean all \
|
|
&& rm -rf /var/cache/yum
|
|
|
|
RUN dnf install -y postfix-3.5.9 postfix-ldap-3.5.9 postfix-mysql-3.5.9 postfix-pgsql-3.5.9 \
|
|
dovecot-2.3.16 dovecot-pigeonhole-2.3.16 opendkim-2.11.0 opendmarc-1.4.2 \
|
|
cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
|
|
&& dnf clean all \
|
|
&& rm -rf /var/cache/yum
|
|
|
|
EXPOSE 8893
|
|
|
|
CMD ["/usr/sbin/opendmarc", "-f", "-c", "/etc/opendmarc/opendmarc.conf"]
|