Yes. I usually do it manually. Email messages in the queue normally come in 2 parts the df and the qf (although there is also an xf). The mailq command (eg. really it is sendmail) gives you the email id. Here are the steps I use on the Boston Linux Server: 1. Su root (or use sudo) 2. Stop email (/sbin/init.d/sendmail stop) I may manually kill (with -TERM not -9) and other sendmail processes that may be running. 3. rm /var/spool/mqueue ??OAB08082 Where OAB08082 is the email id you want to delete. 4. Make sure sendmail is not running and restart sendmail again:/sbin/init.d/sendmail start The reason I stop sendmail is because it does examine the queues and does rewrite the qf files. I don't usually use a script because I don't do it often and I prefer to be safe. I do have a program that has the capability to change addresses in the qf file. Togan Muftuoglu wrote:
Hi everyone,
Is there a way to remove a mail from the que. When a user writes a wrong address the mail is deferred and it is kept in the que. Is there a command to kill that specific mail before you start receiving the mail is delayed continuously
--
Jerry Feldman