[Rspamd-Users] How to allow only one domain to use rspamd?

P.V.Anthony anthony at mindmedia.com.sg
Mon Apr 8 18:22:10 UTC 2019


On 8/4/19 11:27 PM, P.V.Anthony wrote:

> I just could not get the settings.conf to work. So I tried 
> multimap.conf. Managed to get it to bypass all the domains with the 
> following rule in multimap.conf.

With the advice I got from the telegram group. This is settings.conf 
seems to work for me. Hope this helps others who may want to try rspamd 
on one domain for testing.

ENABLED_DOMAINS {
         id = "enabled_domains";
         priority = high;
         rcpt = "@example.com";
         apply {
                 actions {
                         subject = "SPAM: %s (%d)";
                 }
         }
}

DISABLED_DOMAINS {
         id = "disabled_domains";
         priority = low;
         rcpt = "@example.com";
         inverse = yes;
         apply {
                 symbols_enabled = [];
                 groups_enabled = [];
         }
}

I have not figured out how to get the "subject" to work yet. I hope to 
do that in the coming days.

P.V.Anthony



More information about the Users mailing list