exim-spam-limit.userv: Include the recommended spam-limit service file.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 7 May 2016 01:14:09 +0000 (02:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 7 May 2016 01:14:09 +0000 (02:14 +0100)
exim-spam-limit.userv [new file with mode: 0644]

diff --git a/exim-spam-limit.userv b/exim-spam-limit.userv
new file mode 100644 (file)
index 0000000..4fd3612
--- /dev/null
@@ -0,0 +1,17 @@
+### -*-conf-*-
+
+if ( ( glob calling-user root
+     | glob calling-user Debian-exim
+     )
+   & ( grep service-user-shell /etc/shells
+     | glob service-user-shell /dev/token-shells/userv
+     )
+   )
+       reset
+       no-suppress-args
+       no-set-environment
+       execute /bin/sh -c "\
+               set -e; \
+               case \"$*\" in *[\\\\{}]*) exit 2 ;; esac; \
+               exec /usr/sbin/exim -be \"\\${lookup {$2$3/$1}nwildlsearch{$HOME/.mail/spam-limit.userv}}\"" -
+fi