Control Web Panel
WebPanel => E-Mail => Topic started by: Starburst on September 06, 2020, 03:44:16 AM
-
Followed the Wiki at http://wiki.centos-webpanel.com/how-to-configure-spamassassin
Thought when you rebuilt the Email Server and had this option checked, it enabled it.
But apparently it doesn't, since all the line listed in the Wiki are missing.
After Enabling now though, CPU usable is at 100% for spamd
33279 root 20 0 185136 74772 8532 R 100.0 0.9 0:01.48 spamd
Does the Wiki have to still be done for CWPpro 0.9.8.1006?
Or am I missing something?
-
First I had a problem that clamav and amavis had stopped and my mails got stuck in the postfix mail queue. This problem was solved by the mail server rebuilt.
Now my CPU meter keeps ticking 50 percent.
In the top stats, just like yours 100% in use.
I'm not too happy about this.
I reinstall everything and i got an error:
● clamd.service - clamd scanner () daemon
Loaded: loaded (/usr/lib/systemd/system/clamd.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2020-09-06 09:45:12 CEST; 57s ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Main PID: 22278 (code=exited, status=203/EXEC)
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Started clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service: main process exited, code=exited, status=203/EXEC
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Unit clamd.service entered failed state.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service failed.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service holdoff time over, scheduling restart.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Stopped clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: start request repeated too quickly for clamd.service
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Failed to start clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Unit clamd.service entered failed state.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service failed.
amaviaAV:
● amavisd.service - Amavis mail content checker
Loaded: loaded (/usr/lib/systemd/system/amavisd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: http://www.ijs.si/software/amavisd/#doc
Sep 05 18:22:18 srv1.cs-hosting.nl systemd[1]: Starting Amavis mail content checker...
Sep 05 18:22:19 srv1.cs-hosting.nl systemd[1]: Started Amavis mail content checker.
Sep 05 18:23:32 srv1.cs-hosting.nl systemd[1]: Stopping Amavis mail content checker...
Sep 05 18:23:33 srv1.cs-hosting.nl systemd[1]: Stopped Amavis mail content checker.
Sep 05 18:24:00 srv1.cs-hosting.nl systemd[1]: Starting Amavis mail content checker...
Sep 05 18:24:01 srv1.cs-hosting.nl systemd[1]: Started Amavis mail content checker.
Sep 06 09:44:59 srv1.cs-hosting.nl systemd[1]: Stopping Amavis mail content checker...
Sep 06 09:45:04 srv1.cs-hosting.nl systemd[1]: Stopped Amavis mail content checker.
something is realy fucked up.
-
Ow i forgot:
this error i get after reinstall:
mv: cannot stat ‘clamd@scan.service’: No such file or directory
-
+1
-
First I had a problem that clamav and amavis had stopped and my mails got stuck in the postfix mail queue. This problem was solved by the mail server rebuilt.
Now my CPU meter keeps ticking 50 percent.
In the top stats, just like yours 100% in use.
I'm not too happy about this.
I reinstall everything and i got an error:
● clamd.service - clamd scanner () daemon
Loaded: loaded (/usr/lib/systemd/system/clamd.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2020-09-06 09:45:12 CEST; 57s ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Main PID: 22278 (code=exited, status=203/EXEC)
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Started clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service: main process exited, code=exited, status=203/EXEC
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Unit clamd.service entered failed state.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service failed.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service holdoff time over, scheduling restart.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Stopped clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: start request repeated too quickly for clamd.service
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Failed to start clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Unit clamd.service entered failed state.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service failed.
amaviaAV:
● amavisd.service - Amavis mail content checker
Loaded: loaded (/usr/lib/systemd/system/amavisd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: http://www.ijs.si/software/amavisd/#doc
Sep 05 18:22:18 srv1.cs-hosting.nl systemd[1]: Starting Amavis mail content checker...
Sep 05 18:22:19 srv1.cs-hosting.nl systemd[1]: Started Amavis mail content checker.
Sep 05 18:23:32 srv1.cs-hosting.nl systemd[1]: Stopping Amavis mail content checker...
Sep 05 18:23:33 srv1.cs-hosting.nl systemd[1]: Stopped Amavis mail content checker.
Sep 05 18:24:00 srv1.cs-hosting.nl systemd[1]: Starting Amavis mail content checker...
Sep 05 18:24:01 srv1.cs-hosting.nl systemd[1]: Started Amavis mail content checker.
Sep 06 09:44:59 srv1.cs-hosting.nl systemd[1]: Stopping Amavis mail content checker...
Sep 06 09:45:04 srv1.cs-hosting.nl systemd[1]: Stopped Amavis mail content checker.
something is realy fucked up.
Today we have had problems with the use of CPU with the process clamd/amavis, if it serves you I pass this link where I put 3 commands that have solved it and eliminated the use of 100% CPU.
https://www.coriaweb.hosting/clientes/index.php/knowledgebase/33/Amavis-orClamd-esta-utilizando-el-100-de-CPU.html
-
Problem is, when you do a Mail Server Rebuild, it does away with the changes to the config files to activate SpamAssassin.
So your right back to square one.
My mail also got stuck in the queue.
I wound up just disabling SpamAssassin for now.
The server can handle 100% for 1 CPU core.
Another problem I noticed, is last night I did a kernel update and dnf update Amavis as well.
This broke the client from being able to use mail.domaname.com, and had to resort going back to using the hostname for SMTP & IMAP.
He wasn't too happy about that, but at least it working for now.
-
Did those 3 steps, am getting:
** (pkttyagent:9592): WARNING **: 15:47:20.946: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
But clamd CPU did go down.
-
Another problem I noticed, is last night I did a kernel update and dnf update Amavis as well.
This broke the client from being able to use mail.domaname.com, and had to resort going back to using the hostname for SMTP & IMAP.
I reported this to the CWP team two days ago and it is already fixed, they told me that in the next update it will be fixed.
You can fix it this way:
1º Remove all SSL from the domain you have the problem with.
2º Issue the SSL only for the domain ( without marking any other service, mail, webmail, etc...).
3º Issue the SSL for the services ( mail, webmail, etc...).
4º Execute this command through SSH: postmap -F hash:/etc/postfix/vmail_ssl.map
5º Restart Dovecot.
With these steps you should get mail.domain working again
-
Did those 3 steps, am getting:
** (pkttyagent:9592): WARNING **: 15:47:20.946: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
But clamd CPU did go down.
That error should be ignored, anyway if you have already lowered the CPU, is that it is solved.
-
First I had a problem that clamav and amavis had stopped and my mails got stuck in the postfix mail queue. This problem was solved by the mail server rebuilt.
Now my CPU meter keeps ticking 50 percent.
In the top stats, just like yours 100% in use.
I'm not too happy about this.
I reinstall everything and i got an error:
● clamd.service - clamd scanner () daemon
Loaded: loaded (/usr/lib/systemd/system/clamd.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2020-09-06 09:45:12 CEST; 57s ago
Docs: man:clamd(8)
man:clamd.conf(5)
https://www.clamav.net/documents/
Main PID: 22278 (code=exited, status=203/EXEC)
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Started clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service: main process exited, code=exited, status=203/EXEC
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Unit clamd.service entered failed state.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service failed.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service holdoff time over, scheduling restart.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Stopped clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: start request repeated too quickly for clamd.service
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Failed to start clamd scanner () daemon.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: Unit clamd.service entered failed state.
Sep 06 09:45:12 srv1.cs-hosting.nl systemd[1]: clamd.service failed.
amaviaAV:
● amavisd.service - Amavis mail content checker
Loaded: loaded (/usr/lib/systemd/system/amavisd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: http://www.ijs.si/software/amavisd/#doc
Sep 05 18:22:18 srv1.cs-hosting.nl systemd[1]: Starting Amavis mail content checker...
Sep 05 18:22:19 srv1.cs-hosting.nl systemd[1]: Started Amavis mail content checker.
Sep 05 18:23:32 srv1.cs-hosting.nl systemd[1]: Stopping Amavis mail content checker...
Sep 05 18:23:33 srv1.cs-hosting.nl systemd[1]: Stopped Amavis mail content checker.
Sep 05 18:24:00 srv1.cs-hosting.nl systemd[1]: Starting Amavis mail content checker...
Sep 05 18:24:01 srv1.cs-hosting.nl systemd[1]: Started Amavis mail content checker.
Sep 06 09:44:59 srv1.cs-hosting.nl systemd[1]: Stopping Amavis mail content checker...
Sep 06 09:45:04 srv1.cs-hosting.nl systemd[1]: Stopped Amavis mail content checker.
something is realy fucked up.
Today we have had problems with the use of CPU with the process clamd/amavis, if it serves you I pass this link where I put 3 commands that have solved it and eliminated the use of 100% CPU.
https://www.coriaweb.hosting/clientes/index.php/knowledgebase/33/Amavis-orClamd-esta-utilizando-el-100-de-CPU.html
????
-
Followed the Wiki at http://wiki.centos-webpanel.com/how-to-configure-spamassassin
Thought when you rebuilt the Email Server and had this option checked, it enabled it.
But apparently it doesn't, since all the line listed in the Wiki are missing.
After Enabling now though, CPU usable is at 100% for spamd
33279 root 20 0 185136 74772 8532 R 100.0 0.9 0:01.48 spamd
Does the Wiki have to still be done for CWPpro 0.9.8.1006?
Or am I missing something?
??????
-
Wel.. the high performance is gone.
Another problem: clamAV, and Amavis not starting when i reboot the server.
Need to manual start everything.
-
Wel.. the high performance is gone.
Another problem: clamAV, and Amavis not starting when i reboot the server.
Need to manual start everything.
Has high productivity not disappeared for me?
-
Wel.. the high performance is gone.
Another problem: clamAV, and Amavis not starting when i reboot the server.
Need to manual start everything.
Look under Services Config -> Startup Services
By Default they are set to Disabled, and you have to change them to Enabled.
-
High productivity has not disappeared for me?
-
Today we have had problems with the use of CPU with the process clamd/amavis, if it serves you I pass this link where I put 3 commands that have solved it and eliminated the use of 100% CPU.
https://www.coriaweb.hosting/clientes/index.php/knowledgebase/33/Amavis-orClamd-esta-utilizando-el-100-de-CPU.html
I am still having this problem.
I did try the solutions but it doesn't work. It's starting again after a while.
Any solution?
https://prnt.sc/uj47u6
-
Still do intermittently as always.
It's really noticeable if you only have 1 CPU, if you have 4+ then 1 CPU maxing out doesn't affect much.
-
Can you try to execute this command? Sometimes it solves it.
sh /scripts/clamd_fix_100_cpu_usage
-
Can you try to execute this command? Sometimes it solves it.
sh /scripts/clamd_fix_100_cpu_usage
The problem continues
-
CONTROL WEB PANEL »WEBPANEL »CENTOS-WEBPANEL BUGS »CPU 100% CLAMD
https://forum.centos-webpanel.com/index.php?topic=4426.15
-
Guys, I tried all methods but none of them work.
The problem is starting again after a while.
This is really a bad situation.
Any suggestions for solution?
-
High productivity has not disappeared for me?
-
High productivity has not disappeared for me?
How many CPU's and RAM does the box have?
-
High productivity has not disappeared for me?
How many CPU's and RAM does the box have?
2 x CPU Model: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
CPU Details: 8 Core (2933 MHz)
RAM - 28 GB
-
That definitely should be enough.
Usually clam has a problem with a single CPU and 1-2GB of RAM
-
That definitely should be enough.
Usually clam has a problem with a single CPU and 1-2GB of RAM
High productivity has not disappeared for me?
-
What happens when you run: sh /scripts/clamd_fix_100_cpu_usage
Usually that takes care of the problem, but only pops back up after a server reboot.
-
Of what happens and why? and is there a lasting solution ...?
-
I'm guessing its a bug in clamav and/or spamassassin with a cpu/memory leak.
On CentOS 7 I ran: clamscan --version
And got the current version (ClamAV 0.102.4) in the epel repo.
On a server I don't have spamassassin running, just ClamAV there isn't a problem.
-
Pls, help....?!?
-
I have already provided the best solution in this forum.
ClamAV/clamd has been problematic for over a decade, including on other control panels.
As Windoze lusers (clients) should be running their own anti-virus software, it really is only optional to use it on a server.
The key fault/issue with CWP is that it doesn't separate SpamAssassin from clamAV/clamd.
On 1GB RAM VPS, I manually disable clamd/clamAV
systemctl stop clamd
systemctl disable clamd
For a smoother experience and in other cases, apply my research & tested 'fix', mentioned elsewhere. I can lead a horse to water..
http://forum.centos-webpanel.com/index.php?topic=4426.msg31152#msg31152
-
the best is to contact cwp support to check the case on your server
-
Hi,
again, today I updated the clam and regarding the same problem...
Pls, help...
thanks in advance!
BR
Venty