aboutsummaryrefslogtreecommitdiff
path: root/mail/lib/remotemail
diff options
context:
space:
mode:
Diffstat (limited to 'mail/lib/remotemail')
-rwxr-xr-xmail/lib/remotemail14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/lib/remotemail b/mail/lib/remotemail
new file mode 100755
index 00000000..028642e9
--- /dev/null
+++ b/mail/lib/remotemail
@@ -0,0 +1,14 @@
+#!/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 $*