plan9fox/sys/lib/dist/mail/lib/remotemail
2012-02-11 16:48:54 -06:00

15 lines
180 B
Bash
Executable file

#!/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 $*