Activity app floods log with repeating warnings

Is there a way to suppress the warnings from the activity app? Activity tries to send e-mails (which i don’t want and never configured).
In the activity settings (/index.php/settings/admin/activity) only push notifications are on, and some greyed-out e-mail notification checkboxes, which i unfortunately cannot turn off in this settings page.

Log get filled every few minutes with the same warnings, this is not workable for detecting any other issues. How do i turn these e-mail could not be sent warnings off?

Nextcloud version: 25.0.6
Operating system and version: Ubuntu 22.04
Apache or nginx version: Apache 2.4.25
PHP version: 8.0

The output of your Nextcloud log in Admin > Logging:

Warning	activity	Failed sending activity email to user 'username'.	
2 minuten geleden
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)

    <<closure>>

    Swift_Transport_StreamBuffer->{closure}("*** sensiti ... *")

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php - line 264:

    stream_socket_client()

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php - line 58:

    Swift_Transport_StreamBuffer->establishSocketConnection()

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 143:

    Swift_Transport_StreamBuffer->initialize()

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php - line 65:

    Swift_Transport_AbstractSmtpTransport->start()

    /snap/nextcloud/34542/htdocs/lib/private/Mail/Mailer.php - line 191:

    Swift_Mailer->send()

    /snap/nextcloud/34542/htdocs/apps/activity/lib/MailQueueHandler.php - line 415:

    OC\Mail\Mailer->send()

    /snap/nextcloud/34542/htdocs/apps/activity/lib/MailQueueHandler.php - line 165:

    OCA\Activity\MailQueueHandler->sendEmailToUser()

    /snap/nextcloud/34542/htdocs/apps/activity/lib/BackgroundJob/EmailNotification.php - line 61:

    OCA\Activity\MailQueueHandler->sendEmails()

    /snap/nextcloud/34542/htdocs/lib/private/BackgroundJob/Job.php - line 54:

    OCA\Activity\BackgroundJob\EmailNotification->run()

    /snap/nextcloud/34542/htdocs/lib/private/BackgroundJob/TimedJob.php - line 60:

    OC\BackgroundJob\Job->execute()

    /snap/nextcloud/34542/htdocs/cron.php - line 152:

    OC\BackgroundJob\TimedJob->execute()

	
2 minuten geleden
Warning	activity	Failed sending activity email to user 'username'.	
7 minuten geleden
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)	
7 minuten geleden
Warning	activity	Failed sending activity email to user 'username'.	
12 minuten geleden
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)

    <<closure>>

    Swift_Transport_StreamBuffer->{closure}("*** sensiti ... *")

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php - line 264:

    stream_socket_client()

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php - line 58:

    Swift_Transport_StreamBuffer->establishSocketConnection()

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php - line 143:

    Swift_Transport_StreamBuffer->initialize()

    /snap/nextcloud/34542/htdocs/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php - line 65:

    Swift_Transport_AbstractSmtpTransport->start()

    /snap/nextcloud/34542/htdocs/lib/private/Mail/Mailer.php - line 191:

    Swift_Mailer->send()

    /snap/nextcloud/34542/htdocs/apps/activity/lib/MailQueueHandler.php - line 415:

    OC\Mail\Mailer->send()

    /snap/nextcloud/34542/htdocs/apps/activity/lib/MailQueueHandler.php - line 165:

    OCA\Activity\MailQueueHandler->sendEmailToUser()

    /snap/nextcloud/34542/htdocs/apps/activity/lib/BackgroundJob/EmailNotification.php - line 61:

    OCA\Activity\MailQueueHandler->sendEmails()

    /snap/nextcloud/34542/htdocs/lib/private/BackgroundJob/Job.php - line 54:

    OCA\Activity\BackgroundJob\EmailNotification->run()

    /snap/nextcloud/34542/htdocs/lib/private/BackgroundJob/TimedJob.php - line 60:

    OC\BackgroundJob\Job->execute()

    /snap/nextcloud/34542/htdocs/cron.php - line 152:

    OC\BackgroundJob\TimedJob->execute()

	
12 minuten geleden
Warning	activity	Failed sending activity email to user 'username'.	
17 minuten geleden
Error	activity	Swift_TransportException: Connection could not be established with host 127.0.0.1 :stream_socket_client(): Unable to connect to 127.0.0.1:25 (Connection refused)	
17 minuten geleden

Edit: i did try earlier to set email frequency to weekly with this command:

occ activity:send-mails weekly
But after 2 days, still the logs are flooding with the same warnings…

Go vote (i.e. give it a :+1: ) on this GitHub issue:

That’s part of how developers understand which issues to prioritize.

1 Like

You might find a solution configuring smtp-sink:

https://man.archlinux.org/man/extra/postfix/smtp-sink.1.en

Thank you for the replies! And maybe smpt-sink is a solution for now.
And i voted for the issue, hopefully more votes will follow :slight_smile:

1 Like