R
R
Roma2020-06-22 16:27:22
Dovecot
Roma, 2020-06-22 16:27:22

How to train Rspamd when they are with dovecot on different servers?

Colleagues, good afternoon.

Prompt, please, on a subject.

The mail system consists of two servers.
srv1 - antispam - postfix, rspamd (address 10.1.1.1).
srv2 - mailer - postfix, dovecot, web-muzzle, database (address 10.1.1.2, aka mx for local users).
IMAP, POP3, HTTP traffic goes directly to srv2.
firewall - a firewall, an external address is assigned to it (5.5.5.5, aka mx for external senders).

Incoming mail from outside gets to srv1, is checked for spam and transferred to srv2 (10.1.1.1 -> 10.1.1.2), where it is decomposed into user boxes.
Internal users only connect to srv2 (10.1.1.2). It sends mail to the outside, bypassing srv1.
5eea0e258675c336967515.png

Now rspamd and dovecot are on the same server (srv1 is not yet available) and when a user sends an email to the spam folder, a sieve script is launched that executes spamc

pipe :copy "rspamc" ["-d", "\${imapuser}", "learn_spam"];

How to implement such training when rspamd will be physically located on one server (srv1) and dovecot on another (srv2)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Mezhuev, 2020-06-22
@Angel2S2

Something like this:

pipe :copy "rspamc" ["-h", "srv1", "-d", "\${imapuser}", "learn_spam"];

But on srv2 you will need to install Rspamd (for the sake of rspamc). A more interesting option is to use a message broker.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question