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

Endlessly sending too big email to recipients #6538

Closed
michal0202 opened this issue May 23, 2022 · 3 comments
Closed

Endlessly sending too big email to recipients #6538

michal0202 opened this issue May 23, 2022 · 3 comments

Comments

@michal0202
Copy link

Steps to reproduce

1.Create a new email or reply to an existing one.
2. Add recipient TO and UDW.
3. Add a large attachment (for example 300MB) from nextcloud files.
4. Send a message.

Expected behavior

The message will be sent once.

Actual behavior

The message is sent continuously every 10 minutes. As a result, the Mail Delivery System sends back information about the inability to deliver the mail. The inbox says that 1 message has been sent, but when you click on it, there is nothing. This unfortunate message is not in the Sent directory.

obraz
obraz

Mail app version

1.12.0

Mailserver or service

Own iRedMail serwer(allows large attachments)

Operating system

Ubuntu 20.04

PHP engine version

PHP 8.0

Web server

Nginx

Database

MySQL

Additional info

I checked the mail server. Works correctly.

The message about the failure to deliver the e-mail
obraz

The nextcloud journal:

{"reqId":"I6apI6eJqlljP47bFlwe","level":2,"time":"2022-05-23T19:36:03+00:00","remoteAddr":"","user":"--","app":"mail","method":"","url":"--","message":"Could not send outbox message 15: Could not send message: Error when communicating with the server.","userAgent":"--","version":"23.0.5.1","exception":{"Exception":"OCA\Mail\Exception\ServiceException","Message":"Could not send message: Error when communicating with the server.","Code":2,"Trace":[{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":129,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":196,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/BackgroundJob/OutboxWorkerJob.php","line":55,"function":"flush","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\Mail\BackgroundJob\OutboxWorkerJob","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/usr/share/nginx/nextcloud/cron.php","line":151,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","Line":210,"Previous":{"Exception":"Horde_Mime_Exception","Message":"Error when communicating with the server.","Code":2,"Trace":[{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":208,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":129,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":196,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/BackgroundJob/OutboxWorkerJob.php","line":55,"function":"flush","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\Mail\BackgroundJob\OutboxWorkerJob","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/usr/share/nginx/nextcloud/cron.php","line":151,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Part.php","Line":1642,"Previous":{"Exception":"Horde_Mail_Exception","Message":"Error when communicating with the server.","Code":2,"Trace":[{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":208,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":129,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":196,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/BackgroundJob/OutboxWorkerJob.php","line":55,"function":"flush","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\Mail\BackgroundJob\OutboxWorkerJob","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/usr/share/nginx/nextcloud/cron.php","line":151,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mail/Horde/Mail/Transport/Smtphorde.php","Line":145,"Previous":{"Exception":"Horde_Smtp_Exception","Message":"Error when communicating with the server.","Code":2,"Trace":[{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Smtp/Horde/Smtp.php","line":1028,"function":"read","class":"Horde_Smtp_Connection","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Smtp/Horde/Smtp.php","line":1094,"function":"_getResponse","class":"Horde_Smtp","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Smtp/Horde/Smtp.php","line":739,"function":"_processData","class":"Horde_Smtp","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mail/Horde/Mail/Transport/Smtphorde.php","line":143,"function":"send","class":"Horde_Smtp","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Mime/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":208,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":271,"function":"sendMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":129,"function":"sendLocalMessage","class":"OCA\Mail\Service\MailTransmission","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/Service/OutboxService.php","line":196,"function":"sendMessage","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/apps/mail/lib/BackgroundJob/OutboxWorkerJob.php","line":55,"function":"flush","class":"OCA\Mail\Service\OutboxService","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/Job.php","line":79,"function":"run","class":"OCA\Mail\BackgroundJob\OutboxWorkerJob","type":"->"},{"file":"/usr/share/nginx/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":95,"function":"execute","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/usr/share/nginx/nextcloud/cron.php","line":151,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/usr/share/nginx/nextcloud/apps/mail/vendor/pear-pear.horde.org/Horde_Smtp/Horde/Smtp/Connection.php","Line":130}}},"CustomMessage":"Could not send outbox message 15: Could not send message: Error when communicating with the server."},"id":"628be40621df0"}

@ChristophWurst
Copy link
Member

So it succeeds to some extend but also fails. Hence the whole process is run and run again.

@michal0202
Copy link
Author

It looks. The command to delete the message to be sent would be helpful. I was able to fix the problem by disabling the email application and manually deleting the problematic message from the database.

@ChristophWurst
Copy link
Member

I put some debugging insights into #6540. Let's continue there ✌️

Repository owner moved this from 📄 To do (5-20 entries) to ☑️ Done in 💌 📅 👥 Groupware team May 24, 2022
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