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

feat(auth): Configurable list of users/passwords to allow for SMTP/IMAP #1413

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

rnwood
Copy link
Owner

@rnwood rnwood commented Apr 19, 2024

No description provided.

This comment has been minimized.

@rnwood rnwood changed the title feat(auth): Add static list of users to confirm for SMTP/IMAP feat(auth): Configurable list of users/passwords to allow for SMTP/IMAP Apr 19, 2024
@rnwood rnwood merged commit 60aff5e into master Apr 19, 2024
15 of 16 checks passed
Comment on lines +117 to +122
"Users": [
//{
// "Username": "username",
// "Password": "password"
//}
]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering how would this option be translated into docker-compose.yml file config in the environment variables?

I tried the following but it's not working:

  smtp4dev:
    image: rnwood/smtp4dev:3.3.6
    environment:
      - ServerOptions__Port=587
      - RelayOptions__SmtpPort=587
      - ServerOptions__Users="[{"Username":"email@host.com","Password":"YouWillNeverKnow"}]"
    ports:
      - 5001:80

Copy link

@ahmed2m ahmed2m Apr 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update: as a workaround for now I've used the user mounted setting in docker and set my desired settings first hand in json:

    smtp4dev:
    image: rnwood/smtp4dev:3.3.6
    ports:
      - 5001:80
    volumes:
      - ./smtp4dev.json:/smtp4dev/appsettings.json

@rnwood rnwood deleted the feature/auth branch April 27, 2024 10:18
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

Successfully merging this pull request may close these issues.

2 participants