ref: cd357a2b8c574b0584d6b1736d9bbcaa9704f5ae
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 $*