Hi Miles,
> Is it possible to run two rspamd instances simultaneously with two
> different configurations ?
> If yes, which options should I modify to avoid conflict ?
Sure, though that's not a supported configuration and may not be
necessary. You'd need to change listening ports on second instance and
set a couple of environment variables: CONFDIR, RUNDIR, DBDIR, LOGDIR.
> My idea is to run two rspamd (paired with rmilter) instances.
> One instance loads spam rules and add spam header when hitting spam score
> threshold, and the other one loads mcp rules and add mcp header when
> hitting mcp score threshold.
> Is my approach correct ? Or are there any better rspamd setups which can
> replace MailScanner's spam and mcp detection functions ?
I'm not clear on why you'd want to do that / what you want to
achieve/how. I'm not familiar with MailScanner. Maybe you can do what
you want with settings module:
https://rspamd.com/doc/configuration/settings.html - this is the usual
way to enable/disable certain checks.
Best,
-AL.