-
Notifications
You must be signed in to change notification settings - Fork 20
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
Anonymous Email Sending Failed #1
Comments
@ndelitski would you entertain a pull request for supporting noauth? |
@flaccid surely! sry didn't see notifications earlier. we will definitely fix it soon! |
@ndelitski no worries, we also would like templating of the emails including html; I sent you an email, but basically just wondering if pull requests are ok or if you would rather do in your own way - templating for example is not a minor change. |
PR with fixes are totally ok! but for features like email templating project needs significant refactoring as you said, it would be better if I do it by myself. I'll try release templating these week, it depends on my current workload |
Mounting a template file(something like .hbs) into rancher-alarms container sounds good for you? |
No problem, we'll keep an eye out and then after these 2 are addressed see if we can PR any fixes that might be laying around. I think for feature changes that are not minor, we'll start with an issue first. Re: templating, handlebars is fine but we do need a basic way to do this in compose directly in rancher without using volumes if possible though it might make sense that the rancher-alarms container can simply take a volumes-from of a data container with custom templates inside. |
@JayHaoDing @flaccid just released a prepatch version image with noauth fix, please check it out with your smtp server |
FYI code changes since 0.1.0 aafeabb |
@ndelitski test result showed the solution did not work. I did not configure ALARM_EMAIL_USER and ALARM_EMAIL_PASS but seems smtp.auth is still not NULL.
And just FYI, due to proxy issue we cannot use the rancher-alarms image directly so we have touse own Dockerfile and looks like
|
@JayHaoDing no need to pass empty hash in |
But it didn't work according to my test. I simpley did not set any value (not mention at all) for USER and PASS in docker compose file. What else shall I do? Regards,
From: Nick Delitski notifications@github.com @JayHaoDing no need to pass empty hash in auth parameter, current logic is – if auth present it should have credentials or it is invalid — |
Perhaps support either method and document best method in readme? |
@JayHaoDing you are right, I forgot a part where environment variables are composed into config. In a future refactoring I am planning to move config asserts into one place. |
@ndelitski new changes have fixed this issue, thanks! |
Good to close (after merge to master)? |
will close soon after updating docs |
Possible to wrap this one up soon? |
Existing email sending schema requires auth method. It is necessary for public SMTP server but corporation internal SMTP can be used for anonymous email sending.
Therefore, default configuration will give following error
If the auth part is removed in email.es6 then it's fine
The text was updated successfully, but these errors were encountered: