The problem with sending emails to an external mailbox

  • Nextcloud Server version
    • 25.0.13
  • Operating system and version
    • Ubuntu 20.04.6 LTS
  • PHP version
    • 7.4.3

An error occurs when trying to send an email to any external email address:
We use an Exchange mail server
The mail server settings in NextCloud are listed below

"Способ отправки - SMTP

Шифрование - STARTTLS

Адрес отправителя - nextcloud@my.domain;

Метод проверки подлинности - Простой;

Требуется аутентификация - Нет;

Адрес сервера - my.mail.server; Порт - 25"

Log

Swift_TransportException: Expected response code 354 but got code “503”, with message "503 5.5.2 Need rcpt command "
/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 344:

Swift_Transport_AbstractSmtpTransport->assertResponseCode()

/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - line 305:

Swift_Transport_AbstractSmtpTransport->executeCommand()

/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 392:

Swift_Transport_EsmtpTransport->executeCommand()

/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 499:

Swift_Transport_AbstractSmtpTransport->doDataCommand()

/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 518:

Swift_Transport_AbstractSmtpTransport->doMailTransaction()

/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 206:

Swift_Transport_AbstractSmtpTransport->sendTo()

/var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php - line 71:

Swift_Transport_AbstractSmtpTransport->send()

/var/www/nextcloud/lib/private/Mail/Mailer.php - line 191:

Swift_Mailer->send()

/var/www/nextcloud/apps/settings/lib/Mailer/NewUserMailHelper.php - line 184:

OC\Mail\Mailer->send()

/var/www/nextcloud/apps/provisioning_api/lib/Controller/UsersController.php - line 1408:

OCA\Settings\Mailer\NewUserMailHelper->sendMail()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Provisioning_API\Controller\UsersController->resendWelcomeMessage()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/nextcloud/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main()

/var/www/nextcloud/ocs/v1.php - line 64:

OC\Route\Router->match()

/var/www/nextcloud/ocs/v2.php - line 23:

require_once(“/var/www/nextcloud/ocs/v1.php”)

PLEASE HELP!!! :pleading_face:

@kemsd welcome to the Nextcloud community :waving_hand:

you’re way behind, and Nextcloud, OS and PHP are EOL = End Of Life = unsupported

please be patient, there are some folks prepared to help out with ancient systems… but most will recommend you upgrade first to tackle your issue, if it isn’t resolved by upgrading…

please try to get that translated… auto translation doesn’t recognise the language.

this sounds very much like an enterprise issue? please read the guidelines carefully especially:

Ask your questions privately, not for work

This forum is for private users to help each other, not for employees of larger enterprises to find free support for their employer.

Information requests for large scale installations (clustering etcetera) are not for this forum. Please find or ask your answers on the Nextcloud Enterprise Portal.