![]() |
Sendmail stops working
Hi there,
After a couple of weeks of not receiving any emails sent from a web-based contact form ("doh!"), sendmail appears to have stopped working. From the mail log: (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Connection refused, retrying (2) Restarting ClamAV fixes the issue: /etc/init.d/amavis restart ... However I'd like to find out what's causing this, as it has happened a number of times over the last 6 months. Is the below related?
Is there something I should be doing? Please help! |
If you're using ISPConfig 3, you should have Postfix installed instead of Sendmail. What's in your mail log?
|
Hey Falko, thanks for the response.
You are right, I didn't mean Sendmail. I included the pertinent line from my mail log above, but here it is again: (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Connection refused, retrying (2) Would you mind weighing-in again? Thanks! Mat |
Does /var/run/clamav/clamd.ctl exist? You can check with
Code:
ls -la /var/run/clamav/clamd.ctlCode:
/etc/init.d/amavis restart |
Hi, yes /var/run/clamav/clamd.ctl does exist.
At the moment mail is sending okay, it's just that it periodically stops. This could be every few months even. The problem is that I don't know of any way of monitoring it. The problem is that if messages don't send, I don't get business enquiries, which is my primary income :eek: |
You can use "monit" to monitor the process.
|
I've installed monit, and looked through its documentation, but my one issue is this:
It appears monit uses the local mailserver to send email in the event of a problem. The thing I need to monitor is the local mailserver itself, as that's the thing that is failing! So I don't think using monit will work. Can anyone help me? Why do I need to periodically manually restart clamav to make mail send?! |
Quote:
|
| All times are GMT +2. The time now is 08:54. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.