On Wed, Mar 01, 2000 at 09:29:03AM -0500, Chris Johnson wrote:
> On Wed, Mar 01, 2000 at 03:12:42PM +0100, torben fjerdingstad wrote:
> > Will the following line in smtproutes silently throw away all
> > outgoing mail to portal.mdr.net?
> >
> > portal.mdr.net:
> >
> > If not, how do I do it?
> >
> > The problem is that I have thousands of error messages queued
> > for that host/domain. And it does does not exist. I want to
> > delete those messages from the queue, without further
> > retransmission attempts.
>
> Try this:
>
> # echo '#' > ~alias/.qmail-baddomain-default
> # echo portal.mdr.net:alias-baddomain >> /var/qmail/control/virtualdomains
> # echo portal.mdr.net:127.0.0.1 >> /var/qmail/control/smtproutes
>
> Then run /var/qmail/bin/qmail-tcpok, and send qmail-send a HUP and an ALRM. All
> your queued mail for portal.mdr.net will get delivered by SMTP to 127.0.0.1 and
> will be handled by ~alias/.qmail-baddomain-default. The single # in that file
> will cause all the mail to be discarded.
It works (except for 127.0.0.1 was not in my rcpthosts).
Honestly, at first I screewed it up, and generated a lot
of bounces.
Thank you very much
--
Med venlig hilsen / Regards
Netdriftgruppen / Network Management Group
UNI-C
Tlf./Phone +45 35 87 89 41 Mail: UNI-C
Fax. +45 35 87 89 90 Bygning 304
E-mail: [EMAIL PROTECTED] DK-2800 Lyngby