I wikified it, should be possible now.
To block tlds:
Create a custom template:
mkdir -p /etc/e-smith/templates-custom/etc/rspamd/local.d/multimap.conf
Create /etc/e-smith/templates-custom/etc/rspamd/local.d/multimap.conf/90tld
with following content:
#
# configure tld list
#
{
if ($rspamd{SpamCheckStatus} eq 'enabled') {
$OUT .= << 'EOF'
FROM_BLACKLIST_TLD {
type = "from";
map = [
"${CONFDIR}/blacklist_from_tld.map",
];
action = "reject";
filter = "top";
symbol = "FROM_BLACKLIST_TLD";
regexp = true;
description = "Refused list of FROM TLD";
}
EOF
}
}
Create /etc/rspamd/blacklist_from_tld.map
with tlds to block like:
[.]com$
[.]at$
[.]de$
Apply changes:
signal-event nethserver-mail-filter-update
Please test and give feedback…