Postfix and spamass-milter, problem with the socket?

0 like 0 dislike
12 views
Trying to Postfix+Spamassassin to tie spamass-milter, the problem is that postfix'have not enough rights to access the spamass-milter.sock
srwxr-xr-x 1 sa-milt sa-milt 0 Dec 17 14:31 spamass-milter.sock


using RUN_AS_USER on behalf postfix'and spamass-milter just refuses to work. on the Internet that spamass-milter in freebsd bolted only through rc.conf, so couldn't find there useful information

upd: in General, I don't know how this "beautiful" option, but decided in the following way:

in the file /etc/init.d/spamass-milter in the section after start of the daemon, add the line:
chown postfix:postfix /var/run/spamass-milter/spamass-milter.sock
chmod 660 /var/run/spamass-milter/spamass-milter.sock


kind still operating, more elegant options, I never found, I understand the SOCKETOWNER Directive in /etc/sysconfig/spamass-milter was removed

can someone come in handy
by | 12 views

2 Answers

0 like 0 dislike
how about
\r
chown postfix:sa-milt /var/run/spamass-milter/spamass-milter.sock
chmod 660 /var/run/spamass-milter/spamass-milter.sock
\r
?
by
0 like 0 dislike
In CentOS I wrote my initscript in this situation.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
asked Apr 5, 2019 by razumkov2015
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,875 users