[Rspamd-Users] Having trouble setting up a user blacklist
Vsevolod Stakhov
vsevolod at rspamd.com
Mon Mar 16 14:41:16 UTC 2020
On 16/03/2020 14:29, Michael Hall wrote:
> Hello folks,
>
> I'm trying to set up a user blacklist using Redis. This is my /etc/rspamd/local.d/multimap.conf:
>
> blacklisted_user {
> type = "user";
> map = "redis://blacklisted_users";
> prefilter = true;
> action = reject;
> }
>
> blacklisted_ip {
> type = "ip";
> map = "redis://blacklisted_ips";
> prefilter = true;
> action = reject;
> }
>
> The IP blacklist works fine, but if I do a packet capture between rspamd and Redis, it's not even checking the user.
>
> If I change type = "user" to type = "from" it works, but I want to use the authentication username, not the from address.
>
> Any suggestions?
>
> Thanks,
>
> Michael Hall
> Systems Administrator, Unix
> Primus Management ULC
>
Why do you want to ban specific authenticated users? Aside that it
should work if your MTA passes authenticated username correctly.
More information about the Users
mailing list