Junk Email Filter RBL Rules

72 views
Skip to first unread message

marc perkel

unread,
Dec 17, 2015, 12:07:25 PM12/17/15
to rspamd
Hello everyone,

Here's my first attempt to write rules for my HostKarma RBLs. feel free to test or improve them.

Info on the lists:

Here's a comparison of my lists to other lists: (JMF is mine)


What's unusual about my lists is:

black - bounce it
white - pass it - no other tests
yellow - IP or host name has no information about if it's spam - no reason for any other IP tests. (gmail/hotmail/yahoo are yellow)


in surbl group:

    rule {
        symbol = "JEF_NAME1";
        is_whitelist = true;
        ips = {
            # white domain
            JEF_NAME_WL = "127.0.0.1";
            JEF_NAME_YL = "127.0.0.3";
        }
    }

    rule {
        symbol = "JEF_NAME2";
        ips = {
            # spam domain
            JEF_NAME_BL = "127.0.0.2";
        }
    }

in rbl group:

       jefw {
            symbol = "JEF_IPW";
            rbl = "hostkarma.kinkemailfilter.com";
            is_whitelist = true;
            returncodes {
                JEF_IP_WL = "127.0.0.1";
                JEF_IP_YL = "127.0.0.3";
            }
        }

        jefb {
            symbol = "JEF_IPB";
            rbl = "hostkarma.kinkemailfilter.com";
            returncodes {
                JEF_IP_BL = "127.0.0.2";
                JEF_IP_BR = "127.0.0.4";
            }
        }

metrics:

rbl group

       symbol {
            name = "JEF_IP_WL";
            weight = -5.0;
            description = "JEF IP Whitelist";
        }

        symbol {
            name = "JEF_IP_YL";
            weight = -0.2;
            description = "JEF IP Yellowlist";
        }

        symbol {
            name = "JEF_IP_BL";
            weight = 5.0;
            description = "JEF IP Blacklist";
        }

        symbol {
            name = "JEF_IP_BR";
            weight = 1.0;
            description = "JEF IP Brown";
        }

surbl group

        symbol {
            weight = -5.0;
            description = "JEF Name Whitelist";
            name = "JEF_NAME_WL";
        }
        symbol {
            weight = -0.1;
            description = "JEF Name Yellowlist";
            name = "JEF_NAME_YL";
        }
        symbol {
            weight = 5.0;
            description = "JEF Name Blacklist";
            name = "JEF_NAME_BL";
        }



Reply all
Reply to author
Forward
0 new messages