How To Install mimedefang on Fedora 36

In this tutorial we learn how to install mimedefang in Fedora 36. mimedefang is E-Mail filtering framework using Sendmail’s Milter interface

Introduction

In this tutorial we learn how to install mimedefang on Fedora 36.

What is mimedefang

MIMEDefang is an e-mail filter program which works with Sendmail 8.12 and later. It filters all e-mail messages sent via SMTP. MIMEDefang splits multi-part MIME messages into their components and potentially deletes or modifies the various parts. It then reassembles the parts back into an e-mail message and sends it on its way. There are some caveats you should be aware of before using MIMEDefang. MIMEDefang potentially alters e-mail messages. This breaks a “gentleman’s agreement” that mail transfer agents do not modify message bodies. This could cause problems, for example, with encrypted or signed messages.

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

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

sudo dnf -y install mimedefang

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

sudo yum -y install mimedefang

How To Uninstall mimedefang on Fedora 36

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

sudo dnf remove mimedefang

mimedefang Package Contents on Fedora 36

/etc/logrotate.d/mimedefang
/etc/mail/mimedefang-filter
/etc/mail/mimedefang-ip-key
/etc/mail/sa-mimedefang.cf
/etc/sysconfig/mimedefang
/usr/bin/gen-ip-validator.pl
/usr/bin/md-mx-ctrl
/usr/bin/mimedefang
/usr/bin/mimedefang-multiplexor
/usr/bin/mimedefang-util
/usr/bin/mimedefang.pl
/usr/bin/watch-mimedefang
/usr/bin/watch-multiple-mimedefangs.tcl
/usr/lib/.build-id
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/11ae6a5fd39c238bc82da1b5d172ffdfffc794
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/d8950af871294a80b8e011a03304e658d15da9
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/87f517856a06d315a1ecaab8354bf8ff327f59
/usr/lib/systemd/system/mimedefang-multiplexor.service
/usr/lib/systemd/system/mimedefang.service
/usr/lib/tmpfiles.d/mimedefang.conf
/usr/libexec/mimedefang-wrapper
/usr/share/doc/mimedefang
/usr/share/doc/mimedefang/Changelog
/usr/share/doc/mimedefang/README.FEDORA
/usr/share/doc/mimedefang/README.NONROOT
/usr/share/doc/mimedefang/README.SECURITY
/usr/share/doc/mimedefang/README.SOPHIE
/usr/share/doc/mimedefang/README.SPAMASSASSIN
/usr/share/doc/mimedefang/README.md
/usr/share/doc/mimedefang/fang.pl
/usr/share/doc/mimedefang/linuxorg
/usr/share/doc/mimedefang/linuxorg/README
/usr/share/doc/mimedefang/linuxorg/filter
/usr/share/doc/mimedefang/linuxorg/spam-deliver
/usr/share/doc/mimedefang/linuxorg/spam-trusted-hosts
/usr/share/doc/mimedefang/stream-by-domain-filter
/usr/share/doc/mimedefang/suggested-minimum-filter-for-windows-clients
/usr/share/doc/mimedefang/word-to-html
/usr/share/licenses/mimedefang
/usr/share/licenses/mimedefang/LICENSE
/usr/share/man/man1/mimedefang-util.1.gz
/usr/share/man/man5/mimedefang-filter.5.gz
/usr/share/man/man7/mimedefang-notify.7.gz
/usr/share/man/man7/mimedefang-protocol.7.gz
/usr/share/man/man8/md-mx-ctrl.8.gz
/usr/share/man/man8/mimedefang-multiplexor.8.gz
/usr/share/man/man8/mimedefang.8.gz
/usr/share/man/man8/mimedefang.pl.8.gz
/usr/share/man/man8/watch-mimedefang.8.gz
/usr/share/man/man8/watch-multiple-mimedefangs.8.gz
/var/log/mimedefang
/var/spool/MD-Quarantine
/var/spool/MIMEDefang

References

Summary

In this tutorial we learn how to install mimedefang on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).