server icon indicating copy to clipboard operation
server copied to clipboard

Swift_TransportException: Expected response code 354 but got an empty response

Open lolotiti06 opened this issue 6 years ago • 3 comments

Hello,

When I try to send an email to somebody external to share a file I get an error "error while creating share" (translated). In the logs I have :

Swift_TransportException: Expected response code 354 but got an empty response
1.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 341:
Swift_Transport_AbstractSmtpTransport->assertResponseCode("", [ 354])
2.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - line 305:
Swift_Transport_AbstractSmtpTransport->executeCommand("DATA\r\n", [ 354], [ "[email protected]"], false, null)
3.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 390:
Swift_Transport_EsmtpTransport->executeCommand("DATA\r\n", [ 354], [ "[email protected]"])
4.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 497:
Swift_Transport_AbstractSmtpTransport->doDataCommand([ "[email protected]"])
5.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 516:
Swift_Transport_AbstractSmtpTransport->doMailTransaction(Swift_Message {}, "[email protected]", [ "[email protected]"], [ "[email protected]"])
6.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 206:
Swift_Transport_AbstractSmtpTransport->sendTo(Swift_Message {}, "[email protected]", { myaddress@ ... l}, [ "[email protected]"])
7.	/volume1/web/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php - line 71:
Swift_Transport_AbstractSmtpTransport->send(Swift_Message {}, [ "[email protected]"])
8.	/volume1/web/nextcloud/lib/private/Mail/Mailer.php - line 204:
Swift_Mailer->send(Swift_Message {}, [ "[email protected]"])
9.	/volume1/web/nextcloud/apps/sharebymail/lib/ShareByMailProvider.php - line 422:
OC\Mail\Mailer->send(OC\Mail\Message {})
10.	/volume1/web/nextcloud/apps/sharebymail/lib/ShareByMailProvider.php - line 335:
OCA\ShareByMail\ShareByMailProvider->sendMailNotification("CA du 15 Octobre 2020.docx", "https://clo ... i", "FB2B2F92-3F ... B", "[email protected]", null)
11.	/volume1/web/nextcloud/apps/sharebymail/lib/ShareByMailProvider.php - line 185:
OCA\ShareByMail\ShareByMailProvider->createMailShare(OC\Share20\Share {})
12.	/volume1/web/nextcloud/lib/private/Share20/Manager.php - line 801:
OCA\ShareByMail\ShareByMailProvider->create(OC\Share20\Share {})
13.	/volume1/web/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php - line 608:
OC\Share20\Manager->createShare(OC\Share20\Share {})
14.	/volume1/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:
OCA\Files_Sharing\Controller\ShareAPIController->createShare(OC\Files\Node\File {}, 17, 4, "[email protected]", "false", "", null, "", "")
15.	/volume1/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:
OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Sh ... {}, "createShare")
16.	/volume1/web/nextcloud/lib/private/AppFramework/App.php - line 152:
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sh ... {}, "createShare")
17.	/volume1/web/nextcloud/lib/private/Route/Router.php - line 308:
OC\AppFramework\App::main("OCA\\Files_ ... r", "createShare", OC\AppFramew ... {}, { action: nu ... "})
18.	/volume1/web/nextcloud/ocs/v1.php - line 88:
OC\Route\Router->match("/ocsapp/app ... s")
19.	/volume1/web/nextcloud/ocs/v2.php - line 24:
require_once("/volume1/we ... p")

I am running Nextcloud 20.0.0.9 on Apache 2.4, php 7.3 In addition, I guess I have configured the mail server correctly as I receive the test email.

Thanks

Laurent.

lolotiti06 avatar Oct 16 '20 13:10 lolotiti06

Hello, In addition, files between users can be shared without any issue. Emails are correctly sent. Users are LDAP based. Thanks

lolotiti06 avatar Oct 18 '20 08:10 lolotiti06

Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)

szaimen avatar Jun 17 '21 14:06 szaimen

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

ghost avatar Jul 17 '21 14:07 ghost