New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Rebuilding e-mail

Started by bugged, February 18, 2017, 09:17:41 AM

Previous topic - Next topic

bugged

Rebuilding E-Mail on Centos 7. How to fix error with "CLAMD"?

Loaded plugins: fastestmirror
No Packages marked for removal
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.supportex.net
* epel: mirror.nl.leaseweb.net
* extras: mirror.netrouting.net
* updates: centos.mirror.triple-it.nl
No package clamd available.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.supportex.net
* epel: mirror.nl.leaseweb.net
* extras: mirror.netrouting.net
* updates: centos.mirror.triple-it.nl
Package opendkim-2.11.0-0.1.el7.x86_64 already installed and latest version
Package libopendkim-2.11.0-0.1.el7.x86_64 already installed and latest version
Package perl-Mail-DKIM-0.39-8.el7.noarch already installed and latest version
Package perl-Mail-SPF-2.8.0-4.el7.noarch already installed and latest version
Package pypolicyd-spf-1.3.2-1.el7.noarch already installed and latest version
No package clamd available.
Nothing to do
Configuring...
Something wrong in Postfix, check log files please...

KNERD

Clam is not in the CentOS base repos, thus you will have to use an additional such as EPEL.

Sandeep

try this command :
yum install epel-release
yum clean all

then try to install clamd again

6Sense

I can confirm this bug & see the same 'Something wrong in postfix' error when I rebuild mail server.

I followed your steps Sandeep & unfortunately still received the same error message (pasted below) when rebuilding the mail server.

Loaded plugins: fastestmirror
No Packages marked for removal
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.linuxfix.com
* epel: mirror.sfo12.us.leaseweb.net
* extras: mirror.linuxfix.com
* updates: mirror.linuxfix.com
No package clamd available.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.linuxfix.com
* epel: mirror.sfo12.us.leaseweb.net
* extras: mirror.linuxfix.com
* updates: mirror.linuxfix.com
Package opendkim-2.11.0-0.1.el7.x86_64 already installed and latest version
Package libopendkim-2.11.0-0.1.el7.x86_64 already installed and latest version
Package perl-Mail-DKIM-0.39-8.el7.noarch already installed and latest version
Package perl-Mail-SPF-2.8.0-4.el7.noarch already installed and latest version
Package pypolicyd-spf-1.3.2-1.el7.noarch already installed and latest version
No package clamd available.
Nothing to do
Configuring...
Something wrong in Postfix, check log files please...

6Sense - Web Design, Development & Web Hosting

n1kko

I get the same error when rebuilding mail "Something wrong in Postfix, check log files please..."
but email seems to function without any issues.

martexx

please follow this:


The EPEL (Extra Packages for Enterprise Linux) yum repository is an excellent source for additional packages for CentOS. Instead of having to compile applications that aren't included in CentOS' built-in repositories from source, EPEL can be used.

# Install/enable the EPEL repo:

yum install epel-release -y



# Install required ClamAV packages

yum install clamav clamd

#Start the clamd service and set it to auto-start

/etc/init.d/clamd on

chkconfig clamd on

/etc/init.d/clamd start

6Sense

I tried your suggestion but no luck I'm afraid. A rebuild of Postfix gives same message 'Something wrong in postfix'. Reminds me of the Windows 10 roll out bug 'Something went wrong' lol.

[root@mail ~]# yum install epel-release -y
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00
cwp                                                      | 2.9 kB     00:00
extras                                                   | 3.4 kB     00:00
mariadb                                                  | 2.9 kB     00:00
updates                                                  | 3.4 kB     00:00
Loading mirror speeds from cached hostfile
* base: centos.sonn.com
* extras: centos.sonn.com
* updates: centos.sonn.com
Package epel-release-7-9.noarch already installed and latest version
Nothing to do
[root@mail ~]# yum install clamav clamd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.sonn.com
* extras: centos.sonn.com
* updates: centos.sonn.com
No package clamd available.
Nothing to do
6Sense - Web Design, Development & Web Hosting

martexx

Quote from: 6Sense on February 28, 2017, 01:27:50 PM
I tried your suggestion but no luck I'm afraid. A rebuild of Postfix gives same message 'Something wrong in postfix'. Reminds me of the Windows 10 roll out bug 'Something went wrong' lol.

[root@mail ~]# yum install epel-release -y
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00
cwp                                                      | 2.9 kB     00:00
extras                                                   | 3.4 kB     00:00
mariadb                                                  | 2.9 kB     00:00
updates                                                  | 3.4 kB     00:00
Loading mirror speeds from cached hostfile
* base: centos.sonn.com
* extras: centos.sonn.com
* updates: centos.sonn.com
Package epel-release-7-9.noarch already installed and latest version
Nothing to do
[root@mail ~]# yum install clamav clamd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.sonn.com
* extras: centos.sonn.com
* updates: centos.sonn.com
No package clamd available.
Nothing to do


Open /etc/yum.repos.d/epel.repo and set any instance of 'enabled=0' to 'enabled=1'

then

yum update

and then install again

6Sense

Thanks for your help, I changed all enabled from 0s to 1' (was 3 of them). I repeated install but received the same output.

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.fileplanet.com
* epel: mirror.sfo12.us.leaseweb.net
* epel-debuginfo: mirror.sfo12.us.leaseweb.net
* epel-source: mirror.sfo12.us.leaseweb.net
* extras: mirror.fileplanet.com
* updates: mirror.fileplanet.com
Package clamav-0.99.2-1.el7.x86_64 already installed and latest version
No package clamd available.
Nothing to do

Cross fingers a CWP magically fixes it  :)
6Sense - Web Design, Development & Web Hosting

martexx

its not a cwp error )))

u must be doing smth wrong, if u want i can check it out for you tomorow by logging in to your box
or u can pay for support

or u can do
http://blog.shineservers.com/install-clamav-configure-daily-scanning-centos/
and keep trying

6Sense

Thanks mate.

I'll keep up the trouble shooting and see if I can't pin point the pain point.

:)
6Sense - Web Design, Development & Web Hosting