Add exim deliver-once script, alias mail to postmaster
[hcoop/zz_old/config/exim4-hopper.git] / deliver-once
diff --git a/deliver-once b/deliver-once
new file mode 100755 (executable)
index 0000000..3d81745
--- /dev/null
@@ -0,0 +1,16 @@
+#/bin/sh
+#
+# Cause a single email message from stdin to be delivered, after
+# pausing one second to allow the mail daemon to cope.
+#
+# Usage: deliver-once USER
+#
+# USER is the person to deliver this email message to.
+
+if test -n "$2" || test -z "$1"; then
+    echo Incorrect number of arguments
+    exit 1
+fi
+
+sleep 1
+exim4 -bm $1