This article provides information on how to test if SRX/J-series devices are correctly detecting spam.
The following command can be used to test if e-mails from a specific IP address will be detected as spam by Junos:
test security utm anti-spam profile <profile-name> test-string x.x.x.x
SRX> test security utm anti-spam profile as-profile test-string 10.1.1.1 Anti-spam test result: Return SPAM, action Deny, reason Match sbl server blacklist
test security utm anti-spam
show security utm anti-spam statistics
2019/03/11: Added note regarding the deprecation of the 'test security utm anti-spam' command