Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email is sent but stuck in Outbox too. #9621

Open
holybank opened this issue May 2, 2024 · 2 comments
Open

Email is sent but stuck in Outbox too. #9621

holybank opened this issue May 2, 2024 · 2 comments

Comments

@holybank
Copy link

holybank commented May 2, 2024

Steps to reproduce

  1. Add a new message
  2. Send email
  3. Mail is sent
  4. Mail also stuck in Outbox

Expected behavior

Mail is sent and not stuck in Outbox

Actual behavior

Mail is sent and stuck in Outbox

Mail app version

3.6.0

Mailserver or service

Modoboa

Operating system

Ubuntu 22.04

PHP engine version

PHP 8.1

Web server

Nginx

Database

PostgreSQL

Additional info

browser console errors:

AvatarService.js:36
GET https://{host}/index.php/apps/mail/api/avatars/url/MAILER-DAEMON%40{domain} 404 (Not Found)
OutboxService.js:72
POST https://{host}/index.php/apps/mail/api/outbox/37 500 (Internal Server Error)
actions.js:134 [ERROR] mail: Failed to send message 37 from outbox
{app: 'mail', uid: '{user}', level: 2, error: a}
actions.js:182 [ERROR] mail: Could not delay-send message 37
{app: 'mail', uid: '{user}', level: 2, message: {…}}
vuex.esm.js:542 Uncaught (in promise)
a {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}

image

NextCloud version 28.0.4.1

If you need any more information or logs, please tell me where to get such information too. I'm new to this.

@holybank
Copy link
Author

holybank commented May 2, 2024

This is the information from Admin Logging page.

[mail] Error: Could not send message: Error when communicating with the server.
POST /index.php/apps/mail/api/outbox/38
from {ip} by {user} at May 2, 2024, 10:49:07 AM

{"reqId":"3lqDbXk4dO7BvfSHFpAa","level":3,"time":"2024-05-02T03:49:07+00:00","remoteAddr":"{ip}","user":"{user}","app":"mail","method":"POST","url":"/index.php/apps/mail/api/outbox/38","message":"Could not send message: Error when communicating with the server.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"28.0.4.1","exception":{"Exception":"OCA\Mail\Exception\ServiceException","Message":"Could not send message: Error when communicating with the server.","Code":2,"Trace":[{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":343,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":142,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Controller/OutboxController.php","line":247,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"send","class":"OCA\Mail\Controller\OutboxController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","Line":273,"Previous":{"Exception":"Horde_Mime_Exception","Message":"Error when communicating with the server.","Code":2,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":343,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":142,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Controller/OutboxController.php","line":247,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"send","class":"OCA\Mail\Controller\OutboxController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","Line":1642,"Previous":{"Exception":"Horde_Mail_Exception","Message":"Error when communicating with the server.","Code":2,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":343,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":142,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Controller/OutboxController.php","line":247,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"send","class":"OCA\Mail\Controller\OutboxController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mail/lib/Horde/Mail/Transport/Smtphorde.php","Line":145,"Previous":{"Exception":"Horde_Smtp_Exception","Message":"Error when communicating with the server.","Code":2,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":1046,"function":"read","class":"Horde_Smtp_Connection","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":1112,"function":"_getResponse","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":757,"function":"_processData","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mail/lib/Horde/Mail/Transport/Smtphorde.php","line":143,"function":"send","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":343,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":142,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Controller/OutboxController.php","line":247,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"send","class":"OCA\Mail\Controller\OutboxController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp/Connection.php","Line":130}}},"message":"Could not send message: Error when communicating with the server.","exception":[],"CustomMessage":"Could not send message: Error when communicating with the server."},"id":"66330d3d4b9d9"}

@ChristophWurst
Copy link
Member

Duplicate of #8435.

A fix is coming with v3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants