-# discard condition = ${if <{$message_size}{256000}}
-# condition = ${if eq {$acl_m_prf}{blackhole}}
-# set acl_m_srb = ${perl{surblspamcheck}}
-# condition = ${if eq{$acl_m_srb}{false}{no}{yes}}
-# log_message = discarded surbl message for $recipients
-#
-# deny condition = ${if <{$message_size}{256000}}
-# condition = ${if eq {$acl_m_prf}{markup}{no}{yes}}
-# condition = ${if eq {$acl_m_prf}{PopconMail}{no}{yes}}
-# set acl_m_srb = ${perl{surblspamcheck}}
-# condition = ${if eq{$acl_m_srb}{false}{no}{yes}}
-# log_message = $acl_m_srb
-# message = $acl_m_srb
-#
-# warn condition = ${if <{$message_size}{256000}}
-# condition = ${if eq {$acl_m_prf}{markup}}
-# set acl_m_srb = ${perl{surblspamcheck}}
-# condition = ${if eq{$acl_m_srb}{false}{no}{yes}}
-# message = X-Surbl-Hit: $primary_hostname: $acl_m_srb
+ discard condition = ${if <{$message_size}{MAX_SCAN_SIZE}}
+ condition = ${if eq {$acl_m_prf}{blackhole}}
+ set acl_m_srb = ${perl{surblspamcheck}}
+ condition = ${if !eq{$acl_m_srb}{false}}
+ log_message = discarded surbl message for $recipients
+
+ deny condition = ${if <{$message_size}{MAX_SCAN_SIZE}}
+ condition = ${if !eq {$acl_m_prf}{markup}}
+ condition = ${if !eq {$acl_m_prf}{PopconMail}}
+ set acl_m_srb = ${perl{surblspamcheck}}
+ condition = ${if !eq{$acl_m_srb}{false}}
+ log_message = $acl_m_srb
+ message = $acl_m_srb
+
+ warn condition = ${if <{$message_size}{MAX_SCAN_SIZE}}
+ condition = ${if eq {$acl_m_prf}{markup}}
+ set acl_m_srb = ${perl{surblspamcheck}}
+ condition = ${if !eq{$acl_m_srb}{false}}
+ message = X-Surbl-Hit: $primary_hostname: $acl_m_srb
+
+ # Dump MIME parts to disk. "default" creates sequentially-named files
+ # in <spool_directory>/scan/<message_id>/ which should then be
+ # automagically unlinked after processing.
+ warn decode = default
+
+ # Log some information about attachments for debugging
+ warn log_message = MIME part [$mime_part_count] -> [${extract{-1}{.}{${lc:$mime_filename}}}] [$mime_content_type]