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

Failed to authenticate on SMTP server with username \"[email protected]\" using 0 possible authenticators #4534

Open
clementmoulin opened this issue Jan 30, 2025 · 7 comments

Comments

@clementmoulin
Copy link

PHP version: (freescout docker)
FreeScout version: 1.8.166
Database: MySQL
Are you using CloudFlare: Yes
Are you using non-official modules: No

Hello

We have the same issue as #4391 . We have 3 mailboxes configured, and having the issue on 2.
The one working fine is using MS365, the two others are IMAP/SMTP based (and for me, this is the issue, having both type).

They're connecting to our SMTP, so we have some trace. The errors occurs dozen of times.
So I checked SMTP logs for earlier connections:

Jan 22 23:46:53 scylla postfix/submission/smtpd[17922]: disconnect from unknown[X.X.X.X] ehlo=2 starttls=1 commands=3
Jan 22 23:46:53 scylla postfix/submission/smtpd[17922]: connect from unknown[X.X.X.X]
Jan 22 23:46:53 scylla postfix/submission/smtpd[17922]: lost connection after EHLO from unknown[X.X.X.X]
Jan 22 23:46:53 scylla postfix/submission/smtpd[17922]: disconnect from unknown[X.X.X.X] ehlo=2 starttls=1 commands=3

As you can see Freescout do not try to login.

Sending test email is working fine from configuration page.
But on it, I can see "Microsoft Exchange" under Password field.

BR

@freescout-help
Copy link
Collaborator

Have you tried step 2: https://github.com/freescout-help-desk/freescout/wiki/Sending-Issues#12-diagnosing-the-issue

Go to Mailbox "Sending Emails" section, try to send test email and you will get full SMTP log.

@clementmoulin
Copy link
Author

As I said in my initial message, "Sending test email is working fine".
We had issue only with notifications emails (ticket assignements etc.).

@freescout-help
Copy link
Collaborator

You must be sending test emails via something else.

Still you have to diagnose the issue yourself following this steps: https://github.com/freescout-help-desk/freescout/wiki/Sending-Issues#12-diagnosing-the-issue

@clementmoulin
Copy link
Author

clementmoulin commented Feb 11, 2025

Why did you close this issue ? It is still present.

=> https://github.com/freescout-help-desk/freescout/wiki/Sending-Issues#12-diagnosing-the-issue

  1. => "Error sending email to user | Failed to authenticate on SMTP server with username "[email protected]" using 0 possible authenticators.; File: /www/html/overrides/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php (191)"

  2. => Already done, as said twice => works.

  3. => "Failed to authenticate on SMTP server with username "[email protected]" using 0 possible authenticators. {"exception":"[object] (Swift_TransportException(code: 0): Failed to authenticate on SMTP server with username "[email protected]" using 0 possible authenticators. at /www/html/overrides/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:191)

  4. => (on notification) "Feb 3, 2025 19:47 | Accepted for delivery
    Feb 3, 2025 18:47 | Send errorFailed to authenticate on SMTP server with username "" using 0 possible authenticators.
    Feb 3, 2025 18:42 | Send errorFailed to authenticate on SMTP server with username "
    " using 0 possible authenticators."
    So failed twice, but finally works...

  5. => Running in docker (and anyway revelant only if always failing)

  6. => Already provided

  7. => Irrevelant here.

  8. => Done, no change.

@freescout-help
Copy link
Collaborator

It looks like we can't help here. It needs to be debugged on your server.

@clementmoulin
Copy link
Author

Tell me what I can do to provide debugging.

@freescout-help
Copy link
Collaborator

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

2 participants