Mailing not being sent - have to delete QUEUE
Posted: Thu Sep 13, 2012 1:03 pm
A couple of times now mailings have been started but appear to stall, with no emails apparently being sent. For example, a recent mailing was set up and sent and the distribution status showed that 9,022 emails were generated, but after several hours zero had been sent. This is not usual behaviour but had happened once before. I checked /home/openemm/var/spool/QUEUE and saw over 11,000 items in the directory. I checked /home/openemm/var/spool/META and I could see .xml.gz, .stamp and .final files that appeared to be related to this mailing. I checked /var/log/maillog and could see nothing obviously wrong. I rebooted the server, I restarted OpenEMM and I checked /home/openemm/bin/scripts/pickdist.py process was running.
In the end I resorted to stopping openemm and deleting the contents of /home/openemm/var/spool/QUEUE. When I restarted openemm the QUEUE immediately refilled with 11,000+ files but the distribution status now showed that 9,022 emails were generated and 6,001 sent.
What I would like to know is:
1. What is the actual consequence of deleting the contents of the QUEUE?
2. Is it likely that the 6000 emails were actually sent or is this just because I removed the messages from the QUEUE?
3. Why does OpenEMM get into this state where deleting the QUEUE appears to be the only corrective action?
My assumption/hope is that by deleting the contents of the QUEUE, something that was causing OpenEMM to fail is removed and clears a blockage. I also hope that doing this simply causes openemm to requeue and attempt to resend the messages in the mailing.
My fear is that when I delete the QUEUE, OpenEMM interprets this as the messages having been successfully sent and so updates the statistics in the distribution status accordingly; thus presenting a false impression of the mailing status.
Any help or advice would be appreciated.
In the end I resorted to stopping openemm and deleting the contents of /home/openemm/var/spool/QUEUE. When I restarted openemm the QUEUE immediately refilled with 11,000+ files but the distribution status now showed that 9,022 emails were generated and 6,001 sent.
What I would like to know is:
1. What is the actual consequence of deleting the contents of the QUEUE?
2. Is it likely that the 6000 emails were actually sent or is this just because I removed the messages from the QUEUE?
3. Why does OpenEMM get into this state where deleting the QUEUE appears to be the only corrective action?
My assumption/hope is that by deleting the contents of the QUEUE, something that was causing OpenEMM to fail is removed and clears a blockage. I also hope that doing this simply causes openemm to requeue and attempt to resend the messages in the mailing.
My fear is that when I delete the QUEUE, OpenEMM interprets this as the messages having been successfully sent and so updates the statistics in the distribution status accordingly; thus presenting a false impression of the mailing status.
Any help or advice would be appreciated.