Forum OpenACS Q&A: How to remove erroneous messages from qmail_mail_queue

Is there a way to remove failed send messages when load_qmail_mail_queue happens?

I have had an emailing system work with acs-mail-lite before, but now it doesn't seem to work. In the error log I get the following pattern of error messages from the server:

[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: bounce_address not found
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: No user id found
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: opening file: /home/tif0/Maildir/new/1105665103.19919_8.server5
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: To: mailto:bounce--D83939E61C82317722DE6FFE9E0CB79AE0BFE37C\-@server5.aeromech.usyd.edu.au
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: bounce_address not found
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: No user id found
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: opening file: /home/tif0/Maildir/new/1105665103.19919_9.server5
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: To: mailto:bounce--D83939E61C82317722DE6FFE9E0CB79AE0BFE37C\-@server5.aeromech.usyd.edu.au
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: bounce_address not found
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: No user id found
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: opening file: /home/tif0/Maildir/new/1105665103.19919_10.server5
[14/Jan/2005:12:12:45][24285.12300][-sched:13-] Notice: acs-mail-lite: To: mailto:bounce--54B384446153AB05FD56060947488E0FB8FD00A9\-@server5.aeromech.usyd.edu.au

[14/Jan/2005:12:12:46][24285.13325][-sched:17-] Warning: load_qmail_mail_queue: error opening file couldn't open "/home/tif\0/Maildir/new/1105665098.19784_49.server5": no such file or directory
[14/Jan/2005:12:12:46][24285.13325][-sched:17-] Warning: load_qmail_mail_queue: error opening file couldn't open "/home/tif\0/Maildir/new/1105665103.19919_0.server5": no such file or directory
[14/Jan/2005:12:12:46][24285.13325][-sched:17-] Warning: load_qmail_mail_queue: error opening file couldn't open "/home/tif\0/Maildir/new/1105665103.19919_1.server5": no such file or directory

[14/Jan/2005:12:13:59][24285.13325][-sched:17-] Notice: load_qmail_mail_queue: no user for from address: mailto:MAILER-DAEMON@serv\er5.aeromech.usyd.edu.au (Mail Delivery System), to: mailto:bounce--27071CD7668D76952A216C94BFBC46DF02131897-@server5.aeromech.usy\d.edu.au. bouncing message.
[14/Jan/2005:12:13:59][24285.13325][-sched:17-] Notice: load_qmail_mail_queue: no user for from address: mailto:MAILER-DAEMON@serv\er5.aeromech.usyd.edu.au (Mail Delivery System), to: mailto:bounce--27071CD7668D76952A216C94BFBC46DF02131897-@server5.aeromech.usy\d.edu.au. bouncing message.
[14/Jan/2005:12:13:59][24285.13325][-sched:17-] Notice: load_qmail_mail_queue: no user for from address: mailto:MAILER-DAEMON@serv\er5.aeromech.usyd.edu.au (Mail Delivery System), to: mailto:bounce--27071CD7668D76952A216C94BFBC46DF02131897-@server5.aeromech.usy\d.edu.au. bouncing message.

I think this happened when I tried out a mass-message function using acs-mail-lite; if there's a way I can directly remove messages from the queue and have it working again that'd be wonderful.

Cheers, Jon

First I'd recommend to setup your system correctly so your mailer daemon delivers bounce-* messages to a Maildir folder. Secondly you should setup your ACS Mail Lite parameters
Collapse
Posted by Jon Suen on
Greetings,

I have set up a parameter for bounced messages to go to, as before (in both the site-map parameters for the acs-mail-lite service and in the package specific parameter, though the latter doesn't seem to affect the emails).

I've since changed the site-map parameter to send emails immediately, rather than be stored in the DB and that part seems to work ok.

The server log still shows the errors mentioned above and I don't know if removing all the files from the maildir I assigned for new messages will do the trick.

Cheers,

Jon

Sorry to reply to my own post, but I do hope to remedy this problem ...

I've removed (several times) the 'bounced' emails in my /home/{user}/Maildir/new directory, but after some time the mailbox becomes flooded again with bounced messages.

A couple of errors arise from this:
- the server log becomes way too big too quickly (gains 30mb+ in a day or so);
- the mail queue seems to keep reoccuring, and I don't know where the mail queue is getting stored (using acs-mail-lite, I've looked in acs_mail_lite_queue, acs_mail_queue_incoming/outgoing, acs_mail_queue_messages but these return 0 counts when I select on them);
- a restart of the aolserver does not seem to do anything.

Any help would be greatly appreciated. I'm running dotLRN 2.0.3.

Cheers,

Jon