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

LOGIN and PLAIN always returns auth failure if "allow any creds" is off #1515

Closed
typenoob opened this issue Jun 6, 2024 · 5 comments
Closed

Comments

@typenoob
Copy link

typenoob commented Jun 6, 2024

image
image
image

image

image

@rnwood
Copy link
Owner

rnwood commented Jun 6, 2024 via email

@danrollason-dd
Copy link

Hi. Just encountered the same issue sending an email from a go app. Our session log is

220 localhost smtp4dev ready
EHLO localhost
250-Nice to meet you.
250-8BITMIME
250-SIZE
250-SMTPUTF8
250-AUTH=CRAM-MD5 PLAIN LOGIN
250 AUTH CRAM-MD5 PLAIN LOGIN
AUTH PLAIN AG15c210cHVzZXIAbXlzbXRwcGFzc3dvcmQ=
535 Authentication failure
*
500 Command unrecognised
QUIT
221 Goodbye

Our log from the container is

Session started. Client address ::ffff:127.0.0.1.
SMTP auth failure: Cannot validate credentials of type USERNAME_PASSWORD
SMTP auth failure: Cannot validate credentials of type USERNAME_PASSWORD
Session completed. Client address ::ffff:127.0.0.1. Number of messages 0.

@AlexGeller
Copy link

The smtp server also don't support login mechanism verification.
A( $UW 2IN4{U3HV2}Z$4F

LMVDG7}P86G4GZPZ5%NM71S

@rnwood rnwood changed the title login auth not properly verify? LOGIN and PLAIN always returns auth failure if "allow any creds" is off Sep 5, 2024
@rnwood
Copy link
Owner

rnwood commented Sep 5, 2024

Thanks for reporting this issue. Indeed the credential validation is only working for CRAMMD5 mechanism here.

rnwood added a commit that referenced this issue Sep 5, 2024
rnwood added a commit that referenced this issue Sep 5, 2024
@rnwood
Copy link
Owner

rnwood commented Sep 5, 2024

I believe this is now resolved.

@typenoob typenoob closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants