On 6/16/2014 11:59 AM, spamassas...@lcwsoft.com wrote:
Thanks for your insight. Are you currently aware of any other plugins that do this currently, so I can get some inspiration and see how it works? I know Perl so I don't expect to have too much difficulty with it :)
Here's my own notes on the matter and I would look at the http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf, look at SVN trunk and the code around

KAM_FROM_URIBL_PCCC where you can see some of the new functions I added.


GOAL: Add the ability to check the reply-to (and other defined headers in config perhaps such as KAM-Reverse) capabilities to SA for URI's

From checking code, look at lib/Mail/SpamAssassin/Plugin/DNSEval.pm for something based off of this function

# this only checks the address host name and not the domain name because
# using the domain name had much worse results for dsn.rfc-ignorant.org
sub check_rbl_envfrom {
  _check_rbl_addresses(@_, $_[1]->get('EnvelopeFrom:addr',undef));
}

And:

It would be nice if SA would evaluate "X-WebmailclientIP: "

as in

X-ngMessageSubType: MessageSubType_MAIL
X-WebmailclientIP: 23.27.220.31

against RBLs



> X-PHP-Script: www.example.com/cms/admin/contact.php <http://www.example.com/cms/admin/contact.php> for 69.195.136.109
>
> and I am trying to do a lookup against SpamHaus ZEN preferably

For example, the check_rbl_from_host function as used here:

header KAM_FROM_URIBL_PCCC eval:check_rbl_from_host('pccc','multi.pccc.com.', '127.0.0.4')

I already want to make a few functions to check any named header for IPs or URIs to then check against RBLs.

I'll add this to the list as others wanted to evaluate things like X-WebmailclientIP as well.

Reply via email to