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

AWS SES SMTP with special characters in credentials fail authentication #4777

Closed
1 task done
solidterre opened this issue May 21, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@solidterre
Copy link

solidterre commented May 21, 2024

πŸ“‘ I have found these related issues/pull requests

I checked and didn't find similar issue.

πŸ›‘οΈ Security Policy

Description

It seems that when using the Email (SMTP) notification type and using credentials with special characters ("/" or "\" for example), the credentials can not be validated (I keep getting a 535 error).

image

I am sure these credentials are valid (checked multiple times) since they are the same (copy pasted, no additional spaces or invisible characters added) as the ones I use on another website and they work there.

It seems to me like this is due to an encoding issue ?

πŸ‘Ÿ Reproduction steps

  1. Setup notification
  2. Select Email (SMTP)
  3. Fill in SMTP information
  4. Use credentials with a special character (like "/" or "\" f.e.)

πŸ‘€ Expected behavior

It just works.

πŸ˜“ Actual Behavior

"Invalid login" error.

🐻 Uptime-Kuma Version

1.23.13

πŸ’» Operating System and Arch

Debian 12

🌐 Browser

Firefox

πŸ–₯️ Deployment Environment

  • Runtime: Docker 26.1.3 + Caddy
  • Database: SQLite
  • Filesystem used to store the database on:
  • number of monitors: 6

πŸ“ Relevant log output

No response

@solidterre solidterre added the bug Something isn't working label May 21, 2024
@CommanderStorm
Copy link
Collaborator

We don't encode the password or username.

  • Before we go out and try replicating this:
    Have you made sure that ALL the settings (including smtp-hostname+port, auth options, dkim, ...) are identical (not just username+PW)?
  • Why do you think special character (like "/" or "\" f.e.) are at fault? (have you changed the password to be just alphanumeric? What was the result?)
  • What mail provider are you using?

Unrelated:
Database: MariaDB is Conflicting with the version number. In v1, we only support sqlite as a database. See #4500 for further details.

@solidterre
Copy link
Author

solidterre commented May 21, 2024

Actually it seems I was mistaken. For "pure" usage of SMTP tokens generated from AWS SES (which is the provider I use), I need to generate the SMTP password using a special script - which I wasn't aware of before searching more thoroughly online.

Very sorry for the inconvenient time lost @CommanderStorm, my mistake.
Will update the title for future people who might have this problem.

You can consider this closed.

@solidterre solidterre changed the title SMTP with special characters in credentials fail authentication AWS SES SMTP with special characters in credentials fail authentication May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants