20 lines
		
	
	
		
			532 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			532 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM rockylinux/rockylinux:8
 | 
						|
 | 
						|
RUN useradd -m -s /bin/false vmail
 | 
						|
 | 
						|
RUN dnf install -y epel-release && dnf update -y \
 | 
						|
  && dnf clean all \
 | 
						|
  && rm -rf /var/cache/yum
 | 
						|
 | 
						|
RUN dnf install -y postfix-3.5.8 postfix-ldap-3.5.8 postfix-mysql-3.5.8 postfix-pgsql-3.5.8 \
 | 
						|
  dovecot-2.3.8 dovecot-pigeonhole-2.3.8 opendkim-2.11.0 opendmarc-1.4.1.1 \
 | 
						|
  cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
 | 
						|
  && dnf clean all \
 | 
						|
  && rm -rf /var/cache/yum
 | 
						|
 | 
						|
#RUN postconf -e inet_interfaces=all
 | 
						|
 | 
						|
EXPOSE 25 465 587
 | 
						|
 | 
						|
CMD ["postfix", "start-fg"]
 |