-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rmilter socket cannot be used on Ubuntu/Debian #39
Comments
See @patrakov's notes here rspamd/rspamd#295 You could use On Trusty you can set listen address in |
Antwan86, you should know that Postfix's smtpd is chrooted, and the socket it is looking for does not exist in its chroot! You should configure rmilter to listen to a socket inside Postfix's chroot, or let smtpd run unchrooted. |
I'm pretty sure that we just need to stop proposing unix sockets and switch to tcp sockets by default. That's how it is done in rpm based builds. |
Vsevolod Stakhov, 2015-09-24 05:35-0700:
That would be a pity. Unix socket are easier to identify (I can Personally, when searching for something to filter my email, I start by What could be useful however, is to add a warning for Postfix users, |
That's not about milter. That's about punny model of libmilter work, when you have absolutely no control of who creates a socket, with what permissions and who is responsible for recycling. That's one of the reasons why I'm going to replace libmilter some day: https://github.com/vstakhov/librmilter |
It's working when setting the socket location to
|
Are there any security implications by setting |
I don't think so. It would be still more secure than TCP socket (if you are not using some non-generic security policies). |
Update on this : Any configuration workaround for this ? Maybe create a socket in both folders, or link them ? |
TCP sockets. |
Use a Unix socket instead of a TCP socket as a Unix socket doesn't play nicely with postfix running smtpd in a chroot. The author of rmilter recommends using a TCP socket per vstakhov/rmilter#39
It also works when the
In Then use in |
Hey,
I installed rmilter to use it with postfix + rspamd.
I never managed to make it work, the socket created cannot be listened/written by postfix, or any other program.
Postfix mail.log
Sep 23 17:29:15 new postfix/smtpd[6361]: warning: connect to Milter service unix:/run/rmilter/rmilter.sock: No such file or directory
Direct IO with shell
I tried with the latest rmilter version from this morning (1.6.5) as well as the previous one.
Environment : Ubuntu trusty x64 with very latest updates.
Can you provide notes/fix/documentation on how to proceed ?
Thanks for your awesome job !
Side notes :
inet:port:ip
)._rmilter
(but ATM even with root it doesn't work anyway).Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: