Send mail over smtp -Error 500 5.3.3

Hello,

i faced a issue on my smtp settings after we renewed our Certifikat on our mailserver…
Do anyone knows what i can do?
Is there a problem at all on the nextcloud or do i have to look further on the mailserver?

Would be very nice if anyone can help me, cause i do not frikking know what the problem could be… :frowning:

Ubuntu 18.4
Nextcloud version 19
PHP 7.2

Error after i send a testmail:

Beim Senden der E-Mail ist ein Problem aufgetreten. Bitte überprüfe Deine Einstellungen. (Fehler: Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command

with smtp debug true:

‘STARTTLS’ "
Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500)

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500) !!
Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ "

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500) (code: 500)

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500) !!
Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ "

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500) (code: 500) !!
Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ "

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500)

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500) !!
Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ "

Log data: ++ Starting Swift_SmtpTransport << 220 mail.pro2future.at Microsoft ESMTP MAIL Service ready at Wed, 3 Feb 2021 14:13:29 +0100 >>
EHLO nextcloud.pro2future.at << 250-mail.pro2future.at Hello [193.171.201.234] 250-SIZE 62914560 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250 CHUNKING >>
STARTTLS << 500 5.3.3 Unrecognized command ‘STARTTLS’ !! Expected response code 220 but got code “500”, with message "500 5.3.3 Unrecognized command ‘STARTTLS’ " (code: 500) (code: 500) (code: 500))

i think i have a problem similar to this thread:

but i do not know where i should place the lines:

$transport = Swift_SmtpTransport::newInstance(‘[fqdn.mailserver.com](http://fqdn.mailserver.com)’, 587, ‘tls’)
->setUsername(‘user’)
->setPassword(‘Password’)
->setStreamOptions(array(‘ssl’ => array(‘allow_self_signed’ => true, ‘verify_peer’ => false)));

tried to add:

"mail_smtpstreamoptions" => array(
'ssl' => array(
    'allow_self_signed' => true,
    'verify_peer' => false,
    'verify_peer_name' => false
  )
),

in my config file but nothing changed…

niemand hier der mir helfen möchte? :((