----- Original Message -----
From: Subba Rao <[EMAIL PROTECTED]>
To: Qmail Users <[EMAIL PROTECTED]>
Sent: Thu 13 Jan 2000 18.47
Subject: deleting from mail queue


> I have deleted a mail that was in the queue, since the domain name could
> not be resolved. nslookup too could not resolve the domain name. So I
decided
> to delete the mail from the queue. I deleted the file number from
/var/qmail/queue
> subdirectories. Now, I find the following message in the syslog.

If the domain name is permanently unresolvable, qmail will eventually time
out the mail and return it to the sender.  I'm going to guess that there's
some good reason you found it necessary to hurry up the process, but in
general I'd let qmail do the work by itself.

> Jan 13 21:31:37 myhost qmail: 947817097.783376 warning: trouble opening
remote/7/821705; will try again later
> Jan 13 21:33:41 myhost qmail: 947817221.783378 warning: trouble opening
remote/7/821705; will try again later
>
> What else needs to be done to stop this message? For future deletions,
what is the
> recommended way to delete a mail from the queue?

There are a number of ways to do it.  One of the easiest is to get the
qmHandle tool from www.qmail.org.  One thing to note is that qmail-send
should not be running if you're going to monkey with the queue.

In the particular situation you noted above, if you have a lot of mail for
this domain, you can get rid of it quick:

echo baddomain.com:alias-bitbucket >> /var/qmail/control/virtualdomains
echo /dev/null > ~alias/.qmail-bitbucket
kill -HUP `pidof qmail-send`
kill -ALRM `pidof qmail-send`
(wait for queue to clear out)
(remove baddomain.com entry from virtualdomains)
kill -HUP `pidof qmail-send`

shag
=====
Judd Bourgeois        |   CNM Network      +1 (805) 520-7170
Software Architect    |   1900 Los Angeles Avenue, 2nd Floor
[EMAIL PROTECTED]   |   Simi Valley, CA 93065

Quidquid latine dictum sit, altum viditur.


Reply via email to