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
.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