mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #542] 127.0.0.1 alias to localhost in mailpit sendmail (invalid address: 127.0.0.1:1025 in v1.27.2) #347
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#347
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stasadev on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/542
We started seeing failed container tests for Mailpit in DDEV:
https://github.com/ddev/ddev/actions/runs/16557332228/job/46849011812#step:7:3266
127.0.0.1:1025doesn't work anymore in v1.27.2:From PHP logs:
Although
localhost:1025works fine:Caused by
github.com/axllent/mailpit@e1ed21abffNot sure if it's worth chasing since we can change it in our code, but this logic has worked for years.
@axllent commented on GitHub (Jul 28, 2025):
Hmmmm, I can't see why this would cause any change in behaviour. This should work exactly as it was before, except if the smtpd is configured to use TLS, then sendmail won't complain if the certificate can't be validated. The
smtp.SendMail()function which was previously used was copied almost 1:1.Are you sure this issue is related to Mailpit? Does switching back to the previous version of Mailpit solve the problem?
@stasadev commented on GitHub (Jul 28, 2025):
The problem is this new check:
github.com/axllent/mailpit@7423b9660b/sendmail/cmd/smtp.go (L77-L81)url.Parsedoesn't recognize127.0.0.1:1025Reproduce https://go.dev/play/p/Mi0HqTgCoLi
@axllent commented on GitHub (Jul 28, 2025):
Yeah sorry, I was just about to confirm that I can reproduce this.... will find a solution and get back to you.
@axllent commented on GitHub (Jul 28, 2025):
I've fixed the bug and just released a new version . Please confirm this works for you? If you need the docker image then you'll need to wait about 10 minutes for it to finish building.
@stasadev commented on GitHub (Jul 28, 2025):
Thank you!
I confirm that it works https://github.com/ddev/ddev/actions/runs/16557332228/job/46861491730