Should Not Contain ${result.stdout} DBL_SPAM (
Should Not Contain ${result.stdout} RSPAMD_URIBL_IMAGES (
+EMAILBL full adress & domain only
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/emailbltext.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL_FULL (
+ Should Contain ${result.stdout} RSPAMD_EMAILBL_DOMAINONLY (
+
+EMAILBL REPLY TO full adress
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/replyto.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL_FULL (
+ Should Not Contain ${result.stdout} RSPAMD_EMAILBL_DOMAINONLY (
+
+EMAILBL REPLY TO domain only
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/replyto2.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL_DOMAINONLY (
+ Should Not Contain ${result.stdout} RSPAMD_EMAILBL_FULL (
+
+
*** Keywords ***
Surbl Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/surbl.conf
type = a;
replies = ["127.0.0.2"];
},
+ {
+ name = "user.emailbl.com.test5.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
+ name = "baddomain.com.test6.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
{
name = "example.com.test2.uribl";
type = a;
end
EOD;
}
+ "RSPAMD_EMAILBL_FULL" {
+ suffix = "test5.uribl";
+ check_emails = true;
+ emails_domainonly = false;
+ urls = false;
+ replyto = true;
+ images = false;
+ }
+ "RSPAMD_EMAILBL_DOMAINONLY" {
+ suffix = "test6.uribl";
+ check_emails = true;
+ emails_domainonly = true;
+ urls = false;
+ replyto = true;
+ images = false;
+ }
}
}
\ No newline at end of file
--- /dev/null
+Content-Type: text/plain
+
+user@emailbl.com
+user@baddomain.com
\ No newline at end of file
--- /dev/null
+Reply-to: user@emailbl.com
+From: xxx@abrakadabra.com
+Content-Type: text/plain
+
+salkdmaslkd
\ No newline at end of file
--- /dev/null
+Reply-to: user@baddomain.com
+From: xxx@abrakadabra.com
+Content-Type: text/plain
+
+salkdmaslkd
\ No newline at end of file