[Rspamd-Users] Hybrid Setup Pre and Post-queue filtering with Postfix

Gerald Galster list+rspamd at gcore.biz
Sun Dec 1 03:59:52 UTC 2024


> If I setup milter (pre-queue) and content filter (post-queue) on postfix
> for rspamd

Don't do that. The preferred way is milter with pre-queue as rspamd is
very fast. It's very unlikely a message's classification will change
in the fraction of a second between pre- and post-queue.

> , I get only the milter part (pre-queue) working because it

That is all you need.

> appears that rspamd is ignoring  the file worker-proxy-postqueue.inc (no
> socket is created for localhost:11337) with the following content
> 
> bind_socket = "127.0.0.1:11337"; # Proxy worker listens for SMTP connections

No.                                               ^^^^^^^^^^^^^^^^

> milter = false;                                 # Disable Milter protocol

This enables rspamd's http protocol which is not compatible with postfix.

Maybe you should read up on how milter works. It's not a server that you
deliver an email, that is processed and then reinjected on another local
postfix port. It is more like a conversation on a single connection with
postfix where milter has access to every smtp stage and can accept, block,
ignore or modify data while in transit.

Best regards,
Gerald


More information about the Users mailing list