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

Auth failed login to SMTP server when special character in password #4789

Open
2 tasks done
nidasfly opened this issue May 23, 2024 · 10 comments
Open
2 tasks done

Auth failed login to SMTP server when special character in password #4789

nidasfly opened this issue May 23, 2024 · 10 comments
Labels
area:notifications Everything related to notifications cannot-reproduce help type:enhance-existing feature wants to enhance existing monitor

Comments

@nidasfly
Copy link

nidasfly commented May 23, 2024

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

SMTP worked for Outlook months ago.
But I updated Uptime Kuma, it failed to work.
I reproduced this problem.
Then I registered a new outlook email, with no character in the password, it sent email successfully.

📝 Error Message(s) or Log

image

🐻 Uptime-Kuma Version

1.23.13

💻 Operating System and Arch

fly.io

🌐 Browser

Chrome

🖥️ Deployment Environment

[build]
image = 'louislam/uptime-kuma:1'

@nidasfly nidasfly added the help label May 23, 2024
@Vishnu-01-cyber

This comment was marked as duplicate.

@nidasfly

This comment was marked as outdated.

@CommanderStorm
Copy link
Collaborator

Gmail SMTP

Could you have a look at #2928 (comment) and see if you have enabled the app password properly?

Also given that the error message you showed could you make double sure that ALL fields (not just username and password, also DKIM, SMTP hostname/port/...) are identical?
(We get a lot of issues from simple typos)

@nidasfly
Copy link
Author

Yes with the gmail app pass, which has no special character, is working.
But other email provider, like outlook, with special character in password, is not working.
I've tested using python with the exact same config, it's working in python.

image

@nidasfly nidasfly changed the title Auth failed login to Outlook or Gmail SMTP server Auth failed login to SMTP server when character in passwor May 23, 2024
@nidasfly nidasfly changed the title Auth failed login to SMTP server when character in passwor Auth failed login to SMTP server when character in password May 23, 2024
@nidasfly
Copy link
Author

Gmail SMTP

Could you have a look at #2928 (comment) and see if you have enabled the app password properly?

Also given that the error message you showed could you make double sure that ALL fields (not just username and password, also DKIM, SMTP hostname/port/...) are identical? (We get a lot of issues from simple typos)

Hi,
I register a new outlook email, with no special character in the password, and found out uptimekuma can send email with it.
So the problem is located, the character in password is some how changed.
However, I spent hours trying to find out where the code changed the password's special character, but failed.
Could you please look into it?

@nidasfly nidasfly changed the title Auth failed login to SMTP server when character in password Auth failed login to SMTP server when special character in password May 23, 2024
@CommanderStorm
Copy link
Collaborator

The reason why you did not find a place where we chage the password is that it does not exist.
I don't know what is happening with your email provider.

We just pass the username and password to nodemailer as you submitted it to the frontend...

The relevant code is:

config.auth = {
user: notification.smtpUsername,
pass: notification.smtpPassword,
};

<div class="mb-3">
<label for="username" class="form-label">{{ $t("Username") }}</label>
<input id="username" v-model="$parent.notification.smtpUsername" type="text" class="form-control" autocomplete="false">
</div>
<div class="mb-3">
<label for="password" class="form-label">{{ $t("Password") }}</label>
<HiddenInput id="password" v-model="$parent.notification.smtpPassword" :required="false" autocomplete="new-password"></HiddenInput>
</div>

Maybe a similar case as reported here?

@CommanderStorm CommanderStorm added area:notifications Everything related to notifications type:enhance-existing feature wants to enhance existing monitor labels May 23, 2024
@nidasfly
Copy link
Author

nidasfly commented May 23, 2024

Maybe a similar case as reported here?

Can you please try any email with password including special character like "?" or "!"

@CommanderStorm
Copy link
Collaborator

Yes, but that is not the issue..
=> please check the rest of your config for typos and retry again. Depending on your email provider you might also need to activate smtp or hop through additional steps like you have to do for Gmail, GMX or similar..

  • without !?

    image

  • with !?

    image

@nidasfly
Copy link
Author

nidasfly commented May 23, 2024

OK then I don't know what is the problem. It seems only happen to Outlook.
I did check the config for thoughsand times, and tested it with python.

Copy link

We are clearing up our old help-issues and your issue has been open for 60 days with no activity.
If no comment is made and the stale label is not removed, this issue will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:notifications Everything related to notifications cannot-reproduce help type:enhance-existing feature wants to enhance existing monitor
Projects
None yet
Development

No branches or pull requests

3 participants