I'm running SpamAssassin as a milter in a Docker container separate from Postfix and Dovecot. Postfix and SA work together nicely, Postfix connects to spamass-milter, SA does its thing, mail gets flagged appropriately, all good.

Now, I'd like to be able to teach SA spam from ham when I move messages back and forth between Inbox and Junk, more or less like in this guide. I confirmed that sieve works by having a simple filter that moves spam to the Junk folder when flagged so by SA, and it seems to work. Dovecot also runs in its own Docker container.

That guide implies that the spamc command can connect to a SA instance via TCP, which would be great if only that didn't mean that I have to have spamc available inside the container running Dovecot, which means having to install SA inside that very container, which means in turn lots of unnecessary duplication.

Is there a way around this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.