plan9port/mail/lib/remotemail
2006-02-12 19:45:56 +00:00

14 lines
187 B
Bash
Executable file

#!/usr/local/plan9/bin/rc
shift
sender=$1
shift
addr=$1
shift
fd=`{upas/aliasmail -f $sender}
switch($fd){
case *.*
;
case *
fd=YOURDOMAIN.DOM
}
exec upas/smtp -h $fd $addr $sender $*