How To Install mimedefang on Fedora 34

mimedefang is E-Mail filtering framework using Sendmail’s Milter interface

Introduction

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

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 34. In this tutorial we discuss both methods but you only need to choose one of method to install mimedefang.

Install mimedefang on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install mimedefang

Install mimedefang on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove mimedefang

mimedefang Package Contents on Fedora 34

/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/65
/usr/lib/.build-id/65/03d6eb18fd987e0fef8371086c81b0a634a7e6
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/eef5229ecba036d249e868a17da40d1be55128
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/59e285afd0e64c6e37151417dd2c2d968c36de
/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
/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.VEXIRA
/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/COPYING
/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 34 using yum and dnf.