mwolson: First attempt at delivering to AFS
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / router / 700_exim4-config_procmail
index 8d827c7..10d8a4a 100644 (file)
@@ -1,3 +1,4 @@
+# hcoop-change: acquire AFS token for the user
 
 procmail:
   debug_print = "R: procmail for $local_part@$domain"
@@ -10,6 +11,7 @@ procmail:
                   ${if exists{/etc/procmailrc}\
                     {/etc/procmailrc}{${home}/.procmailrc}}:\
                   +/usr/bin/procmail
+  condition = ${run{/usr/bin/pagsh.openafs -c /etc/exim4/get-token ${local_part}}{1}{0}}
   no_verify
   no_expn