Skip to content

Commit

Permalink
Import patches
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Nov 19, 2023
1 parent 4f0b4fa commit 0600fc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ key = ["rcpt-domain"]
concurrency = 5

[resolver]
type = "system"
type = "custom"
#preserve-intermediates = true
concurrency = 2
timeout = "5s"
Expand All @@ -609,6 +609,11 @@ ptr = 1024
tlsa = 1024
mta-sts = 1024

[[resolver.nameservers]]
ip = "10.222.222.1"
port = 53
protocol = "udp"

[report]
path = "/opt/stalwart-mail/reports"
hash = 64
Expand Down
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ ARG VERSION="0.4.2"
ADD https://github.com/stalwartlabs/mail-server/archive/refs/tags/v$VERSION.tar.gz /tmp/v$VERSION.tar.gz
RUN tar --strip-components=1 -C /source -xzf /tmp/v$VERSION.tar.gz

RUN apt update && apt install -y patch

# Enhancement: Custom resolver nameservers
ADD https://patch-diff.githubusercontent.com/raw/stalwartlabs/mail-server/pull/141.patch /tmp/141.patch
RUN patch -p1 < /tmp/141.patch

# Fix: Return an error to client if STARTTLS is not available
ADD https://patch-diff.githubusercontent.com/raw/stalwartlabs/mail-server/pull/135.patch /tmp/135.patch
RUN patch -p1 < /tmp/135.patch

FROM --platform=$BUILDPLATFORM docker.io/lukemathwalker/cargo-chef:latest-rust-slim-bookworm AS chef
WORKDIR /build

Expand Down

0 comments on commit 0600fc9

Please sign in to comment.