# sb5.rc # # Called by sb4.rc if email is not whitelisted. LOCALTAG=no # Make sure you aren't autoreplying to a mailer daemon :0 * (^From (foo@bar|MAILER-DAEMON( |@|$)|Mail Delivery Subsystem|<>|null( |@|$)|postmaster( |@|$)|\ [0-9a-z]+_Mail_Server@)|\ ^Auto-Submitted: auto-generated \(failure\)$|\ ^Content-Type: multipart/report; report-type( )*=( )*.?delivery-status([^a-z0-9.]|\. |\.$|$)|\ ^Sender: mailer-daemon$|\ ^Subject: Delivery Notification for( )|\ ^Subject: Delivery Status Notification \(Failure\)$|\ ^Subject: failure notice$|\ ^Subject: Mail delivery failed: returning message to sender$|\ ^Subject: mail failed, returning to sender$|\ ^Subject: Returned mail$|\ ^Subject: Returned mail - nameserver error report$|\ ^Subject: Returned mail: Over quota$|\ ^Subject: Undeliverable:|\ ^Subject: =\?iso-8859-1\?Q\?Undeliverable|\ ^Subject: Undeliverable message$|\ ^Subject: Undelivered Mail Returned to Sender$) { :0 B * !--.*forwarded message -- * !^forwarded message: * -1000^0 * 500^0 ^The original message was received at .*$from([^a-z0-9.]|\. |\.$|$) * 500^0 ^ ----- The following addresses had permanent (delivery|fatal) errors -----$ * 500^0 ^ ----- Transcript of session follows -----$ * 500^0 ^-- Start of included mail From: * 500^0 ^Failed to deliver$LOCAL module.*reports:$ * 500^0 ^Content-Type: message/delivery-status$$Reporting-MTA: * 500^0 ^\|------------------------- Message log follows: -------------------------\|$ * 500^0 ^\|------------------------- Failed addresses follow: ---------------------\|$ * 500^0 ^\|------------------------- Message text follows: ------------------------\|$ * 500^0 ^This is an automatically generated Delivery Status Notification\.$ * 500^0 ^Delivery to the following recipients failed\.$ * 500^0 ^This message was created automatically by mail delivery software \(Exim\)\.$ * 500^0 ^A message that you sent could not be delivered to one or more of its$ * 500^0 ^recipients\. This is a permanent error\. The following address\(es\) failed:$ * 500^0 ^ --------Message not delivered to the following:$ * 500^0 ^ --------Error Detail (phquery V4.1):$ * 500^0 ^ --------Unsent Message below:$ * 500^0 ^This is a collection of reports about email delivery$process concerning a message you originated\.$ * 500^0 ^Some explanations/translations for these reports$can be found at:$ * 500^0 ^Following is a copy of MESSAGE/DELIVERY-STATUS format section below\.$ * 500^0 ^Your message$$ To:(.*$)+ Subject:.*$.*$ Sent: * 500^0 ^did not reach the following recipient[(]s[)]:$ * 500^0 ^Hi\. This is the qmail-send program at( ) * 500^0 ^I\'m afraid I wasn\'t able to deliver your message to the following addresses\.$ * 500^0 ^This is a permanent error; I\'ve given up\. Sorry it didn\'t work out\.$ * 500^0 ^This is a delivery status notification, automatically generated by MTA * 500^0 ^This is the Postfix on SuSE Linux eMail Server( ) * 500^0 ^I\'m sorry to have to inform you that the message returned$ * 500^0 ^Regarding recipient[(]s[)] : * 500^0 ^Delivery status : Failed. Message could not be delivered to the domain * 500^0 ^------- Failure Reasons --------$ * 500^0 ^User not listed in public Name & Address Book$ * 500^0 ^------- Returned Message --------$ * 500^0 ^Your message didn't reach the intended recipent\. * 500^0 ^Din besked n=E5ede desv=E6rre ikke frem\. * 500^0 ^A copy of your message is being returned to you due to difficulties$ * 500^0 ^encountered while attempting to deliver your mail\.$ * 500^0 ^--- The message cannot be delivered to the following address\. ---$ * 500^0 (^|[^0-9a-z])Mailbox unknown or not accepting mail\.$ * 500^0 ^The following message to <[^ ]+> was undeliverable\.$ * 500^0 ^5\.[0-9]\.[0-9] - Bad destination email address \'ldap reject\'$ { SBLOGFLAGS="ALWAYS 1 PASS" SBLOG="MAILER-DAEMON" #SBLOG="A1P-MAILER-DAEMON" INCLUDERC=${SBDIR}/functions/loglevel.rc :0 { ADMINTAG=yes } :0 { LOCALTAG=yes } } } :0 * SBCONFIG ?? Debug { LOCALTAG=no } # Start of "else" wrapper so MAILER-DAEMON matches skip everything else :0 * LOCALTAG ?? no { # CHECK FOR BYPASSWD LOCALTAG=no :0 * $ ^Subject:.*${BYPASSWD} { SBLOGFLAGS="ALWAYS 1 PASS" SBLOG="BYPASSWD: ${BYPASSWD}" #SBLOG="A1P-BYPASSWD: ${BYPASSWD}" INCLUDERC=${SBDIR}/functions/loglevel.rc :0 { LOCALTAG=yes } } :0 * SBCONFIG ?? Debug { LOCALTAG=no } # Start of "else" wrapper so BYPASSWD matches skip everything else :0 * LOCALTAG ?? no { # Stick NOLOOP stuff into ADMIN LOCALTAG=no :0 * $ ^X-Loop: ${NOLOOP} { SBLOGFLAGS="ALWAYS 1 PASS" SBLOG="NOLOOP" #SBLOG="A1P-NOLOOP" INCLUDERC=${SBDIR}/functions/loglevel.rc :0 { ADMINTAG=yes } :0 { LOCALTAG=yes } } :0 * SBCONFIG ?? Debug { LOCALTAG=no } # Start of "else" wrapper so NOLOOP matches skip everything else :0 * LOCALTAG ?? no { INCLUDERC=${SBDIR}/sb6.rc } # End of :0 E wrapper around NOLOOP } # End of :0 E wrapper around BYPASSWD } # End of :0 E wrapper around MAILER-DAEMON