opensmtpd

main
Ricard Illa 2021-08-15 18:21:19 +02:00
parent 8e9d25df0c
commit c7d313f6fc
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 25 additions and 0 deletions

15
opensmtpd/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alpine:3.14
RUN apk add --update --no-cache \
opensmtpd \
opensmtpd-extras \
rspamd \
opensmtpd-filter-rspamd && \
adduser \
-h /var/vmail \
-s /sbin/nologin \
-u 2000 \
-S -D \
vmail
CMD ["smtpd", "-d"]

10
opensmtpd/Makefile Normal file
View File

@ -0,0 +1,10 @@
USERNAME = rilla
IMG_NAME = opensmtpd
.PHONY: build build-nc
build: Dockerfile
docker build -t $(USERNAME)/$(IMG_NAME) .
build-nc: Dockerfile
docker build --no-cache -t $(USERNAME)/$(IMG_NAME) .