Wednesday, May 29, 2024
Google search engine
HomeLinux TutorialsHow to install eFa Email Filter

How to install eFa Email Filter

In this guide, I will show you how to install efa email filter with number one OpenSource Spamfilter on your server.

System requirements

The minimum requirements to install eFa are:

CentOS 7 or 8 (minimal install preferred)
2 CPU’s
100GB of hard-drive space (SSD highly preferred)
8GB memory (dedicated)


eFa can be installed with just a single command, make sure you are logged in as root and you have a clean CentOS installation to start with. Then just run the following command:

curl -sSL | bash

This will download all required eFa packages from one of the mirrors and installs eFa on your system, depending on the speed of your system installation can take between 10 to 30 minutes, after a reboot you are good to go.

Alternative Install Methods

Piping to bash might not be your preferred installation method as it prevents you from reading the code that is about to run on your system. Therefore you can use the following alternative to inspect the code before installation:

wget -O build.bash

Inspect the code if needed, then to install the system run:

sudo bash build.bash


Sometimes you must add PUBLIC KEY from efa manually like this below

rpm --import


When booting up the system for the first time you will be presented with a login screen on the console.
How to install eFa Email Filter

Hit [Y] and press [Enter] key to continue.

How to install eFa Email Filter 6

How to install eFa Email Filter 7

How to install eFa Email Filter 8

How to install eFa Email Filter 9

How to install eFa Email Filter 10

How to install eFa Email Filter 11

How to install eFa Email Filter 12

How to install eFa Email Filter 13

When the configuration is finished the system will reboot and will be ready to go. When you logon using SSH with the user you created during the initial setup you will be presented with EFA-Configure, a menu-driven shell that makes it easier to do common tasks.

How to install eFa Email Filter 15

Post configuration

Open postfix configuration file.

nano /etc/postfix/

and edit

mynetworks – add trusted IP adresses.
smtpd_delay_reject = no


nano /etc/postfix/

Find a row

smtp      inet  n       -       n       -       -       smtpd

And change smtp to a custom port, like in example.
How to install eFa Email Filter 16

Don’t forget to open the port if you using a custom one.

iptables -I INPUT -p tcp --dport 2525 -j ACCEPT
iptables-save > /etc/sysconfig/iptables


nano /etc/postfix/recipient_access

Add the next:

[email protected]                    REJECT
[email protected]             REJECT
[email protected]      REJECT
nano /etc/postfix/sender_access

Add the same

[email protected]                    REJECT
[email protected]             REJECT
[email protected]      REJECT

disable signature

nano /etc/MailScanner/MailScanner.conf

Comment the next rows:

#Inline HTML Signature = %rules-dir%/sig.html.rules
#Inline Text Signature = %rules-dir%/sig.text.rules
nano /var/www/html/mailscanner/conf.php

Increase session timeout from 10 minutes to one day.

define('SESSION_TIMEOUT', 86400);

thats it how to install AV mail server for your Zimbra!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online. to search or browse the published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or more ) as a token of appreciation.

Support Us

System & Network Administrator Ninja


Please enter your comment!
Please enter your name here

seventeen − eight =

- Advertisment -
Google search engine

Most Popular

Recent Comments