Skip to content

Commit 28425f5

Browse files
fix: disable mailpit rdns to avoid smtp delays (#4440)
* Disable Mailpit Rdns To Fix Smtp Delays (#40343) * Apply suggestions from code review * Apply suggestion from @sweatybridge --------- Co-authored-by: Han Qiao <sweatybridge@gmail.com>
1 parent 1f436c0 commit 28425f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/start/start.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,10 @@ EOF
763763
ctx,
764764
container.Config{
765765
Image: utils.Config.Inbucket.Image,
766+
Env: []string{
767+
// Disable reverse DNS lookups in Mailpit to avoid slow/delayed DNS resolution
768+
"MP_SMTP_DISABLE_RDNS=true",
769+
},
766770
Healthcheck: &container.HealthConfig{
767771
Test: []string{"CMD", "/mailpit", "readyz"},
768772
Interval: 10 * time.Second,

0 commit comments

Comments
 (0)