Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Move from rmilter to rspamd #25

Open
r-raymond opened this issue Nov 11, 2017 · 16 comments
Open

Move from rmilter to rspamd #25

r-raymond opened this issue Nov 11, 2017 · 16 comments

Comments

@r-raymond
Copy link
Owner

With rmilter being deprecated, we should move the scanning system over to rspamd

@r-raymond
Copy link
Owner Author

r-raymond commented Nov 15, 2017

Ok after investigating this a bit the issue is that we would need some patches upstream (nixpkgs) to make this work. At the very least we would need to update the package to a more recent version.

Another note is that rspamd has some really fancy features to the point where it maybe is a overkill for a Simple Nixos Mailserver. Some of the statistics also rely on databases (given sqlite databases), so strictly speaking it goes against the goals of the project -- even though I doubt anyone is worried about backing up spam statistics.

Another possibility would be to move to a different milter system, maybe just basic opendkim, clamav and spam assassin. Opinions are very welcome!

@phdoerfler
Copy link
Contributor

I am in favor of rspamd. It also provides very useful statistics graphically.

@r-raymond
Copy link
Owner Author

NixOS/nixpkgs#31734 upstream patch.

Kind of unclear what we are supposed to do until it lands in a stable release though.

@r-raymond
Copy link
Owner Author

rspamd 1.6.5 is now in unstable so the transition can begin

@vstakhov
Copy link

By the way, you can remove OpenDKIM completely if you switch to the recent Rspamd.

@r-raymond
Copy link
Owner Author

@vstakhov, we use opendkim only for key creation right now, rmilter does the signing. Thanks for pointing it out though!

@vstakhov
Copy link

vstakhov commented Jan 16, 2018 via email

@jbboehr
Copy link
Contributor

jbboehr commented Apr 5, 2018

Looks like 18.03 is out as of yesterday: https://groups.google.com/forum/#!topic/nix-devel/7bRK8FUcC5s

@nyanloutre
Copy link

#90

So that's why the spam filtering doesn't work on 18.03

@dotlambda
Copy link
Contributor

I am seeing

postfix/smtpd[10743]: NOQUEUE: milter-reject: CONNECT from example.com[X.X.X.X]: 451 4.7.1 Service unavailable - try again later; proto=SMTP

in my logs when I try to send a message. Therefore I'm unable to send emails right now.
Do you know of any workaround?

@r-raymond
Copy link
Owner Author

I'm sorry to hear that. Are you on 18.03? In this case the best bet would be to turn off spam filtering all together.

@dotlambda
Copy link
Contributor

dotlambda commented May 2, 2018

No, I'm on unstable. Disabled the rmilter service for now.

@eqyiel
Copy link
Contributor

eqyiel commented May 6, 2018

@eqyiel
Copy link
Contributor

eqyiel commented May 6, 2018

For those who are running unstable, with the following change to the upstream rmilter service I can at least send and receive mail:

nixos/rmilter: temporarily accept on failure

1 file changed, 2 insertions(+)
nixos/modules/services/mail/rmilter.nix | 2 ++

modified   nixos/modules/services/mail/rmilter.nix
@@ -179,6 +179,8 @@ in
             smtpd_milters = ${rmilterSocket}
             milter_protocol = 6
             milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
+            # skip mail without checks if something goes wrong
+            milter_default_action = accept
           '';
         };
       };

Otherwise it will reject mails with warning: connect to Milter service unix:/run/rmilter/rmilter.sock: No such file or directory.

I haven't disabled the rmilter service.

griff added a commit to griff/nixos-mailserver that referenced this issue May 15, 2018
@telent
Copy link

telent commented May 15, 2018

#90 (comment) I have spam filtering working in 18.03 with this rather kludgey workaround, if it helps

@eqyiel
Copy link
Contributor

eqyiel commented May 16, 2018

This is a thing: NixOS/nixpkgs#40434

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants