clamav & postfix problem on wheezy

Kernels & Hardware, configuring network, installing services

clamav & postfix problem on wheezy

Postby pappin » 2015-04-06 10:43

Hello,

I'm running Clamav .98.6 and Postfix 2.9.6-2 on wheezy.

I've noticed ( I think since the last update ) a permissions problem in my logs.

postfix/cleanup[8479]: warning: connect to Milter service unix:/clamav/clamav-milter.ctl: Permission denied

If I increase the permissions of clamav-milter.ctl to 0777 it works but something is changing them back again.

Anyone else got the problem and a solution.

Thanks
pappin
 
Posts: 36
Joined: 2005-10-05 16:11
Location: Scotland

Re: clamav & postfix problem on wheezy

Postby reinob » 2015-04-07 07:18

I'm on jessie, but probably the same applies.
Check in /etc/clamav/clamav-milter.conf and look for "MilterSocketMode", mine is 666 (rw-rw-rw-).

You can also change the group (MilterSocketGroup) so that the postfix user has access to it, but I don't know if that works without issues.
reinob
 
Posts: 546
Joined: 2014-06-30 11:42

Re: clamav & postfix problem on wheezy

Postby pappin » 2015-04-07 13:12

reinob wrote:I'm on jessie, but probably the same applies.
Check in /etc/clamav/clamav-milter.conf and look for "MilterSocketMode", mine is 666 (rw-rw-rw-).

You can also change the group (MilterSocketGroup) so that the postfix user has access to it, but I don't know if that works without issues.



Ah!! thanks so much - I'll change the perm settings in there
pappin
 
Posts: 36
Joined: 2005-10-05 16:11
Location: Scotland

Re: clamav & postfix problem on wheezy

Postby gjerich » 2018-06-20 12:38

connect to Milter service unix:/clamav/clamav-milter.ctl: Permission denied

ls -l /var/spool/postfix/clamav srw-rw---- 1 clamav clamav 0 Apr 4 17:59 clamav-milter.ctl

clamav-milter.conf

user clamav MilterSocketGroup postfix MilterSocketMode 660

user permissions for the milter

chown postfix:postfix /var/spool/postfix/clamav/clamav-milter.ctl

Works for me
once a geek, forever a geek
gjerich
 
Posts: 1
Joined: 2018-06-20 12:36


Return to System configuration

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable