• Resources
  • Free Flarum hosting on an expert platform by FreeFlarum.com

Equinemarkt

Failed to authenticate on SMTP server with username "XXX" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.0 Invalid login or password
". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535 5.7.0 Invalid login or password

Your E-mail settings seem to be incorrect (wrong address or password), so you should have a look at that. The error happens because when you post a reply, it triggers an E-mail notification for users that follow the discussion. And if that fails, an error is shown (but the reply is still saved in the database anyways).

    SKevo Yes! I think it's fixed now! That explains why my newest member didn't received an activate email 🙈🤣 Thank you so much! 😁

    SKevo Nope I celebrated to soon, I'm having an issue with the encrypt setup.

    It's STARTTLS but it doesn't work 😓

      Equinemarkt there are many errors logged in your logs, and I am not sure whether or not they're related to the previous issue. Does it work with encryption other than STARTTLS?

        SKevo unfortunately none of them work. I'm getting errors when I try anything else.

        I tried:
        SSL/TLS
        ssl/tls
        SSL,TLS
        ssl,tls

        Even contacted my host about the email, but they said It should work

        Edit:
        Tried my private email, but same happens. No conformation mail is sended.
        Only way it doesn't give an immediate error is to only put SSL or TLS. But still doesn't send anything. People cannot tag or reply to me also.

          Equinemarkt Only way it doesn't give an immediate error is to only put SSL or TLS

          Yes, according to the source, only tls or ssl are valid for E-mail encryption: https://github.com/flarum/core/blob/eb4b18a979c7406cbf154a107662652d282fe415/src/Mail/SmtpDriver.php#L36 (correct me if I am wrong)

          FYI you are able to browse your logs here to check for issues. The latest error again hints that you have specified either wrong password or username:

          [2022-02-17 07:53:38] flarum.ERROR: Swift_TransportException: Failed to authenticate on SMTP server with username "XXX" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.0 Invalid login or password
          ". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535 5.7.0 Invalid login or password
          ". in /app/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:191

          Another error looked like the one I have experienced earlier: https://discuss.flarum.org/d/7585/2185. Just to check, is E-mail sent correctly when you put nothing in the encryption field/leave it blank? This could be related to symfony/symfony34846, or there's something wrong with our OpenSSL configuration

            SKevo

            I tried another password, because I got a bit confused (lack of sleep, sorry)
            But if I leave the space blank, it does work! I just send an email to myself 🥳

            Thank you so much! Another reason to love Flarum, everyone just wants you to have fun on your forum! Have an amazing day/evening/night!

              Equinemarkt glad that it works. FYI this could also be related to our Postfix (our mail server). When there is no encryption in the settings field, Gmail recognizes it as TLS. I don't know why specifying tls explicitly fails. I should look into this later for possible fixes, so people can use different mail encryptions

              SKevo all good I figured it out and got it sorted with lots of trial and error! Also another question is it possible to create private boards within the forum that may require users to have a password to access?

                Hi all!

                Is there an extension that provides "Sign in with Google" without having to set up a client ID and secret (and with that a verified consent screen)?

                  Lodgee no, but it would be possible if an extension existed for this. AFAIK, there is currently no extension that has this functionality, but if you do find one, feel free to request it at our GitHub

                  orschiro no, and I doubt that such extension will ever exist. To my knowledge, Google OAuth requires you to provide a list of domains and endpoints, so an unique key can be generated for you.

                  Our idea in the past was to have one predefined key to be used by all forums, but IMO that would not work. And using OAuth without client ID/secret is impossible, which is unfortunately a limitation from Google's side.

                    I've included a few new extensions. All forums need to be synced now, because the file structure for them had changes a bit (some extensions moved their files, new ones were created, etc...). What this means is that most forums will report a 50x error when you visit them. You can "Fixup your forum" via https://freeflarum.com/settings/forum_settings, which will sync your forum earlier. Or, you can wait approx. 2-5 hours until all forums are synced.

                    @Equinemarkt I've synced your forum, the error should be gone

                    You guys are really great ♥ , from the last couple of days i am trying to setup flarum in different environments like Plesk and Virtualmin now i can say that if someone wants to start a small flarum it's better to go with freeflarum and point it to their domain/subdomain

                    5 days later

                    @Sanguine please help me configure smtp i saw that it works out of the box but it is not working in my case I tried several smtp service they are not approving my request cause i can't prove my ownership as i have no access to the ftp or anything. But now you only help me to configure the server's default smtp so that i need not to panic thanks in advance.

                      educatedheker

                      This is possibly related to https://discuss.flarum.org/d/7585/3357. What encryption are you using? Does sending mail work when you leave the encryption field blank?

                      Also by the way, you have a couple of errors related to Imgur upload too - some extension that uses it is likely misconfigured (e. g.: wrong Imgur API key)