Subject: sendmail configuration
To: None <netbsd-help@NetBSD.ORG>
From: John M Vinopal <banshee@gabriella.abattoir.com>
List: netbsd-help
Date: 08/08/1996 01:39:04
Situation: HOSTA is the MX mail recipient of mail to USER@DOMAIN.
HOSTA has CwDOMAIN in its sendmail.cf file.

Goal: HOSTA should check for aliases or for .forwards and rewrite
the recipient address appropriately.  Then the recipient address
should be processed by the rule:
R$+ < @ DOMAIN. > $*        $1 < @ HOSTB.DOMAIN. > $2

This results in mail to USER@DOMAIN being sent to USER@HOSTB.DOMAIN
unless the user has a .forward or alias definition on HOSTA.

Question: Where should this rule go such that it runs AFTER alias
rewriting?  It works in S0, except S0 runs before alias rewriting.
It does not work in S5 (which was my guess for proper location).

-j