smtp4dev
smtp4dev copied to clipboard
[Feature] Added webui port to appsettings.json
I have problem with overlapping port on smtp4dev and other app, please add webui port to appsettings.json config so it can be changed from predefined 5000.
You can set custom port when starting the app. I have set it in the {PathToExe} when installing windows service:
C:\your\path\Rnwood.Smtp4dev.exe --service --server.urls "http://0.0.0.0:5001/"
This would be a great feature. I would like to run it as https so I can use it my chrome. Would be nice to be able to just type smtp4dev in my commandline instead of remembering to add the switch.
I totally agree. We are abou tot run smtp4dev in an OpenShift cluster whic does not allow root containers, so we cannot use port 80 for Kestrel and we do not intend to change the Dockerfile as well.
We can set ports for smtp and imap in the env vars like
- name: ServerOptions__Port
value: '1025'
- name: ServerOptions__ImapPort
value: '1143'
but it seems there's no option for http port.
This has been implemented in PR #1462.
Please see the settings file (and existing --urls
command line option) for info.