![](https://seccdn.libravatar.org/avatar/ed16eea6b4dcb3e00fc020a941f652e6.jpg?s=120&d=mm&r=g)
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 -- Togan Muftuoglu toganm@turk.net -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
![](https://seccdn.libravatar.org/avatar/f00ef8a232b25d5fc95fa8c392b66d70.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/3cbac7dcf1f56f37fafd539ab1534b4b.jpg?s=120&d=mm&r=g)
Hi, On Fri, May 05 2000 at 08:56 +0300, Togan Muftuoglu wrote:
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
Just locate the file the mail is stored in (somewhere in /var/mqueue or /var/spool/mqueue) and delete it. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
gaf@gaf.ne.mediaone.net
-
stefan.troeger@wirtschaft.tu-chemnitz.de
-
toganm@turk.net