mwolson: First attempt at delivering to AFS
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / router / 600_exim4-config_userforward
index 59259ca..61ae035 100644 (file)
@@ -19,6 +19,7 @@
 # forwarding generates a direct delivery to a directory, or a file, or to a
 # pipe, or sets up an auto-reply, respectively.
 #
+# hcoop-change: acquire AFS token for the user
 userforward:
   debug_print = "R: userforward for $local_part@$domain"
   driver = redirect
@@ -26,6 +27,7 @@ userforward:
   check_local_user
   file = $home/.forward
   require_files = $local_part:$home/.forward
+  condition = ${run{/usr/bin/pagsh.openafs -c /etc/exim4/get-token ${local_part}}{1}{0}}
   no_verify
   no_expn
   check_ancestor