if not first_delivery
then
finish
endif
if $sender_address is ""
then
if $header_Auto-Submitted: is not "auto-replied"
then
if ${lookup{${extract{2}{@}{$recipients}}}lsearch{/etc/virtual/domains}{yes}{no}} is "no"
then
noerror fail text "Delayed bounce message ignored"
seen finish
endif
endif
endif
if $sender_address is ""
then
if $header_Auto-Submitted: is not "auto-replied"
then
if ${lookup{${extract{2}{@}{$recipients}}}lsearch{/etc/virtual/domains}{yes}{no}} is "no"
then
headers add "Old-Subject: $h_subject:"
headers remove "Subject"
headers add "Subject: [Delayed Bounce]$h_old-subject:"
headers remove "Old-Subject"
deliver "abuse@yourdomain.com"
noerror fail text "Delayed bounce message ignored"
seen finish
endif
endif
endif