Finally, the default symbol is yielded- if `domains` is specified then
only if the phished domain is found in the related map.
+Maps for this module can consist of effective second level domain parts (eTLD)
+or whole domain parts of the URLs (FQDN) as well.
+
## Openphish support
Since version 1.3, there is [openphish](https://openphish.com) support in rspamd.
if #redirector_domains > 0 then
for _,rule in ipairs(redirector_domains) do
- if rule['map']:get_key(url:get_tld()) then
+ if rule['map']:get_key(tld) or rule['map']:get_key(url:get_host()) then
task:insert_result(rule['symbol'], weight, ptld .. '->' .. tld)
found = true
end
end
if not found and #strict_domains > 0 then
for _,rule in ipairs(strict_domains) do
- if rule['map']:get_key(ptld) then
+ if rule['map']:get_key(ptld) or rule['map']:get_key(purl:get_host()) then
task:insert_result(rule['symbol'], 1.0, ptld .. '->' .. tld)
found = true
end