Skip to content
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

Config settings for sockets permissions and some minor fixes. #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vstupin
Copy link

@vstupin vstupin commented Feb 26, 2014

Good day!

I added settings file_mode for clamav unix domain socket and settings bind_socket_mode for rmilter itself unix domain socket. I fixed parsing of numbers to autodetect octal, hexadecimail and decimal numbers. And i fixed rmilter.init file to use SOCK settings and remove code duplication.

Fixes was tested with Postfix.

@@ -25,8 +23,7 @@ DESC="Rmilter Mail Filter Daemon"
PIDFILE="/var/run/$NAME.pid"
PNAME="rmilter"
USER="rmilter"
SOCKET=/var/lib/rmilter/rmilter.sock

SOCKET=/var/spool/postfix/rmilter/rmilter.sock
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a wrong path actually. The problem is that rmilter is not intended to run with Postfix MTA only, therefore it should create socket into some other path. The proper solution is to read from /etc/defaults/rmilter the name of the socket and use it in the init script.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to override any variable, because bellow occured that line:

test -f /etc/default/rmilter && . /etc/default/rmilter

…hat option sends signal HUP to rmilter. Permissions for temporary files changing moved to other place - where is temporary file created.
@mnik247 mnik247 mentioned this pull request Apr 24, 2016
@andypl78 andypl78 mentioned this pull request Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants