RE: Rule to compare rDNS to regular expression

2017-01-19 Thread Ken Johnson
On Wednesday, January 18, 2017, I wrote: >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 /.*amazonaw

Re: Rule to compare rDNS to regular expression

2017-01-18 Thread Paul Stead
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/

Re: Rule to compare rDNS to regular expression

2017-01-18 Thread Paul Stead
And a third answer! I’ve mentioned TagMatch before - https://github.com/fmbla/spamassassin-tagmatch From https://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Conf.html#template_tags ifplugin Mail::SpamAssassin::Plugin::Tagmatch tagmatch __TAGMATCH_RDNS_AWS _LASTEXTERNALRDNS_ =~ /\

Re: Rule to compare rDNS to regular expression

2017-01-18 Thread RW
On Wed, 18 Jan 2017 11:13:20 -0600 Ken Johnson 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

Re: Rule to compare rDNS to regular expression

2017-01-18 Thread Axb
On 01/18/2017 06:13 PM, Ken Johnson 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

Rule to compare rDNS to regular expression

2017-01-18 Thread Ken Johnson
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