[GH-ISSUE #212] Allow using privileged (<1024) port for Docker image #143

Closed
opened 2026-03-15 12:50:25 +03:00 by kerem · 2 comments
Owner

Originally created by @nevergone on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/212

Please Allow using privileged (<1024) TCP port. For example, UI: 80 and SMTP: 25

neccessary:
libpcap and setcap CAP_NET_BIND_SERVICE=+eip to binary result

Originally created by @nevergone on GitHub (Nov 27, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/212 Please Allow using privileged (<1024) TCP port. For example, UI: 80 and SMTP: 25 neccessary: libpcap and `setcap CAP_NET_BIND_SERVICE=+eip` to binary result
kerem closed this issue 2026-03-15 12:50:30 +03:00
Author
Owner

@nevergone commented on GitHub (Nov 27, 2023):

Ok, it's working. Sorry.

<!-- gh-comment-id:1828733310 --> @nevergone commented on GitHub (Nov 27, 2023): Ok, it's working. Sorry.
Author
Owner

@axllent commented on GitHub (Nov 28, 2023):

Glad to hear it. Mailpit can run with those ports if run as root. There isn't currently any support for running as a non-privileged user below 1024, however if running within docker then this can be easily mapped (or run as root).

<!-- gh-comment-id:1829139228 --> @axllent commented on GitHub (Nov 28, 2023): Glad to hear it. Mailpit can run with those ports if run as root. There isn't currently any support for running as a non-privileged user below 1024, however if running within docker then this can be easily mapped (or run as root).
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#143
No description provided.