1#!/bin/rc 2shift 3sender=$1 4shift 5addr=$1 6shift 7fd=`{/bin/upas/aliasmail -f $sender} 8switch($fd){ 9case *.* 10 ; 11case * 12 fd=yourdomain.dom 13} 14exec /bin/upas/smtp -h $fd $addr $sender $* 15