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.

Chris

Reply via email to