Task module still does not work

Continua la discussione da Nextcloud : push notifications and emails not received:

Hi, to date I have tried them all … I can’t understand why notifications on file folders or other do not arrive via email. I tried looking at the bug section of the module, but it doesn’t seem like a bug similar to my situation is reported. Thank you

Hi @france,
sorry for the late response.
Could you please have a look at the logs. At cockpit choose

System>Log>All>dovecot

Are there errors?

@dev_team
Where can I find these logs at the terminal, I can’t get them.

I think they’re part of maillog:

cat /var/log/maillog | grep dovecot

2 Likes

I have checked the maillog logs, dovecot but I don’t see any errors. If I run a test as admin for the nextcloud parameters regarding the smtp configuration, everything works! It seems that the cron or webcron script is not being processed or anything.I also changed the various smtp modes, but nothing, no trace … of sending emails or errors.

May 3 09:11:16 neth7 dovecot: lmtp(21586): Disconnect from local: Successful quit
May 3 09:14:14 neth7 dovecot: lmtp(22713): Connect from local
May 3 09:14:14 neth7 dovecot: lmtp(francesco@internal2.lan): 2NlmI8aij2C5WAAAJiAy2A: sieve: msgid=unspecified: stored mail into mailbox ‘zabbix’
May 3 09:14:14 neth7 postfix/lmtp[22712]: 6A98F180B27A1: to=francesco@internal2.lan, orig_to=ammin@internal2.lan, relay=neth7.internal2.lan[/var/run/dovecot/lmtp], delay=0.23, delays=0.15/0.01/0.01/0.07, dsn=2.0.0, status=sent (250 2.0.0 francesco@internal2.lan 2NlmI8aij2C5WAAAJiAy2A Saved)
May 3 09:14:14 neth7 dovecot: lmtp(22713): Disconnect from local: Successful quit
May 3 09:19:14 neth7 dovecot: lmtp(23912): Connect from local
May 3 09:19:14 neth7 dovecot: lmtp(francesco@internal2.lan): yETSG/Kjj2BoXQAAJiAy2A: sieve: msgid=unspecified: stored mail into mailbox ‘zabbix’
May 3 09:19:14 neth7 postfix/lmtp[23911]: 4AE4E180B27A1: to=francesco@internal2.lan, orig_to=ammin@internal2.lan, relay=neth7.internal2.lan[/var/run/dovecot/lmtp], delay=0.21, delays=0.15/0.01/0.01/0.05, dsn=2.0.0, status=sent (250 2.0.0 francesco@internal2.lan yETSG/Kjj2BoXQAAJiAy2A Saved)
May 3 09:19:14 neth7 dovecot: lmtp(23912): Disconnect from local: Successful quit

No no errors !


Here is an admin test for the smtp server set in nextcloud:

May 3 10:18:25 neth7 rspamd[2455]: <09a86d>; proxy; rspamd_protocol_http_reply: regexp statistics: 48 pcre regexps scanned, 1 regexps matched, 184 regexps total, 11 regexps cached, 43.11KiB scanned using pcre, 43.11KiB scanned total
May 3 10:18:25 neth7 postfix/qmgr[1544]: 40294180B27A1: from=no-reply@internal2.lan, size=16150, nrcpt=1 (queue active)
May 3 10:18:25 neth7 postfix/smtpd[2682]: disconnect from localhost[127.0.0.1]
May 3 10:18:25 neth7 rspamd[2455]: ; proxy; proxy_milter_finish_handler: finished milter connection
May 3 10:18:25 neth7 dovecot: lmtp(2926): Connect from local
May 3 10:18:25 neth7 dovecot: lmtp(francesco@internal2.lan): sCRbG9Gxj2BuCwAAJiAy2A: sieve: msgid=8e174f718a06ca25f0f071b9f57d036f@quantico.ddns.net: stored mail into mailbox ‘INBOX’
May 3 10:18:25 neth7 dovecot: lmtp(2926): Disconnect from local: Successful quit
May 3 10:18:25 neth7 postfix/lmtp[2687]: 40294180B27A1: to=francesco@internal2.lan, orig_to=admin@internal2.lan, relay=neth7.internal2.lan[/var/run/dovecot/lmtp], delay=0.38, delays=0.19/0/0.01/0.18, dsn=2.0.0, status=sent (250 2.0.0 francesco@internal2.lan sCRbG9Gxj2BuCwAAJiAy2A Saved)
May 3 10:18:25 neth7 postfix/qmgr[1544]: 40294180B27A1: removed

Did you also check the nextcloud log?

At

I’ve found a similar problem to yours. Perhaps it helps.
The config file of nextcloud you can find at

/usr/share/nextcloud/config

Then I don’t think it’s a sending problem as smt settings tests work. Another strange thing is that only from admin I try to access the otp or download a shared file the notifications arrive. This doesn’t happen with users. I am highly suspicious that the problem is in the activity module.

At the link I’ve posted, they also had a working smtp test but nextcloud didn’t send activity mails.

Where did you configure the activity notifications, with an admin you can configure them at administration menue for everyone or at personal menue for himself.
As a user you only can configure your own notifications.

Ok, I tested a little bit more. Same behaviour here. I’ll try to find out some more information.

In fact, notifications are customized by the user’s settings when and which ones to receive. But they don’t go! I forgot I had tried to use OCC to send all the emails but nothing.

# crontab -u www-data -e
 0  *  *  *  *    php -f /var/www/nextcloud/occ activity:send-mails hourly
30  7  *  *  *    php -f /var/www/nextcloud/occ activity:send-mails daily
30  7  *  *  MON  php -f /var/www/nextcloud/occ activity:send-mails weekly

Perhaps @support_team has another idea, it looks like missing rights.

1 Like

For now it works, I didn’t change anything.
But one more idea, please have a look as admin if the users at the user menu in nextcloud have a correct mail address.

Of course it has already been done. Anyway at the moment thank you for your contribution.

However, I can confirm that the email notifications arrive only if after a public sharing the file is downloaded and this is notified as usual. The rest of the folder notifications don’t work

So sending mail works fine, I think it could be a problem with the event trigger.
Could you please report this error at the nextcloud community and post the link here. Perhaps somebody of them has an idea.

1 Like