first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
27
base/opensmtpd/6.6.1p1/Dockerfile
Normal file
27
base/opensmtpd/6.6.1p1/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
LABEL maintainer="ph1sh && phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install --no-install-recommends -y ca-certificates wget bison autoconf automake gcc make libc-dev libasr-dev libssl-dev libevent-dev zlib1g-dev \
|
||||
&& cd /usr/src \
|
||||
&& wget -qO- https://www.opensmtpd.org/archives/opensmtpd-6.6.1p1.tar.gz | tar xz --strip-components=1 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& cd / \
|
||||
&& apt-get purge -y --auto-remove bison autoconf automake gcc make \
|
||||
&& rm -rf /var/lib/apt/lists/* /usr/src/*
|
||||
|
||||
RUN set -ex \
|
||||
&& mkdir /var/empty \
|
||||
&& useradd -c "SMTP Daemon" -d /var/empty -s /sbin/nologin _smtpd \
|
||||
&& useradd -c "SMTPD Queue" -d /var/empty -s /sbin/nologin _smtpq
|
||||
|
||||
COPY aliases /etc/
|
||||
COPY smtpd.conf /usr/local/etc/
|
||||
|
||||
WORKDIR /tmp
|
||||
EXPOSE 25
|
||||
CMD ["smtpd", "-dv"]
|
13
base/opensmtpd/6.6.1p1/aliases
Normal file
13
base/opensmtpd/6.6.1p1/aliases
Normal file
@@ -0,0 +1,13 @@
|
||||
abuse: root
|
||||
noc: root
|
||||
security: root
|
||||
|
||||
# RFC 2142 SUPPORT MAILBOX NAMES FOR SPECIFIC INTERNET SERVICES
|
||||
postmaster: root
|
||||
hostmaster: root
|
||||
# usenet: root
|
||||
# news: usenet
|
||||
webmaster: root
|
||||
www: webmaster
|
||||
# uucp: root
|
||||
ftp: root
|
7
base/opensmtpd/6.6.1p1/smtpd.conf
Normal file
7
base/opensmtpd/6.6.1p1/smtpd.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
table aliases file:/etc/aliases
|
||||
listen on "0.0.0.0"
|
||||
action "local" mbox alias <aliases>
|
||||
action "relay" relay
|
||||
match for local action "local"
|
||||
match from local for any action "relay"
|
||||
match from any for any action "local"
|
Reference in New Issue
Block a user