WIP: conversion a docker

This commit is contained in:
Mauro Torrez
2019-09-07 19:27:12 -03:00
parent 0187fe290c
commit cc7260fea3
6 changed files with 131 additions and 135 deletions

View File

@@ -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
View 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