How To Install mimedefang on CentOS 7
Introduction
In this tutorial we learn how to install mimedefang
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install mimedefang.
Install mimedefang on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install mimedefang
using yum
by running the following command:
sudo yum -y install mimedefang
Install mimedefang on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install mimedefang
using dnf
by running the following command:
sudo dnf -y install mimedefang
How To Uninstall mimedefang on CentOS 7
To uninstall only the mimedefang
package we can use the following command:
sudo dnf remove mimedefang
References
Summary
In this tutorial we learn how to install mimedefang
on CentOS 7 using yum
and dnf
.