--- /dev/null
+# Description
+
+Test smtp keywords
+
+# Ticket
+
+https://redmine.openinfosecfoundation.org/attachments/7515
+
+# PCAP
+
+reused from bug-3616-smtp
--- /dev/null
+alert smtp any any -> any any (msg:"SMTP helo GP"; smtp.helo; content:"GP"; sid:1; rev:1;)
+
+# signatures not matching
+alert smtp any any -> any any (msg:"SMTP helo not triggering"; smtp.helo; content:"not there"; sid:10; rev:1;)
--- /dev/null
+pcap: ../bug-3616-smtp/input.pcap
+
+requires:
+ min-version: 8.0.0
+
+checks:
+- filter:
+ # 2 transactions, 2 alerts
+ count: 2
+ match:
+ event_type: alert
+ smtp.helo: GP
+ alert.signature_id: 1
+- filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 10
\ No newline at end of file