]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
added router to handle foo+new@rt.debian.org
authorLuca Filipozzi <lucaf@goofy.ece.ubc.ca>
Wed, 22 Apr 2009 19:05:22 +0000 (12:05 -0700)
committerLuca Filipozzi <lucaf@goofy.ece.ubc.ca>
Wed, 22 Apr 2009 19:05:22 +0000 (12:05 -0700)
modules/exim/files/common/exim4.conf

index a31a29249a2c5fd170446b93b8282216c550f5a2..90d29ed03ef6e63208ef9b0d74e3be58d4b56d68 100644 (file)
@@ -520,7 +520,7 @@ check_recipient:
 
   warn    domains  = rt.debian.org
           set acl_m1 = RTMail
-          set acl_m12 = ${if def:acl_m12 {$acl_m12} {${if match{$local_part}{[^+]+\\+\\d+} {RTMailRecipientHasSubaddress}}}}
+          set acl_m12 = ${if def:acl_m12 {$acl_m12} {${if or{{match{$local_part}{[^+]+\\+\\d+}}{match{$local_part}{[^+]+\\+new}}} {RTMailRecipientHasSubaddress}}}}
 
   warn    domains  = packages.qa.debian.org
           set acl_m1 = PTSMail
@@ -993,7 +993,18 @@ bugs:
 .endif
 
 # This router delivers for rt.d.o
-rt:
+rt-force-new:
+  debug_print = "R: rt for $local_part+new@$domain"
+  driver = redirect
+  domains = rt.debian.org
+  require_files = /usr/bin/rt-mailgate : RT_QUEUE_MAP
+  local_parts = ${lookup{${sg{$local_part}{-comment}{}}}lsearch{RT_QUEUE_MAP}{$local_part}{}}
+  local_part_suffix = +new
+  pipe_transport = rt_pipe
+  data = "|/usr/bin/rt-mailgate --queue '${lookup{${sg{$local_part}{-comment}{}}}lsearch{RT_QUEUE_MAP}}' --url https://rt.debian.org/ --action ${if match{$local_part}{.*-comment.*}{comment}{correspond}}"
+  headers_add = "Delivered-To: ${local_part}${local_part_suffix}@${domain}"
+
+rt-otherwise:
   debug_print = "R: rt for $local_part@$domain"
   driver = redirect
   domains = rt.debian.org