Star this repository if it is useful for you.
latest
,rocky8
(Rocky Linux)alma8
(AlmaLinux)centos8
(We have finished support for CentOS 8.)centos7
FROM rockylinux:8
MAINTAINER "Hiroki Takeyama"
ENV TIMEZONE Asia/Tokyo
ENV HOSTNAME mail.example.com
ENV DOMAIN_NAME example.com
ENV MAILBOX_SIZE_LIMIT 0
ENV MESSAGE_SIZE_LIMIT 10240000
ENV AUTH_USER user1,user2
ENV AUTH_PASSWORD password1,password2
ENV DISABLE_SMTP_AUTH_ON_PORT_25 true
ENV BOUNCE_MESSAGE true
ENV NOTICE_RECIPIENT user1
ENV ANVIL_RATE_TIME_UNIT 60s
ENV SMTPD_CLIENT_CONNECTION_RATE_LIMIT 0
ENV ENABLE_DKIM true
ENV DKIM_KEY_LENGTH 1024
ENV DKIM_SELECTOR default
ENV ENABLE_DMARC true
# MailBox
VOLUME /mailbox
# SSL Certificates
VOLUME /ssl_certs
# DKIM Keys
VOLUME /dkim_keys
# SMTP
EXPOSE 25
# Submission
EXPOSE 587
# SMTPS
EXPOSE 465
# POP3
EXPOSE 110
# IMAP
EXPOSE 143
# POP3S
EXPOSE 995
# IMAPS
EXPOSE 993