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

View 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

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