Why not a fourth? Set up rbldnsd listing “.amazonaws.com” – plus whatever else you want, then use some built-in AskDNS stuff:
askdns LOCAL_RBL_EXTERNAL_RDNS _LASTEXTERNALRDNS_.lookup.example.com A 127.0.0.2 askdns interpolates tags before using them as a DNS lookup http://search.cpan.org/dist/Mail-SpamAssassin/lib/Mail/SpamAssassin/Plugin/AskDNS.pm Paul On 18/01/2017, 17:13, "Ken Johnson" <kjohn...@eclypse.org> wrote: Hi, I would like to write a rule to compare the rDNS lookup of the sender's IP address to a regular expression. I have written super simple URI rules for /etc/spamassassin/local.cf (Debian Linux system) like this: uri LOCAL_AWSURI /.*amazonaws\.com/ score LOCAL_AWSURI 2.6 describe LOCAL_AWSURI Links to site at amazonaws.com which work as expected. But my Google searches for examples or discussion must be the wrong search terms, as the search results are about other topics, not the one I want. Can someone provide an example or point me toward documentation of how to write such a rule? Thanks, Ken -- Paul Stead Systems Engineer Zen Internet