-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow Insecure Mail Transport #55
base: master
Are you sure you want to change the base?
Conversation
Changed the transport builder to be more flexible. > Defaults to secure = true if mail.secure is not specified > Does not require auth to be specified if not needed
Hey @fritz-fritz 👋, I'm away for a while so won't be able to test this behaviour. But the changes are minimal so looks fine to me atm. However the auth fields are marked |
Yes it is hardcoded there as well. There's actually several ways I'd suggest reworking the settings view to allow for a smoother user experience and more flexibility. But my goal with this commit was simply to allow for advanced configuration directly from the configuration file. If you'd like to hold this and rework the frontend too I'd be open to that. |
Use case is mainly for when the mail server is on localhost and no auth or security is required. This updates the form so that it can be configured successfully from the browser instead of only from the configuration file.
I went ahead and modified the view to allow setting these values via the browser. I also fixed what seems to have been a bug where Reply-To was marked as optional but still was a required form field. |
Hey @fritz-fritz, Probable Issues - Assume this scenario -
Solution - pm2 start app.js --no-autorestart --name ghosler Alternatively, if you need the features from the cli, download it, change the base url here, install it globally - npm install -g . and you should be good to go! |
Hey @ItzNotABug, Totally understand the initial skepticism. Regarding the multiple email credentials, you should check out the code in how I implemented this. It is per mail config. So that should be a non-issue. Regarding the use of non-secure and/or non-authenticating connections. I absolutely agree that security is important. However, it is totally normal to be talking to a mail server over localhost that doesn't require either and would introduce latency and overhead to do so. As long as the mail server is local there is no issue. Ultimately my view is that this is a valid configuration to implement and concerns regarding spam and security fail on the mail server not Ghosler. |
Changed the transport builder to be more flexible.
This fixes the issue revealed in #54