Ticket: 7587
Verify that we do not output a body_md5
--- /dev/null
+# Test Description
+
+Test body_md5 auto setting without rules using email.body_md5 keyword
+
+## PCAP
+From ../bug-3616-smtp/input.pcap
+
+## Redmine Ticket
+https://redmine.openinfosecfoundation.org/issues/7587
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - smtp:
+ extended: yes
+ md5: [body, subject]
+ - alert:
+ smtp: yes
+
+app-layer:
+ protocols:
+ smtp:
+ enabled: yes
+ raw-extraction: no
+ mime:
+ decode-mime: yes
+ decode-base64: yes
+ body-md5: auto
--- /dev/null
+requires:
+ min-version: 9
+
+pcap: ../bug-3616-smtp/input.pcap
+
+args:
+ - -k none --set stream.inline=true
+
+checks:
+- filter:
+ count: 0
+ match:
+ event_type: smtp
+ has-key: email.body_md5
+- filter:
+ count: 2
+ match:
+ event_type: smtp