How To Install opendmarc on CentOS 8

opendmarc is A Domain-based Message Authentication, Reporting & Conformance (DMARC) milter and library

Introduction

In this tutorial we learn how to install opendmarc on CentOS 8.

What is opendmarc

OpenDMARC (Domain-based Message Authentication, Reporting & Conformance) provides an open source library that implements the DMARC verification service plus a milter-based filter application that can plug in to any milter-aware MTA, including sendmail, Postfix, or any other MTA that supports the milter protocol. The DMARC sender authentication system is still a draft standard, working towards RFC status. The database schema required for some functions is provided in /usr/share/opendmarc/db. The rddmarc tools are provided in /usr/share/opendmarc/contrib/rddmarc.

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

Install opendmarc 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 opendmarc using dnf by running the following command:

sudo dnf -y install opendmarc

Install opendmarc 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 opendmarc using yum by running the following command:

sudo yum -y install opendmarc

How To Uninstall opendmarc on CentOS 8

To uninstall only the opendmarc package we can use the following command:

sudo dnf remove opendmarc

opendmarc Package Contents on CentOS 8

/etc/opendmarc
/etc/opendmarc.conf
/etc/sysconfig/opendmarc
/etc/tmpfiles.d/opendmarc.conf
/run/opendmarc
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/783f3ed1ee4e94b49c7f945dcde2ba5615d361
/usr/lib/.build-id/51
/usr/lib/.build-id/51/d61a09f055ba9ee1a65b306a1df89fa8021b19
/usr/lib/systemd/system/opendmarc.service
/usr/sbin/opendmarc
/usr/sbin/opendmarc-check
/usr/sbin/opendmarc-expire
/usr/sbin/opendmarc-import
/usr/sbin/opendmarc-importstats
/usr/sbin/opendmarc-params
/usr/sbin/opendmarc-reports
/usr/share/doc/opendmarc
/usr/share/doc/opendmarc/README
/usr/share/doc/opendmarc/RELEASE_NOTES
/usr/share/licenses/opendmarc
/usr/share/licenses/opendmarc/LICENSE
/usr/share/licenses/opendmarc/LICENSE.Sendmail
/usr/share/man/man5/opendmarc.conf.5.gz
/usr/share/man/man8/opendmarc-check.8.gz
/usr/share/man/man8/opendmarc-expire.8.gz
/usr/share/man/man8/opendmarc-import.8.gz
/usr/share/man/man8/opendmarc-importstats.8.gz
/usr/share/man/man8/opendmarc-params.8.gz
/usr/share/man/man8/opendmarc-reports.8.gz
/usr/share/man/man8/opendmarc.8.gz
/usr/share/opendmarc
/usr/share/opendmarc/contrib
/usr/share/opendmarc/contrib/rddmarc
/usr/share/opendmarc/contrib/rddmarc/README.rddmarc
/usr/share/opendmarc/contrib/rddmarc/dmarcfail.py
/usr/share/opendmarc/contrib/rddmarc/mkdmarc
/usr/share/opendmarc/contrib/rddmarc/mysql_ip6.c
/usr/share/opendmarc/contrib/rddmarc/rddmarc
/usr/share/opendmarc/db
/usr/share/opendmarc/db/README.schema
/usr/share/opendmarc/db/schema.mysql
/var/spool/opendmarc

References

Summary

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