ref: 0d444d9f15e1d0ca9630d49c5b7e1f64c84cabce
dir: /sys/lib/dist/mail/lib/remotemail/
#!/bin/rc
shift
sender=$1
shift
addr=$1
shift
fd=`{/bin/upas/aliasmail -f $sender}
switch($fd){
case *.*
;
case *
fd=yourdomain.dom
}
exec /bin/upas/smtp -h $fd $addr $sender $*