Bug 2230280

Summary: clamav-milter can't change group
Product: [Fedora] Fedora EPEL Reporter: Emmanuel Seyman <emmanuel>
Component: clamavAssignee: Robert Scheck <redhat-bugzilla>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel8CC: anon.amish, bennie.joubert, j, lee.jnk, ondrejj, orion, redhat-bugzilla, rh-bugzilla, sergio, steve
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Emmanuel Seyman 2023-08-09 08:56:32 UTC
This may be a dupe of bug #1105888

After setting the following parameters in /etc/clamav-milter.conf:
MilterSocketMode 660
MilterSocketGroup postfix

I expected postfix to be able to "talk" to the milter.
This turns out to not be the case and I end up with a milter that belongs to clamit:clamit which postfix can not talk to.

I've worked around this by adding the postfix user to the clamilt group but I would prefer that the parameters in the configuration file be honoured.

Comment 1 Sergio Basto 2023-08-09 10:55:02 UTC
please check "Changing permissions of directory /var/lib/clamav" in /usr/share/doc/clamav-milter/README.fedora file , let me know if it is what you are looking for , thank you

Comment 2 Emmanuel Seyman 2023-08-09 11:57:22 UTC
I'm actually talking about /run/clamav-milter/clamav-milter.socket .

Comment 3 Sergio Basto 2024-05-08 12:27:05 UTC
Ok  I think you need :

cp /usr/lib/tmpfiles.d/clamav-milter.conf /etc/tmpfiles.d/
cp /usr/lib/systemd/system/clamav-milter.service /etc/systemd/system/

edit /etc/tmpfiles.d/clamav-milter.conf with 
d /run/clamav-milter 0710 postfix postfix

and edit /etc/systemd/system/clamav-milter.service with 
User=postfix
Group=postfix