Mailinglist Archive: opensuse (2629 mails)

< Previous Next >
Re: [SLE] mail removing from the que
  • From: gaf@xxxxxxxxxxxxxxxxxxx (Jerry Feldman)
  • Date: Fri, 05 May 2000 07:40:59 -0400
  • Message-id: <200005051141.HAA01176@xxxxxxxxxxxxxxxxxxx>



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 <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org

--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/


< Previous Next >
References