Page 1 of 1

Delete all messages in Internet Mail Queue?

Posted: Thu Feb 22, 2007 5:34 pm
by athought
Can someone give me a simple command to remove the 400,000 messages in my Internet Mail Queue?

Posted: Thu Feb 22, 2007 9:28 pm
by hkphooey
These sendmail commands worked for me. However I don't know if there are any repercussions to just deleting queued messages.

View queued messages
sendmail -bp

Delete the messages you want to remove from
/var/spool/mqueue
Each message has a datafile (beginning with df) and a queue file (beginning with qf)

Posted: Fri Feb 23, 2007 7:40 am
by gren
The omqdump administrator utility can be used to delete messages from queues.

The password is A??E where ?? is today's month day + 10.
I advise you to use the look at ta summary of what is on which queues using the "s"
command.

The "D" command will prompt you for a queue name - for the outgoing internet queue, this is UNIX.
You are then prompted for the number of repeats.
Then it will do the work.

Regards,
Gren.