Ihnen, David writes:
> In order to test a backup set of servers with live traffic, we would like to
> duplicate the messages coming in and direct the copy to the backup servers.
> They will black-hole the messages after processing them.
Do something like this:
svc -d /service/*
HOST=real`hostname`
sed 's/$/:doubleit/' < /var/qmail/control/locals >>/var/qmail/control/virtualdomains
echo $HOST >/var/qmail/control/locals
echo '|forward $EXT2@'$HOST >~alias/.qmail-doubleit-default
echo '|forward $EXT2@otherhost' >>~alias/.qmail-doubleit-default
svc -u /service/*
Your details may vary, so I wouldn't cut-n-paste if I were you. In
particular, hostname probably doesn't actually give you the name of
the host.
--
-russ nelson <[EMAIL PROTECTED]> http://russnelson.com |
Crynwr sells support for free software | PGPok | Damn the firewalls!
521 Pleasant Valley Rd. | +1 315 268 1925 voice | Full connectivity ahead!
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |