Page 1 of 1
Clamav error
Posted: Fri Jan 29, 2016 8:43 am
by pandabb
Can't receive incoming message due to the following error.
Code: Select all
clamd: unable to connect to UNIX socket (/var/run/clamav/clamd.sock): No such file or directory
The directory doesn't even exist so i created it and started working, but after system reboot the directory is deleted.
What could be the problem?

Re: Clamav error
Posted: Sat Jan 30, 2016 1:19 pm
by pandabb
anyone have idea ? Thanks
Re: Clamav error
Posted: Sat Jan 30, 2016 2:09 pm
by tjebbeke
Have you tried to search? I think you can just create that file or check permission.
Re: Clamav error
Posted: Sat Jan 30, 2016 4:08 pm
by pandabb
Yes i searched and you are right i can create it, i created the folder clamav inside /var/run then chown it to clam:clam then mail starts to come into my mailbox. BUT once i restart my vps, the folder i created and chowned disappears.
Re: Clamav error
Posted: Mon Feb 01, 2016 3:51 am
by pandabb
I was able to fix my problem by changing the default path for the sock and pid. Instead of var/run/clamav i changed it to /var/log/clamav both in clamd.conf and exim config.
Question:
Will this pose a problem or security danger ?
Re: Clamav error
Posted: Tue Feb 02, 2016 1:47 pm
by skurudo
pandabb wrote:Question:
Will this pose a problem or security danger ?
It's extremely unlikely.