Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

deleting messages from mqueue

40 views
Skip to first unread message

Edward

unread,
Apr 25, 2002, 6:19:53 PM4/25/02
to
Running `mailq > output.txt` on my backup mailserver produced a file 461246
lines long! Most of the emails are for a particular domain
'problemdomain.co.uk'. I'd like to delete all these files

Looking at the output below, if I delete the file QAB21347, will it remove
the email from rando...@hotmail.com to us...@problemdomain.co.uk or is
there more to it?


QAB21347 0 Wed Apr 17 16:51 <rando...@hotmail.com>
(Deferred: Connection refused by
smtpmail.problemdomain.co.uk.)
<us...@problemdomain.co.uk>
DAA23786 140 Fri Apr 5 03:56 <rando...@webshots.com>
(Deferred: Connection refused by
smtpmail.problemdomain.co.uk.)
<us...@problemdomain.co.uk>
NAB00489 98 Fri Feb 22 13:51 <rando...@ehost2102.com>
(Deferred: Connection refused by
smtpmail.problemdomain.co.uk.)
<us...@problemdomain.co.uk>

Thanks,

Edward


Claus Aßmann

unread,
Apr 27, 2002, 12:18:46 AM4/27/02
to
Edward wrote:
> Running `mailq > output.txt` on my backup mailserver produced a file 461246
> lines long! Most of the emails are for a particular domain
> 'problemdomain.co.uk'. I'd like to delete all these files

> Looking at the output below, if I delete the file QAB21347, will it remove
> the email from rando...@hotmail.com to us...@problemdomain.co.uk or is
> there more to it?

> QAB21347 0 Wed Apr 17 16:51 <rando...@hotmail.com>
> (Deferred: Connection refused by
> smtpmail.problemdomain.co.uk.)
> <us...@problemdomain.co.uk>
> DAA23786 140 Fri Apr 5 03:56 <rando...@webshots.com>
> (Deferred: Connection refused by
> smtpmail.problemdomain.co.uk.)
> <us...@problemdomain.co.uk>

You should figure out why those mails are on your server.

Is it spam?
Is it legitimate mail?

In the former case: why is it on your system?
After you figured that out and solved the problem,
you can use contrib/qtool.pl to remove the mail.

In the latter case: you shouldn't delete it;
in the worst case you can bounce it back to
the sender:
sendmail -qRproblemdomain.co.uk -O Timeout.queuereturn=now


--
If you feel the urgent wish to send me a courtesy copy of a Usenet
posting, then make sure it's recognizable as such!
The FAQ: http://www.sendmail.org/faq/ Before you ask.

0 new messages