Add exim deliver-once script, alias mail to postmaster
authorroot <root@deleuze.hcoop.net>
Fri, 19 Oct 2007 18:11:14 +0000 (14:11 -0400)
committerroot <root@deleuze.hcoop.net>
Tue, 17 Jun 2008 04:21:51 +0000 (00:21 -0400)
deliver-once [new file with mode: 0755]

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