I wrote a scheduled job that checks the Tasks folder hourly for undelivered emails. I did this so that we can get an email notification when there are undelivered mail left there. However, it seems to have uncovered another problem that I can’t pinpoint.
Here’s an example of the output
00000386.tsk 18-Jun-2017 09:45:42
00000311.tsk 18-Jun-2017 09:36:39
00000310.tsk 18-Jun-2017 09:28:20
Note the times on these. Isn’t the Lucee mail queue supposed to send messages on-demand or within 5 minutes? It seems like messages from the last hour stay in the queue for a LONG time instead of delivering.
To add to the mystery, when I look as the Tasks page in the Lucee admin it says that there have been 0 attempts. So, the messages are not failing. It’s not even attempting to send them.
The messages seem to deliver at some point within the hour, though. When the scheduled job runs the following hour, all those messages are gone and delivered.
Can you think of any reason why messages are being held for so long before attempting to send?
(Lucee 188.8.131.52 on Windows 2008R2 with IIS)