Cannot find Socket (/var/run/clamd.scan/clamd.sock) Exiting!

Macheta, Andy Andy.Macheta at
Tue May 2 19:43:45 UTC 2023

Thanks Mark (and Tracy),

My 'Run As Group' was set to 'postfix' and this was not a member of 'virusgroup'.
I changed this from 'postfix' to 'virusgroup' and restarted MailScanner and it looks like it fixed things as I'm now getting mail flow to the inbox and extended mail headers show that it's being spam checked and
virus checked 😉

Thank you!!!!

From: MailScanner < at> on behalf of Mark Sapiro <mark at>
Sent: 02 May 2023 16:58
To: mailscanner at <mailscanner at>
Subject: Re: Cannot find Socket (/var/run/clamd.scan/clamd.sock) Exiting!

On 5/2/23 08:28, Macheta, Andy via MailScanner wrote:
> I'm running a test VM (Alma Linux 9) with
> Spamassassin/Postfix/MailScanner/clamd at scan but it looks like the
> problem is with the socket even though it exists and has the right
> permissions:
> srw-rw----. 1 clamscan virusgroup 0 May  2 15:09
> /var/run/clamd.scan/clamd.sock

What is your setting for `Run As Group`? Is that group a member of

Mark Sapiro <mark at>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

MailScanner mailing list
mailscanner at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list