Announcement Forum not sending notification

Announcement Forum not sending notification

Dennis Fulton གིས-
Number of replies: 8

Moodle 3.11.  We have around 20+ courses on our Moodle server.  I have one course that posts to the Announcement Forum are not sending out email notifications.  The Announcement Forum works fine in other courses.  I have created a new forum with force subscription in this course, and the same thing, it will not send out notifications.  Any ideas?

དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Dennis Fulton

Re: Announcement Forum not sending notification

Dennis Fulton གིས-
I have been working at getting logging information out of Moodle. I ran another Announcement Forum test, and in the Live Log Report I found:

11 July 2021, 3:12 PM System System Notification sent The user with id '2' sent a notification to the user with id '432'. cli
- 11 July 2021, 3:12 PM System System Email failed to send Failed to send an email from the user with id '2' to the user with id '432' due to the following error: "SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: Called RSET without being connected".

Each student in the course was sent an notification message followed by an smtp error message.

When I run a test message under the Server -> Outgoing mail it works fine.

I am not sure where to go next.
In reply to Dennis Fulton

Re: Announcement Forum not sending notification

Visvanath Ratnaweera གིས-
Particularly helpful Moodlers གི་པར Translators གི་པར
This is about the same Moodle site in another discussion https://moodle.org/mod/forum/discuss.php?d=424433#p1709478, right?

Tough one. "Called RSET without being connected" usually means either no reply from the smtp-server:port in the SMTP settings of Moodle or Moodle can not reach the smtp-server:port due to firewalls, etc. But in your case, only certain forums encounter this error? And the error causes the _recipients_ to get an error message, not the sender?

I don't trust Office365 (the whole Microsoft). But you have no choice, I read in the other thread.

A remote possibility: The user with id '2' is the 'admin'. Compare its e-mail address with the other e-mail addresses, odd Real Name, different domains?
In reply to Visvanath Ratnaweera

Re: Announcement Forum not sending notification

Dennis Fulton གིས-
We moved off of Office365, too many problems. We are now using the SMTP server where our organization's website is hosted. This seems to work fine will all our courses, with Moodle notifications and messaging; except the one course that I am experiencing problems with Announcement notifications.
In reply to Dennis Fulton

Re: Announcement Forum not sending notification

Visvanath Ratnaweera གིས-
Particularly helpful Moodlers གི་པར Translators གི་པར
In reply to Visvanath Ratnaweera

Re: Announcement Forum not sending notification

Dennis Fulton གིས-
With closer examination of the logs there: there are 60 students in the course. Moodle successful sent out notification messages to the first six students then the rest errored out with "Failed to send an email from the user with id '2' to the user with id '23'
due to the following error: ""SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: Called RSET without being connected""."
In reply to Dennis Fulton

Re: Announcement Forum not sending notification

Visvanath Ratnaweera གིས-
Particularly helpful Moodlers གི་པར Translators གི་པར
As already said, '"Called RSET without being connected" usually means either no reply from the smtp-server:port in the SMTP settings of Moodle or Moodle can not reach the smtp-server:port due to firewalls, etc.' So security mechanisms at the network level are the initial suspects. But you have other forums with large number of participants, say 50, where all get the announcement mails, but in this particular forum only 6 out of 60 do? No clue, sorry.
In reply to Visvanath Ratnaweera

Re: Announcement Forum not sending notification

Dennis Fulton གིས-

There doesn't seem to be a problem in our other courses, but most of those only have 20 to 30 students.  This is a larger course with 60 enrolled.  Will keep looking.

In reply to Dennis Fulton

Re: Announcement Forum not sending notification

Visvanath Ratnaweera གིས-
Particularly helpful Moodlers གི་པར Translators གི་པར
Still there is a clear difference between 20 to 30 - all receiving notification mails and this forum where repeatedly only 6 notifications being sent. My next step would be to analyze network traffic (tcpdump, the equivalent of Wireshark). That is too involved to explain here.

Wait, your own SMTP server, you said? Then watch its logs in "real-time", typically 'tail -f /var/log/mail.log'.