dmarc {}

whitelist {

  rules {
        "BLACKLIST_DDS" = {
            blacklist = true;
            valid_dkim = true;
            valid_dmarc = true;
            valid_spf = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = 3.0
        }

        "WHITELIST_DDS" = {
            valid_dkim = true;
            valid_dmarc = true;
            valid_spf = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = -3.0
        }

        "WHITELIST_DKIM" = {
            valid_dkim = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            description = "Mail comes from the whitelisted domain and has a valid DKIM signature";
            score = -1.0
        }

        "BLACKLIST_DKIM" = {
            blacklist = true;
            valid_dkim = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = 3.0
        }

        "WHITELIST_SPF" = {
            valid_spf = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = -1.0
            description = "Mail comes from the whitelisted domain and has a valid SPF policy";
        }

        "BLACKLIST_SPF" = {
            blacklist = true;
            valid_spf = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = 3.0
        }

        "WHITELIST_DMARC_DKIM" = {
            valid_dmarc = true;
            valid_dkim = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = -2.0;
            description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies";
        }

        "WHITELIST_DMARC" = {
            valid_dmarc = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = -2.0;
            description = "Mail comes from the whitelisted domain and has valid DMARC policy";
        }

        "BLACKLIST_DMARC" = {
            blacklist = true;
            valid_dmarc = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = 3.0;
        }

        "STRICT_DMARC" = {
            strict = true;
            valid_dmarc = true;
            domains = [
                "${TESTDIR}/configs/maps/domains.list",
            ];
            score = -3.0;
        }

  }
}
