${result} = Scan Message With Rspamc ${MESSAGE} -i 4.3.2.4
Check Rspamc ${result} FAKE_RBL_CODE_2 inverse=True
+EMAILBL Compose Map 1
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/url14.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL (0.00)[user.dirty.sanchez.com:email]
+
+EMAILBL Compose Map 2
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/url15.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL (0.00)[4.very.dirty.sanchez.com:email]
+
+EMAILBL Compose Map 3
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/url16.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL (0.00)[41.black.sanchez.com:email]
+
+
*** Keywords ***
Rbl Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/rbl.conf
${result} = Scan Message With Rspamc ${TESTDIR}/messages/url10.eml
Should Contain ${result.stdout} RSPAMD_URIBL
-SURBL url compose map
+SURBL url compose map 1
${result} = Scan Message With Rspamc ${TESTDIR}/messages/url11.eml
- Should Contain ${result.stdout} BAD_SUBDOMAIN (0.00)[4.very.dirty.sanchez.com:url, clean.dirty.sanchez.com:url]
+ Should Contain ${result.stdout} BAD_SUBDOMAIN (0.00)[clean.dirty.sanchez.com:url]
+
+SURBL url compose map 2
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/url12.eml
+ Should Contain ${result.stdout} BAD_SUBDOMAIN (0.00)[4.very.dirty.sanchez.com:url]
+
+SURBL url compose map 3
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/url13.eml
+ Should Contain ${result.stdout} BAD_SUBDOMAIN (0.00)[41.black.sanchez.com:url]
*** Keywords ***
Surbl Setup
*.dirty.sanchez.com
-!not.dirty.sanchez.com
\ No newline at end of file
+!not.dirty.sanchez.com
+41.black.sanchez.com
\ No newline at end of file
-!very.clean.exclude.com
\ No newline at end of file
+*.dirty.sanchez.com
+!admin.dirty.sanchez.com
+41.black.sanchez.com
\ No newline at end of file
type = a;
replies = ["127.0.0.2"];
},
+ {
+ name = "41.black.sanchez.com.test7.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "black.sanchez.com.test7.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "user.dirty.sanchez.com.test8.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "admin.dirty.sanchez.com.test8.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "4.very.dirty.sanchez.com.test8.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "41.black.sanchez.com.test8.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "black.sanchez.com.test8.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
# TODO: add IPv6 tests
];
}
"FAKE_WL_RBL_CODE_3" = "127.0.0.3";
}
}
+ RSPAMD_EMAILBL {
+ rbl = "test8.uribl";
+ url_compose_map = "${TESTDIR}/configs/maps/url_compose_map_for_mails.list";
+ emails = true;
+ emails_delimiter = ".";
+ returncodes = {
+ RSPAMD_EMAILBL = "127.0.0.2";
+ }
+ }
}
}
\ No newline at end of file
check_dkim = true;
check_emails = false;
}
- "BAD_SUBDOMAIN_IN_MAIL" {
- suffix = "test8.uribl";
- url_compose_map = "${TESTDIR}/configs/maps/url_compose_map_for_mails.list";
- check_dkim = true;
- check_emails = true;
- }
}
}
Content-Type: text/plain
http://clean.dirty.sanchez.com
-http://not.dirty.sanchez.com
-http://4.very.dirty.sanchez.com
\ No newline at end of file
+http://not.dirty.sanchez.com
\ No newline at end of file
Content-Type: text/plain
+http://4.very.dirty.sanchez.com
http://not.dirty.sanchez.com
\ No newline at end of file
--- /dev/null
+Content-Type: text/plain
+
+http://41.black.sanchez.com
+http://black.sanchez.com
\ No newline at end of file
--- /dev/null
+Content-Type: text/plain
+
+user@dirty.sanchez.com
+admin@dirty.sanchez.com
\ No newline at end of file
--- /dev/null
+Content-Type: text/plain
+
+4@very.dirty.sanchez.com
+admin@dirty.sanchez.com
\ No newline at end of file
--- /dev/null
+Content-Type: text/plain
+
+41@black.sanchez.com
+black@sanchez.com
\ No newline at end of file