forked from mauro/ansible-role-postfix
WIP: conversion a docker
This commit is contained in:
@@ -5,6 +5,12 @@ service lmtp {
|
||||
group = postfix
|
||||
user = postfix
|
||||
}
|
||||
|
||||
service lmtp {
|
||||
inet_listener lmtp {
|
||||
address = 192.168.0.24 127.0.0.1 ::1
|
||||
port = 24
|
||||
}
|
||||
}
|
||||
|
||||
# Authentication service for Postfix
|
||||
|
||||
16
files/Dockerfile
Normal file
16
files/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM debian:buster-slim
|
||||
LABEL maintainer "Mauro Torrez <mauro@mau.ro>"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV LC_ALL C
|
||||
RUN echo "_dev_null: /dev/null" > /etc/aliases \
|
||||
&& apt-get update && apt-get install -y --no-install-recommends \
|
||||
postfix \
|
||||
postfix-pcre \
|
||||
postfix-ldap \
|
||||
postfix-sqlite \
|
||||
libsasl2-modules \
|
||||
ssl-cert \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
|
||||
VOLUME /etc/postfix
|
||||
CMD postfix start-fg
|
||||
Reference in New Issue
Block a user