George Bell wrote:



Xclmilter, S=local:/var/run/clmilter.sock, F=, T=S:4m;R:4m

I hope you are using the sendmail.mc method of sendmail configuration instead of hand hacking the sendmail.cf, but thats not actualy relevant...

With sendmail stopped, I start clamd(which creates /var/run/clamav/clamd.sock as before), then clamav-milter this time as
"clamav-milter -options local:/var/run/clmilter.sock"
Now I get error:


ClamAv: Unable to bind to port local:/var/run/clmilter.sock: Permission Denied
ClamAv: Unable to create listening socket on conn local:/var/run/clmilter.sock

the clamav-milter program will try to run as clamav user under typical install.


Odds are that ls -la /var/run /var/run/clmilter.sock will show you a permissions conundrum.
My recommendation?


Switch the sendmail/clamav-milter sock to point to /var/run/clamav/clamav-milter.sock


I'm entering all these commands as root.


If sendmail is already running it issues a warning that /var/run/clmilter.sock is missing. If I then try again to start clmilter again the above error repeats.

So ???

Thanks

George

Joe Maimon wrote:



George Bell wrote:

I had clamav antivirus working fine for a couple months. Now after a reboot I can't it started to save my neck. After starting the clamd deamon, which creates "/var/run/clamav/clamd.sock, and starting clamav-milter, clamav-milter exits with following error message:

ClamAv: Unable to bind to port local:/var/run/clamav/clamd.sock: Address already in use.

The socket you start the clamav-milter process as an argument is used for communicating with sendmail

depending on your clamd /etc/clamav.conf configuration, clamav-milter will connect to clamd using ANOTHER socket.

If you specified the milter to use the same socket as clamd, the above is what will happen.

Try stopping clamd, stopping clamav-milter.

Check the socket paths in the /etc/sysconfig/clamav-milter and the arguments passed to clamav-milter (possibly in the init.d script). It should be the same as what you have in your sendmail.mc/sendmail.cf file.
Check the socket path that clamd uses (clamav.conf). It should be DIFFERENT than above.


If files exist there remove them.(use your judgement here)











-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to