[GH-ISSUE #1] Basic Auth #2

Closed
opened 2026-03-15 11:59:08 +03:00 by kerem · 11 comments
Owner

Originally created by @mbuk on GitHub (Aug 3, 2022).
Original GitHub issue: https://github.com/axllent/mailpit/issues/1

Hi @axllent thanks for releasing this.
Can I +1 for basic auth support?

Originally created by @mbuk on GitHub (Aug 3, 2022). Original GitHub issue: https://github.com/axllent/mailpit/issues/1 Hi @axllent thanks for releasing this. Can I +1 for basic auth support?
kerem closed this issue 2026-03-15 11:59:13 +03:00
Author
Owner

@axllent commented on GitHub (Aug 3, 2022):

I had actually already started work on this feature yesterday, so you can likely expect it in the next couple few days 👍

<!-- gh-comment-id:1204369563 --> @axllent commented on GitHub (Aug 3, 2022): I had actually already started work on this feature yesterday, so you can likely expect it in the next couple few days 👍
Author
Owner

@mbuk commented on GitHub (Aug 3, 2022):

Amazing 🙇

<!-- gh-comment-id:1204424720 --> @mbuk commented on GitHub (Aug 3, 2022): Amazing 🙇
Author
Owner

@axllent commented on GitHub (Aug 3, 2022):

I'll leave this open until it is actually implemented and tested :)

<!-- gh-comment-id:1204475176 --> @axllent commented on GitHub (Aug 3, 2022): I'll leave this open until it is actually implemented and tested :)
Author
Owner

@axllent commented on GitHub (Aug 4, 2022):

@mbuk I've just release 0.0.5 which contains Basic Auth support. Please test and report any issues, thanks.

<!-- gh-comment-id:1204774277 --> @axllent commented on GitHub (Aug 4, 2022): @mbuk I've just release 0.0.5 which contains Basic Auth support. Please test and report any issues, thanks.
Author
Owner

@mbuk commented on GitHub (Aug 4, 2022):

I'll check it out today!

Thanks

<!-- gh-comment-id:1204927093 --> @mbuk commented on GitHub (Aug 4, 2022): I'll check it out today! Thanks
Author
Owner

@mbuk commented on GitHub (Aug 4, 2022):

@axllent noticed that the auth file spec has -a, ---auth-file string when looking at the help
but the documentation says --auth-file

Triple hyphen in exec but double in docs.

Other that minor point all working perfectly!

Tested changing the hash type
Tested multiple users
Tested file missing
Tested permissions restricted to file.
All behaves as expected!

Thank you!

<!-- gh-comment-id:1205064375 --> @mbuk commented on GitHub (Aug 4, 2022): @axllent noticed that the auth file spec has -a, ---auth-file string when looking at the help but the documentation says --auth-file <path-to-file> Triple hyphen in exec but double in docs. Other that minor point all working perfectly! Tested changing the hash type Tested multiple users Tested file missing Tested permissions restricted to file. All behaves as expected! Thank you!
Author
Owner

@axllent commented on GitHub (Aug 4, 2022):

Thanks for the feedback & testing! You are absolutely right, that's a typo in the three --- - I will fix that which will be included in the next release tomorrow.

<!-- gh-comment-id:1205085049 --> @axllent commented on GitHub (Aug 4, 2022): Thanks for the feedback & testing! You are absolutely right, that's a typo in the three `---` - I will fix that which will be included in the next release tomorrow.
Author
Owner

@sandervanzutphen commented on GitHub (Aug 4, 2022):

Are the different basicAuth users supposed to result in split inboxes? That does not seem to be te case atm.
This becouse the -h parameters describes the -m parameter as "Max number of messages per mailbox (default 500)", emphatis on the 'per mailbox' part.

<!-- gh-comment-id:1205398339 --> @sandervanzutphen commented on GitHub (Aug 4, 2022): Are the different basicAuth users supposed to result in split inboxes? That does not seem to be te case atm. This becouse the -h parameters describes the -m parameter as "Max number of messages per mailbox (default 500)", emphatis on the 'per mailbox' part.
Author
Owner

@axllent commented on GitHub (Aug 4, 2022):

No it does not, it is all just access to one mabox. Initially I considered that, but to get something like that working would require email filtering, rules, permissions, and a bunch more. It just became too complicated for a tool intended only for developer testing.

<!-- gh-comment-id:1205695817 --> @axllent commented on GitHub (Aug 4, 2022): No it does not, it is all just access to one mabox. Initially I considered that, but to get something like that working would require email filtering, rules, permissions, and a bunch more. It just became too complicated for a tool intended only for developer testing.
Author
Owner

@axllent commented on GitHub (Aug 6, 2022):

@mbuk Just to keep you in the loop as I know you're using this feature, in the latest (0.1.0) release -a and --auth-file have been deprecated and replaces with just --ui-auth-file (no short flag). I did this because Mailpit now also has the option for SMTP authentication which is called --smtp-auth-file - so it made the most sense to rename that original flag.

<!-- gh-comment-id:1207172171 --> @axllent commented on GitHub (Aug 6, 2022): @mbuk Just to keep you in the loop as I know you're using this feature, in the latest (0.1.0) release `-a` and `--auth-file` have been deprecated and replaces with just `--ui-auth-file` (no short flag). I did this because Mailpit now also has the option for SMTP authentication which is called `--smtp-auth-file` - so it made the most sense to rename that original flag.
Author
Owner

@mbuk commented on GitHub (Aug 6, 2022):

@axllent Cheers 👍

<!-- gh-comment-id:1207228657 --> @mbuk commented on GitHub (Aug 6, 2022): @axllent Cheers 👍
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#2
No description provided.