Created attachment 540164 [details] EL6 patch for setting group permissions on socket. Description of problem: /var/spool/MIMEDefang/mimedefang.sock is being created as 0750 and not as 0660. Version-Release number of selected component (if applicable): 2.72-2 How reproducible: Install and start service, then "ls -l" on above path. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: This is also needed in Rawhide.
Actually, the utils.c portion of the patch is unnecessary.
Created attachment 540246 [details] Amended to just modify umask before calling smfi_opensocket()
Skoll has reviewed my patch but has suggested an alternative strategy; no patch has yet been posted.
Any update here?
A similar patch has been integrated into 2.73-BETA1. http://lists.roaringpenguin.com/pipermail/mimedefang/2011-December/036424.html
Created attachment 550310 [details] Bump to official release 2.73-BETA-1 which contains fix Please review and publish.
Actually, this patch works for both FC16 and EL6.
(In reply to comment #4) > Any update here? Yes, indeed. It's been fixed upstream and I've posted a patch which bumps to that version.
I'm testing 2.73-BETA-3 on Centos6 + EPEL and Fedora 16 right now. I'd add the following /usr/share/doc/mimedefang-%{version}/README.clamd file: ==== Starting with mimedefang-2.73, integration of mimedefang and clamd is significantly easier. That said, some manual steps are still required: (1) add the user clam to the defang group after installing mimedefang usermod -a -G defang clam (2) find and modify the following lines in /etc/clamd.conf: LocalSocketGroup defang LocalSocketMode 660 and optionally disable the TCP listener if you are only using the UNIX socket from mimedefang (below): #TCPSocket 3310 #TCPAddr 127.0.0.1 (3) enable MD_ALLOW_GROUP_ACCESS=yes in /etc/sysconfig/mimedefang (4) configure /etc/mail/mimedefang-filter to use clamd via UNIX socket: $Features{'Virus:CLAMD'} = 1; $ClamdSock = '/var/run/clamav/clamd.sock'; (5) restart the mimedefang and clamd services (clamd first). ===
Mimedefang-2.73 is formally released as of a few hours ago.
mimedefang-2.73-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mimedefang-2.73-1.fc16
mimedefang-2.73-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mimedefang-2.73-1.fc15
mimedefang-2.73-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mimedefang-2.73-1.el6
mimedefang-2.73-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mimedefang-2.73-1.el5
Package mimedefang-2.73-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mimedefang-2.73-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0869/mimedefang-2.73-1.fc16 then log in and leave karma (feedback).
mimedefang-2.73-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
mimedefang-2.73-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
mimedefang-2.73-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
mimedefang-2.73-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.