How To Install clamsmtp on Fedora 36
Introduction
In this tutorial we learn how to install clamsmtp
on Fedora 36.
What is clamsmtp
ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software. It accepts SMTP connections and forwards the SMTP commands and responses to another SMTP server. The ‘DATA’ email body is intercepted and scanned before forwarding. It aims to be lightweight, reliable, and simple rather than have a myriad of options. It’s written in C without major dependencies. If you need more options then you could use something big like AMaViS which is written in PERL and can do almost anything. Written with the Postfix mail server in mind it can be configured as a Postfix Content Filter. It can also be used as a transparent proxy to filter an entire network’s SMTP traffic at the router.
We can use yum
or dnf
to install clamsmtp
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install clamsmtp.
Install clamsmtp on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install clamsmtp
using dnf
by running the following command:
sudo dnf -y install clamsmtp
Install clamsmtp on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install clamsmtp
using yum
by running the following command:
sudo yum -y install clamsmtp
How To Uninstall clamsmtp on Fedora 36
To uninstall only the clamsmtp
package we can use the following command:
sudo dnf remove clamsmtp
clamsmtp Package Contents on Fedora 36
/etc/clamd.d/clamsmtp.conf
/etc/clamsmtpd.conf
/etc/logrotate.d/clamsmtp
/usr/lib/.build-id
/usr/lib/.build-id/95
/usr/lib/.build-id/95/ac7768a6780ea8a94cdd2e4f412373035b8dec
/usr/lib/systemd/system/clamsmtp-clamd.service
/usr/lib/systemd/system/clamsmtpd.service
/usr/lib/tmpfiles.d/clamsmtp.conf
/usr/sbin/clamsmtpd
/usr/share/doc/clamsmtp
/usr/share/doc/clamsmtp/AUTHORS
/usr/share/doc/clamsmtp/README
/usr/share/licenses/clamsmtp
/usr/share/licenses/clamsmtp/COPYING
/usr/share/man/man5/clamsmtpd.conf.5.gz
/usr/share/man/man8/clamsmtpd.8.gz
/var/lib/clamd.clamsmtp
/var/log/clamd.clamsmtp
/var/run/clamd.clamsmtp
/var/run/clamsmtpd
References
Summary
In this tutorial we learn how to install clamsmtp
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).