• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Looking for : ClamAV installation - step by step

MartinB

Basic Pleskian
Hello !

I'm searching with Google, but not find the right ones ... :(

So, is here someone, who can explain me the installation of ClamAV
under Plesk Onyx 17 / 17.5 , step-by-step, please ... :D


Thanks a lot !!!

Bye, Martin
 
@Linulex

Thanks for your tip ...
... I've found this site, too, but :

- it's not the newest one, because "libclamav6" is old, "libclamav7" is the new one :rolleyes:
- after the installation ( I made all steps in the tutorial ), I could not send any mail ! :mad:

Now, my server is fresh installed with Ubuntu 16.04.2 ... starting a new
Plesk Onyx 17.5 installation ... ;)

Bye, Martin
 
@danami

Yes, I know your products, but for me, as a private user ( just for fun ), I only have 3 domains ... :)
... your product is ( cheapest way ) up to 10 domains ! ;)

Some days ago, I asked your support for a lower priced option, there is no one ... :(

Bye, Martin
 
Hi MartinB,

to investigate issues/errors/problems like described by you as
I could not send any mail !
... people willing to help you are a bit lost here, due to the fact that we might only guess a root cause ( while "guessing" might not at all point to the root cause at all ). Consider to post some configuration files and log - files, so we could at least start somewhere with investigations. ;)



Apart from the ClamAV - version ( which certainly should be replaced with an actual version ), the mentioned article from @Lloyd_mcse is a perfect tutorial. :) Still, I would recommend some additional steps:

After the removal of "DrWeb", pls. consider to use:
Code:
plesk repair mail -y -v

or

/usr/local/psa/admin/sbin/mchk --without-spam
Pls. make sure to remove as well the corresponding DrWeb - cronjobs:
Code:
rm -rf /var/spool/cron/drweb
rm -rf /etc/cron.daily/drweb-update
It is as well recommended to remove the monitoring of the DrWeb - service, when you use watchdog on your server:
Code:
/usr/local/psa/admin/bin/modules/watchdog/wd --unmonit-service=drweb
 
For the centos ppl:

I have tested it today with this one

CentOS 6 - MAIL Server - Postfix + Clamav : Server World

only a few minor changes:
- i used an existing clamav (was already on the server for maldetect)
- you need to edit /etc/clamsmtpd.conf to reflect the correct user and socket if you use an existing clamav
- make sure you use a tmp dir clamav can access
- entered the /etc/postfix/master.cf text at the start, before the domainlines added by plesk

- i only start clamsmtp
- i dont start clamsmtp-clamd

hope this helps a few ppl.

Regards
Jan
 
Hello,

i installed today with the provided link of Jan, and it works. One question regarding the Postfix Config:


[root@mail ~]#
vi /etc/postfix/main.cf
# add follows to the end

content_filter = scan:127.0.0.1:10025
[root@mail ~]#
vi /etc/postfix/master.cf
# add follows to the end

scan unix - - n - 16 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8


Can i replace here the localhost address with my Server IP Address, and can i change then -o disable_dns_lookups=yes to no ?



Thx
Sally
 
Last edited:
A dns lookup uses resources, why would you want to use resources to hand something between internal programes? Plus, a dns lookup is pretty useless when you work with an ip address.

if you use the server ip address instead of localhost, you need to open those ports in the firewall. Why would you want to open port 10025 and 10026 in the firewall to hand something between internal programes?

regards
Jan
 
I don't suppose anyone can provide guidance on how to use clamAV on a Plesk Onyx, Centos 7.4, with qmail?
Many thanks, -t
 
Back
Top