[I have cross-posted my question here from the 'Using Moodle' forum because this looks a more appropriate forum].
Our Moodle instance is not sending notification emails to subscribed users when messages are posted on our forums. We have been battling this for months without resolution.
Messages sent to other users using the normal Moodle message facility do get sent. So we can assume that Moodle is correctly talking to our Exim mail server. Such messages correctly appear in /var/log/exim/main.log and do get received by the recipient.
I have enabled "Display Debug Messages" and "Debug Email Sending". I see debug messages when sending messages but not when doing forum posts.
When I post a reply to a forum topic and click "Mail now" no message appears in /var/log/exim/main.log, no email is sent and no debug messages appear.
The people subscribed to the test forum are all administrators.
I do not think this is a Cron issue because I tick "Mail now" in the forum post dialog. However, invoking the following does not help:
$ /usr/bin/php /var/www/html/admin/cron.php >/dev/null
So I am utterly stuck. Please will someone advise me what to do next?