How To Install sagator-core on CentOS 8

sagator-core is Antivirus/anti-spam gateway for smtp server, core files

Introduction

In this tutorial we learn how to install sagator-core on CentOS 8.

What is sagator-core

SAGATOR’s core files. You can use this package separatelly, if you do not to depend on other software, required by sagator.

We can use yum or dnf to install sagator-core on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install sagator-core.

Install sagator-core on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install sagator-core using dnf by running the following command:

sudo dnf -y install sagator-core

Install sagator-core on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install sagator-core using yum by running the following command:

sudo yum -y install sagator-core

How To Uninstall sagator-core on CentOS 8

To uninstall only the sagator-core package we can use the following command:

sudo dnf remove sagator-core

sagator-core Package Contents on CentOS 8

/etc/cron.d/sagator
/etc/httpd/conf.d/sagator.conf
/etc/logrotate.d/sagator
/etc/mrtg/sagator.cfg
/etc/sagator.conf
/etc/sysconfig/sagator
/usr/bin/sgfilter
/usr/bin/sgscan
/usr/lib/systemd/system/sagator.service
/usr/sbin/mkchroot.sagator
/usr/sbin/sagator
/usr/sbin/sqback
/usr/share/doc/sagator-core
/usr/share/doc/sagator-core/COPYING
/usr/share/doc/sagator-core/ChangeLog
/usr/share/doc/sagator-core/Databases.html
/usr/share/doc/sagator-core/Databases.txt
/usr/share/doc/sagator-core/FAQ
/usr/share/doc/sagator-core/Index.html
/usr/share/doc/sagator-core/README
/usr/share/doc/sagator-core/Scanners.html
/usr/share/doc/sagator-core/Scanners.txt
/usr/share/doc/sagator-core/Services.html
/usr/share/doc/sagator-core/Services.txt
/usr/share/doc/sagator-core/TODO
/usr/share/doc/sagator-core/analyzer.py
/usr/share/doc/sagator-core/configure_postfix.sh
/usr/share/doc/sagator-core/graphs
/usr/share/doc/sagator-core/graphs/mrtg-index.html
/usr/share/doc/sagator-core/graphs/mrtg.cfg
/usr/share/doc/sagator-core/graphs/rrdtool-index.html
/usr/share/doc/sagator-core/graphs/tg
/usr/share/doc/sagator-core/graphs/tg/index.html
/usr/share/doc/sagator-core/sagator.html
/usr/share/doc/sagator-core/sgfilter.html
/usr/share/doc/sagator-core/sgscan.html
/usr/share/doc/sagator-core/sqback.html
/usr/share/doc/sagator-core/test
/usr/share/doc/sagator-core/test/bigtest
/usr/share/doc/sagator-core/test/clean
/usr/share/doc/sagator-core/test/download_viruses.sh
/usr/share/doc/sagator-core/test/mimeattach.py
/usr/share/doc/sagator-core/test/pattern
/usr/share/doc/sagator-core/test/smtptest.py
/usr/share/doc/sagator-core/test/spam
/usr/share/doc/sagator-core/unconfigure_postfix.sh
/usr/share/logwatch/dist.conf/logfiles/sagator.conf
/usr/share/logwatch/dist.conf/services/sagator.conf
/usr/share/logwatch/scripts/services/sagator
/usr/share/man/man1/sgfilter.1.gz
/usr/share/man/man1/sgscan.1.gz
/usr/share/man/man8/sagator.8.gz
/usr/share/man/man8/sqback.8.gz
/usr/share/sagator
/usr/share/sagator/__init__.py
/usr/share/sagator/aglib.py
/usr/share/sagator/aspam
/usr/share/sagator/aspam/__init__.py
/usr/share/sagator/aspam/__pycache__
/usr/share/sagator/aspam/__pycache__/__init__.cpython-36.pyc
/usr/share/sagator/aspam/__pycache__/__init__.cpython-39.pyc
/usr/share/sagator/aspam/__pycache__/bogofilter.cpython-36.pyc
/usr/share/sagator/aspam/__pycache__/bogofilter.cpython-39.pyc
/usr/share/sagator/aspam/__pycache__/dspam.cpython-36.pyc
/usr/share/sagator/aspam/__pycache__/dspam.cpython-39.pyc
/usr/share/sagator/aspam/__pycache__/qsf.cpython-36.pyc
/usr/share/sagator/aspam/__pycache__/qsf.cpython-39.pyc
/usr/share/sagator/aspam/__pycache__/spamassassin.cpython-36.pyc
/usr/share/sagator/aspam/__pycache__/spamassassin.cpython-39.pyc
/usr/share/sagator/aspam/bogofilter.py
/usr/share/sagator/aspam/dspam.py
/usr/share/sagator/aspam/pydspam
/usr/share/sagator/aspam/pydspam/__init__.py
/usr/share/sagator/aspam/pydspam/__pycache__
/usr/share/sagator/aspam/pydspam/__pycache__/__init__.cpython-36.pyc
/usr/share/sagator/aspam/pydspam/__pycache__/__init__.cpython-39.pyc
/usr/share/sagator/aspam/pydspam/__pycache__/const.cpython-36.pyc
/usr/share/sagator/aspam/pydspam/__pycache__/const.cpython-39.pyc
/usr/share/sagator/aspam/pydspam/__pycache__/example.cpython-36.pyc
/usr/share/sagator/aspam/pydspam/__pycache__/getconst.cpython-36.pyc
/usr/share/sagator/aspam/pydspam/const.py
/usr/share/sagator/aspam/pydspam/example.py
/usr/share/sagator/aspam/pydspam/getconst.py
/usr/share/sagator/aspam/qsf.py
/usr/share/sagator/aspam/spamassassin.py
/usr/share/sagator/avir
/usr/share/sagator/avir/__init__.py
/usr/share/sagator/avir/__pycache__
/usr/share/sagator/avir/__pycache__/__init__.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/__init__.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/avg.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/avg.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/basic.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/basic.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/bdc.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/bdc.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/clamav.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/clamav.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/cmd.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/cmd.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/example.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/filesys.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/filesys.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/filter.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/filter.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/icap.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/icap.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/kav.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/kav.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/nod.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/nod.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/quota.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/quota.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/sanitize.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/sanitize.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/scanc.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/scanc.cpython-39.pyc
/usr/share/sagator/avir/__pycache__/sophie.cpython-36.pyc
/usr/share/sagator/avir/__pycache__/sophie.cpython-39.pyc
/usr/share/sagator/avir/avg.py
/usr/share/sagator/avir/basic.py
/usr/share/sagator/avir/bdc.py
/usr/share/sagator/avir/clamav.py
/usr/share/sagator/avir/cmd.py
/usr/share/sagator/avir/example.py
/usr/share/sagator/avir/filesys.py
/usr/share/sagator/avir/filter.py
/usr/share/sagator/avir/icap.py
/usr/share/sagator/avir/kav.py
/usr/share/sagator/avir/libclamav
/usr/share/sagator/avir/libclamav/__init__.py
/usr/share/sagator/avir/libclamav/__pycache__
/usr/share/sagator/avir/libclamav/__pycache__/__init__.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/__init__.cpython-39.pyc
/usr/share/sagator/avir/libclamav/__pycache__/const.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/const6.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/example.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/getconst.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/libso6.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/libso9.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/shared.cpython-36.pyc
/usr/share/sagator/avir/libclamav/__pycache__/shared.cpython-39.pyc
/usr/share/sagator/avir/libclamav/const.py
/usr/share/sagator/avir/libclamav/const6.py
/usr/share/sagator/avir/libclamav/example.py
/usr/share/sagator/avir/libclamav/getconst.py
/usr/share/sagator/avir/libclamav/libso6.py
/usr/share/sagator/avir/libclamav/libso9.py
/usr/share/sagator/avir/libclamav/shared.py
/usr/share/sagator/avir/nod.py
/usr/share/sagator/avir/quota.py
/usr/share/sagator/avir/sanitize.py
/usr/share/sagator/avir/scanc.py
/usr/share/sagator/avir/sophie.py
/usr/share/sagator/avlib.py
/usr/share/sagator/db
/usr/share/sagator/db.py
/usr/share/sagator/db/mysql.sh
/usr/share/sagator/db/pgsql.sh
/usr/share/sagator/db/sqlite.sh
/usr/share/sagator/dbcleanup.py
/usr/share/sagator/etc
/usr/share/sagator/etc/__init__.py
/usr/share/sagator/etc/dspam_classify.py
/usr/share/sagator/etc/sgconf.py
/usr/share/sagator/filetype.py
/usr/share/sagator/interscan
/usr/share/sagator/interscan/__init__.py
/usr/share/sagator/interscan/__pycache__
/usr/share/sagator/interscan/__pycache__/__init__.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/__init__.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/actions.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/actions.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/cache.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/cache.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/condition.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/condition.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/decompress.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/decompress.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/file.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/file.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/header.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/header.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/logger.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/logger.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/match.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/match.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/parsemail.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/parsemail.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/policy.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/policy.cpython-39.pyc
/usr/share/sagator/interscan/__pycache__/report.cpython-36.pyc
/usr/share/sagator/interscan/__pycache__/report.cpython-39.pyc
/usr/share/sagator/interscan/actions.py
/usr/share/sagator/interscan/cache.py
/usr/share/sagator/interscan/condition.py
/usr/share/sagator/interscan/decompress.py
/usr/share/sagator/interscan/file.py
/usr/share/sagator/interscan/header.py
/usr/share/sagator/interscan/logger.py
/usr/share/sagator/interscan/match.py
/usr/share/sagator/interscan/parsemail.py
/usr/share/sagator/interscan/policy.py
/usr/share/sagator/interscan/report.py
/usr/share/sagator/reporter.py
/usr/share/sagator/sagator.py
/usr/share/sagator/scand.py
/usr/share/sagator/scanners.py
/usr/share/sagator/sgfilter.py
/usr/share/sagator/sgscan.py
/usr/share/sagator/sqback.py
/usr/share/sagator/srv
/usr/share/sagator/srv/__init__.py
/usr/share/sagator/srv/__pycache__
/usr/share/sagator/srv/__pycache__/__init__.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/__init__.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/collector.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/collector.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/daemon.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/daemon.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/example.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/filters.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/filters.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/fusefs.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/fusefs.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/lmtpd.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/lmtpd.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/milter.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/milter.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/policy.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/policy.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/proxy.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/proxy.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/reporter.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/reporter.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/rlimit.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/rlimit.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/smtpd.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/smtpd.cpython-39.pyc
/usr/share/sagator/srv/__pycache__/webq.cpython-36.pyc
/usr/share/sagator/srv/__pycache__/webq.cpython-39.pyc
/usr/share/sagator/srv/collector.py
/usr/share/sagator/srv/daemon.py
/usr/share/sagator/srv/example.py
/usr/share/sagator/srv/filters.py
/usr/share/sagator/srv/fusefs.py
/usr/share/sagator/srv/lmtpd.py
/usr/share/sagator/srv/milter.py
/usr/share/sagator/srv/policy.py
/usr/share/sagator/srv/proxy.py
/usr/share/sagator/srv/reporter.py
/usr/share/sagator/srv/rlimit.py
/usr/share/sagator/srv/smtpd.py
/usr/share/sagator/srv/webq.py
/usr/share/sagator/stats.py
/usr/share/sagator/updatecfg.py
/usr/share/sagator/utest.py
/usr/share/sagator/version.py
/var/spool/vscan
/var/spool/vscan/tmp
/var/spool/vscan/tmp/quarantine
/var/www/html/sagator
/var/www/html/sagator/index.html

References

Summary

In this tutorial we learn how to install sagator-core on CentOS 8 using yum and dnf.