SMTP not working, Error 503

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #35325
    fhwebdesign
    Participant

      Hi there, I think the SMTP password is not being saved. So I can send with my mail client thunderbird through this email with the right authentication email to all receivers, but with wppizza it won’t work, so this have to be a plugin error. “Error 503 this server requires Authentication” occures by trying that. Do you have any idea?

      #35328
      Olly
      Admin & Mod

        sounds more like it’s not set to use SMTP in the first place (i can assure you the password does get saved)

        #35330
        fhwebdesign
        Participant

          “Use SMTP” is checked. So what could that else be?

          #35332
          Olly
          Admin & Mod

            have you used/run the test there (i assume we are talking about the smtp settings section in the wppizza plugin) ?
            what does the output give you ?

            #35333
            Olly
            Admin & Mod

              and also (just checking) are you using another SMTP plugin by any chance ?

              #35334
              fhwebdesign
              Participant

                Of course I run the test at the wppizza plugin, this is the output:

                Array
                (
                [error] => FAIL - check details below
                [error-info] => Array
                (
                [last-error] => Array
                (
                [type] => 2
                [message] => mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
                [file] => C:\Inetpub\vhosts\XXXXXcensoredXXXXX\wp-includes\class-phpmailer.php
                [line] => 698
                )
                [phpmailer] => Could not instantiate mail function.
                )
                [debug] => 
                )

                I am not using another plugin related with SMTP.

                #35337
                Olly
                Admin & Mod

                  did you “verify that the domain or address is defined for this server.”
                  test smtp emails simply use the default wp_mail from address (something like [email protected])
                  whereas “live” emails so to speak use the settings in wppizza->settings ->emails

                  i guess i should probably change this to be used for test emails too at some point.
                  as it is what it is at the moment, have you tried doing a test email with an actual test order ?

                  PS: when you test it, it does not even use any saved parameters but directly what you have typed into the formfields

                  #35339
                  fhwebdesign
                  Participant

                    As normal test order this is the error:

                    EMAIL TO SHOP FAILED: Could not instantiate mail function. | Array
                    (
                    [type] => 2
                    [message] => mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
                    [file] => C:\Inetpub\vhosts\XXXcensoredXXX\wp-includes\class-phpmailer.php
                    [line] => 698
                    )
                    | Recipients: [email protected] | Subject: [Pizza XXX] - ORDER TEXT 27. February 2018 15:19 | Headers: Array
                    (
                    [0] => Content-Type: text/html; charset=UTF-8
                    [1] => From: Pizza XXX <[email protected]>
                    [2] => Reply-To: [email protected]
                    [3] => Cc: [email protected]
                    )

                    What do you mean with “verify that the domain or address is defined for this server.”?
                    The wordpress installation runs at subdomain.MY-DOMAIN.com and the email is [email protected]

                    #35343
                    Olly
                    Admin & Mod

                      >What do you mean with “verify that the domain or address is defined for this server.”?
                      lol, *I* don’t mean anything by that. it’s the phpmailer script that says this

                      can you check with your host/server admin first of all if From: Pizza XXX is allowed to send in the first place to a non-local address (and/or have a look at your mail (error) log)

                      #35344
                      Olly
                      Admin & Mod

                        you could also try to disable the wppizza smtp functionality and see if you have more luck with another 3rd party smtp plugin

                        wppizza is of course not really a smtp plugin as such. i just added that option to perhaps be useful and i know it works on many/most servers (not to mention that i noticed that many smtp plugin store their smtp passwords in plaintext which – in my book – is far from ideal)

                        #35345
                        fhwebdesign
                        Participant

                          Okay, with another SMTP plugin this works not, too. So the error must be in my configuration, but why can I send with thunderbird from this email account?

                          #35352
                          Olly
                          Admin & Mod

                            because using a server to send is quite different from using an email client
                            you’ll have to speak to your mail administrator

                            #35353
                            fhwebdesign
                            Participant

                              I am the mail administrator… hosted with plesk.

                              #35385
                              fhwebdesign
                              Participant

                                But the normal contact form like Contact Form 7 is working without a problem? Could that be nessessary?

                                #35386
                                Olly
                                Admin & Mod

                                  All I can suggest is to look at your mail(error)logs and speak to your host

                                  I know absolutely nothing about your server / server setup and if it’s not only the wppizza smtp settings but also other smtp plugins that throw errors then there’s clearly something wrong in your setup/credentials somewhere

                                  #35387
                                  fhwebdesign
                                  Participant

                                    Ok I solved it. Just change in the file /wp-includes/class-phpmailer.php the paragraph public $SMTPAutoTLS = true; to public $SMTPAutoTLS = false;

                                    #35388
                                    Olly
                                    Admin & Mod

                                      hacking core files is a VERY VERY bad idea (you will have the same problem every time wordpress updates)

                                      #35389
                                      fhwebdesign
                                      Participant

                                        Okay, so do you know how to solve this without changing core files?

                                        #35390
                                        Olly
                                        Admin & Mod

                                          i just found somthing here
                                          https://wordpress.org/support/topic/smtpautotls-overrides-smtpsecure-no-tlsssl-in-php-56/
                                          (filter at the end of page)

                                          other than that, google is your friend

                                          #35391
                                          Olly
                                          Admin & Mod

                                            seems to me that perhaps your certificate on your server is the problem or ssl is not enabled but it’s just a guess

                                          Viewing 20 posts - 1 through 20 (of 20 total)
                                          • The topic ‘SMTP not working, Error 503’ is closed to new replies.