Answer the question
In order to leave comments, you need to log in
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.
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"];
Answer the question
In order to leave comments, you need to log in
Something like this:
pipe :copy "rspamc" ["-h", "srv1", "-d", "\${imapuser}", "learn_spam"];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question