[GH-ISSUE #514] macOS: linking for sendmail does not work #331

Closed
opened 2026-03-15 13:55:20 +03:00 by kerem · 5 comments
Owner

Originally created by @akazik on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/514

I've linked mailpit as described, but it doesn't work.

❯ ln -s /opt/homebrew/bin/mailpit sendmail

❯ ls -la sendmail 
lrwxr-xr-x  1 akazik  wheel    25B Jun  5 12:57 sendmail@ -> /opt/homebrew/bin/mailpit

❯ ./sendmail 
INFO[2025/06/05 12:57:21] [smtpd] starting on [::]:1025 (no encryption) 
INFO[2025/06/05 12:57:21] [http] starting on [::]:8025                 
INFO[2025/06/05 12:57:21] [http] accessible via http://localhost:8025/ 
FATA[2025/06/05 12:57:21] listen tcp 0.0.0.0:1025: bind: address already in use 

❯ ./sendmail version
./sendmail v1.25.1 compiled with go1.24.3 on darwin/arm64

❯ mailpit version
mailpit v1.25.1 compiled with go1.24.3 on darwin/arm64

macOS 15.5 @ M1 Mac mini

Originally created by @akazik on GitHub (Jun 5, 2025). Original GitHub issue: https://github.com/axllent/mailpit/issues/514 I've linked mailpit as described, but it doesn't work. ```shell ❯ ln -s /opt/homebrew/bin/mailpit sendmail ❯ ls -la sendmail lrwxr-xr-x 1 akazik wheel 25B Jun 5 12:57 sendmail@ -> /opt/homebrew/bin/mailpit ❯ ./sendmail INFO[2025/06/05 12:57:21] [smtpd] starting on [::]:1025 (no encryption) INFO[2025/06/05 12:57:21] [http] starting on [::]:8025 INFO[2025/06/05 12:57:21] [http] accessible via http://localhost:8025/ FATA[2025/06/05 12:57:21] listen tcp 0.0.0.0:1025: bind: address already in use ❯ ./sendmail version ./sendmail v1.25.1 compiled with go1.24.3 on darwin/arm64 ❯ mailpit version mailpit v1.25.1 compiled with go1.24.3 on darwin/arm64 ``` macOS 15.5 @ M1 Mac mini
kerem 2026-03-15 13:55:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@axllent commented on GitHub (Jun 5, 2025):

Thanks for reporting this, I will need to investigate why Mac has this behaviour.

<!-- gh-comment-id:2943795036 --> @axllent commented on GitHub (Jun 5, 2025): Thanks for reporting this, I will need to investigate why Mac has this behaviour.
Author
Owner

@akazik commented on GitHub (Jun 5, 2025):

Installed via homebrew, and I found a solution, so no need to hurry for me (though I'd prefer that way).

<!-- gh-comment-id:2943807445 --> @akazik commented on GitHub (Jun 5, 2025): Installed via homebrew, and I found a solution, so no need to hurry for me (though I'd prefer that way).
Author
Owner

@axllent commented on GitHub (Jun 5, 2025):

What solution/workaround did you find?

<!-- gh-comment-id:2943813268 --> @axllent commented on GitHub (Jun 5, 2025): What solution/workaround did you find?
Author
Owner

@akazik commented on GitHub (Jun 5, 2025):

A shell-script:

#!/bin/sh
/opt/homebrew/bin/mailpit sendmail "$@"

this seems also to work (but I don't trust the parameters passing through either way):

#!/opt/homebrew/bin/mailpit sendmail
<!-- gh-comment-id:2943819860 --> @akazik commented on GitHub (Jun 5, 2025): A shell-script: ```shell #!/bin/sh /opt/homebrew/bin/mailpit sendmail "$@" ``` this seems also to work (but I don't trust the parameters passing through either way): ```shell #!/opt/homebrew/bin/mailpit sendmail ```
Author
Owner

@axllent commented on GitHub (Jun 6, 2025):

I have pushed a fix for this in v1.26.0 which should resolve your issue. Please feel free to reopen this if you are still having issues. Thanks for reporting the bug.

<!-- gh-comment-id:2948341678 --> @axllent commented on GitHub (Jun 6, 2025): I have pushed a fix for this in [v1.26.0](https://github.com/axllent/mailpit/releases/tag/v1.26.0) which should resolve your issue. Please feel free to reopen this if you are still having issues. Thanks for reporting the bug.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#331
No description provided.