[Rspamd-Users] Error adding custom rules (SENDER_DOMAIN_BLACKLIST)

jose.celestino at gmail.com jose.celestino at gmail.com
Wed May 21 18:17:40 UTC 2025


I meant to 'from', not 'smtp'.

On Wed, May 21, 2025 at 7:17 PM jose.celestino at gmail.com
<jose.celestino at gmail.com> wrote:
>
> Hi,
>
> That type is invalid. Change to 'smtp'.
>
> On Tue, May 20, 2025 at 10:19 AM Andreas <rspamd at linuxmaker.com> wrote:
> >
> > Hello everyone,
> >
> > I'm trying to block unwanted domains and have made this entry in my
> > /etc/rspamd/local.d/multimap.conf
> >
> > SENDER_DOMAIN_BLACKLIST {
> >     type = "smtp_from";
> >     filter = "email:domain";
> >     map = "${LOCAL_CONFDIR}/local.d/maps.d/sender_domain_blacklist.map";
> >     action = "reject";
> >     prefilter = true;
> >     priority = 100;
> >     messages = "This sender domain is blocked!";
> >     symbol = "BLACKLISTED_DOMAIN";
> > }
> >
> >
> > and the map file exists with valid line breaks:
> >
> > cat -A /etc/rspamd/local.d/maps.d/sender_domain_blacklist.map
> >
> > ...tagroup.online.tc$
> > inkilsane.de$
> > tiimab.or.mg$
> > toonaca.or.mg$
> > agentur.de$
> > ...
> >
> > But when I test the multimap I get this error message.
> > rspamadm configdump multimap
> > cannot add rule: "SENDER_DOMAIN_BLACKLIST"
> > redefining fallback backend from /etc/rspamd/maps.d/surbl-whitelist.inc to /
> > etc/rspamd/maps.d/surbl-whitelist.inc
> >
> > All other rules are accepted. Does anyone see why this isn't working?
> >
> > Best regards
> >
> > Andreas
> >
> >
> > --
> > Users mailing list
> > Users at lists.rspamd.com
> > https://lists.rspamd.com/mailman/listinfo/users


More information about the Users mailing list