Bobcares

ClamAV Postfix – how we install it

by | Dec 10, 2019

Are you trying to install Antivirus ClamAV Postfix? We can help you.

ClamAV is an anti-virus software that scans and detects any viruses.

Here at Bobcares, we often receive requests to enable ClamAV and fix its errors as a part of our Server Management Services.

Today, let’s see how our Support Engineers enable ClamAV and fix its errors.

 

More about ClamAV Postfix

ClamAV is mainly designed to scan the files in the server. It detects viruses and any malicious contents from the emails and files in the server.

It also scans the archive files, zip files and many more.

ClamAV integrated with Postfix will scan all the emails on the server.

Now, let’s see how our Support Engineers install ClamAV.

 

How we install ClamAV Postfix

Here is the simple installation steps for ClamAV in Postfix in Ubuntu that our Support Engineers follow.

1. Initially, we run the below command to download and install ClamAV.

apt-get install clamav clamsmtp clamav-freshclam

2. Next, we edit the configuration file /etc/clamsmtpd.conf. Here, we update the below lines from

OutAddress: 10025
Listen: 1xx.x.x.1:10026

to

OutAddress: 10026
Listen: 1xx.x.x.1:10025

3. Then, we edit the postfix configuration file /etc/postfix/main.cf and add the below contents

content_filter = scan:1xx.x.x.1:10025
receive_override_options = no_address_mappings

4. Also, we edit the /etc/postfix/master.cf file and add the below contents

# AV scan filter (used by content_filter)
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
# For injecting mail back into postfix from the filter
1xx.x.x.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=1xx.x.x.0/8

5. Lastly, we restart postfix, ClamAV-daemon, and clamsmtp.

Finally, we have configured ClamAV.

 

How we fix ClamAV errors?

Having a decade of experience in managing servers, our Dedicated Engineers are familiar with the ClamAV errors. Now, let’s discuss how our Support Engineers fix this error.

Recently, one of our customers approached us with the below error message.

ClamAV Postfix

Our Support Engineers started troubleshooting the error and then tried upgrading the ClamAV package. And then restarted clamd and postfix service.

Finally, this fixed the error.

 

[Need any assistance in fixing ClamAV errors? – We’ll help you]

 

Conclusion

In short, the ClamAV is mainly used to secure email services. Today, we saw how our Support Engineers install ClamAV and fix its errors.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.