Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

clamav & postfix problem on wheezy

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
pappin
Posts: 37
Joined: 2005-10-05 16:11
Location: Scotland

clamav & postfix problem on wheezy

#1 Post by pappin »

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

reinob
Posts: 1195
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: clamav & postfix problem on wheezy

#2 Post by reinob »

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.

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

Re: clamav & postfix problem on wheezy

#3 Post by pappin »

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

gjerich
Posts: 1
Joined: 2018-06-20 12:36

Re: clamav & postfix problem on wheezy

#4 Post by gjerich »

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

Post Reply