Allow SMTP notification without user/password #27

Closed
opened 2026-02-28 01:32:14 -05:00 by deekerman · 3 comments
Owner

Originally created by @FuzzyMistborn on GitHub (Jul 12, 2021).

I'm running Mailrise (https://github.com/YoRyan/mailrise) for my SMTP relay to then use any Apprise notifier. It works fine when I test it, but I can't save my settings as I don't have a username/password set. Any chance to remove that restriction?

Originally created by @FuzzyMistborn on GitHub (Jul 12, 2021). I'm running Mailrise (https://github.com/YoRyan/mailrise) for my SMTP relay to then use any Apprise notifier. It works fine when I test it, but I can't save my settings as I don't have a username/password set. Any chance to remove that restriction?
Author
Owner

@louislam commented on GitHub (Jul 13, 2021):

1.0.2 updated for this

@louislam commented on GitHub (Jul 13, 2021): 1.0.2 updated for this
Author
Owner

@NeuralMiner commented on GitHub (Aug 10, 2021):

It appears this still might be an issue; though the requirement for a UID/PW was removed when setting up the alert, it'll fail with Missing credentials for "PLAIN" when attempting to send SMTP without credentials.
It looks like this project had the same issue: https://github.com/directus/directus/issues/5652
I was able to get it working by manually setting the following line to auth: false,: github.com/louislam/uptime-kuma@2461f5084e/server/notification.js (L376-L379)
So I assume a check just has to be made first to check if a UID/PW is set, and if not, set auth to false?

@NeuralMiner commented on GitHub (Aug 10, 2021): It appears this still might be an issue; though the requirement for a UID/PW was removed when setting up the alert, it'll fail with `Missing credentials for "PLAIN"` when attempting to send SMTP without credentials. It looks like this project had the same issue: https://github.com/directus/directus/issues/5652 I was able to get it working by manually setting the following line to `auth: false,`: https://github.com/louislam/uptime-kuma/blob/2461f5084e2ef58f3ecfd6f1ece8ade7faa4cb8e/server/notification.js#L376-L379 So I assume a check just has to be made first to check if a UID/PW is set, and if not, set auth to false?
Author
Owner

@louislam commented on GitHub (Aug 20, 2021):

It appears this still might be an issue; though the requirement for a UID/PW was removed when setting up the alert, it'll fail with Missing credentials for "PLAIN" when attempting to send SMTP without credentials.
It looks like this project had the same issue: directus/directus#5652
I was able to get it working by manually setting the following line to auth: false,:

github.com/louislam/uptime-kuma@2461f5084e/server/notification.js (L376-L379)

So I assume a check just has to be made first to check if a UID/PW is set, and if not, set auth to false?

Should be fixed in 1.3.0

@louislam commented on GitHub (Aug 20, 2021): > It appears this still might be an issue; though the requirement for a UID/PW was removed when setting up the alert, it'll fail with `Missing credentials for "PLAIN"` when attempting to send SMTP without credentials. > It looks like this project had the same issue: [directus/directus#5652](https://github.com/directus/directus/issues/5652) > I was able to get it working by manually setting the following line to `auth: false,`: > > https://github.com/louislam/uptime-kuma/blob/2461f5084e2ef58f3ecfd6f1ece8ade7faa4cb8e/server/notification.js#L376-L379 > > > So I assume a check just has to be made first to check if a UID/PW is set, and if not, set auth to false? Should be fixed in 1.3.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#27
No description provided.