Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using authenticated mongo #334

Open
ahrezaldy opened this issue Nov 26, 2020 · 3 comments
Open

Using authenticated mongo #334

ahrezaldy opened this issue Nov 26, 2020 · 3 comments

Comments

@ahrezaldy
Copy link

Is there any way to use Authenticated MongoDB as mail storage?
So far in config there are only Mongo URI, DB, & collection setting, but no setting for mongo auth.

@masterkain
Copy link

      - name: MH_STORAGE
        value: mongodb
      - name: MH_MONGO_DB
        value: mailhog
      - name: MH_MONGO_URI
        value: root:[email protected]:27017

@jancyril
Copy link

jancyril commented Jul 6, 2022

Hi @masterkain, I wonder if you had tried to connect to Mongo Atlas? I tried doing something like this, but it can't connect.
mongodb+srv://username:[email protected]

@mipmip
Copy link

mipmip commented Aug 29, 2023

This can only work if you use the PR: mailhog/storage#12
You can compile a working version with: https://github.com/vmary2014/MailHog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants