ifelse(SECTION, `ACL_CHECK_RCPT', `dnl # DSN support for local recipients # warn condition = ${if eq{${perl{and}{$dsn_flag}{4}}}{4}{yes}{no}} # warn condition = ${if eq{${eval:${eval:$dsn_flag/4}*4-${eval:$dsn_flag/8}*8}}{4}{yes}{no}} warn condition = ${if eq{${eval:$dsn_flag & 4}}{4}{yes}{no}} set acl_m19 = ${acl_m19}, ${local_part}@${domain} ')dnl ifelse(SECTION, `ACL_CHECK_DATA_TOP', `dnl # DSN support for local recipients # Return-Receipt-To warn condition = ${if eq{$h_Return-Receipt-To:}{}{no}{yes}} set acl_m19 = Return_Receipt_To=$h_Return-Receipt-To: rcpt=", $recipients," # RCPT TO NOTIFY warn condition = ${if eq{$h_Return-Receipt-To:}{}{yes}{no}} condition = ${if eq{$acl_m19}{}{no}{yes}} set acl_m19 = Return_Receipt_To=<$sender_address> rcpt="$acl_m19," warn condition = ${if eq{$acl_m19}{}{no}{yes}} set acl_m19 = boundary=NEXT_PART_${sg{${tod_log}.${qualify_domain}.$message_exim_id}{\N\s\N}{.}} $acl_m19 ')dnl ifelse(SECTION, `TRANSPORTS', `dnl # DSN support for local recipients DSN_local: driver = autoreply # condition = ${if match{${extract{rcpt}{$acl_m19}}}{, ${original_local_part}@${original_domain},}{yes}{no}} file = CONFDIR/template.DSN file_expand = true from = "Mail Delivery Subsystem " to = ${extract{Return_Receipt_To}{$acl_m19}} subject = "Return receipt" headers = "Content-Type: multipart/report; report-type=delivery-status;\n\tboundary=\"${extract{boundary}{$acl_m19}}\"\nMIME-Version: 1.0\nAuto-Submitted: auto-generated (return-receipt)" ')dnl