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

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View 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"]