Home » How to install eFa Email Filter

How to install eFa Email Filter

  • by

In this guide, I will show you how to install 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)

Installation

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 https://install.efa-project.org | 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 https://install.efa-project.org

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

sudo bash build.bash

PUBLIK KEY From EFA

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

rpm --import https://mirrors.efa-project.org/rpm/eFa4/RPM-GPG-KEY-eFa-Project

Configuration

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 1

How to install eFa Email Filter 2

How to install eFa Email Filter 3

How to install eFa Email Filter 4

How to install eFa Email Filter 5

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/main.cf

and edit

mynetworks – add trusted IP adresses.
smtpd_delay_reject = no

then

nano /etc/postfix/master.cf

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

edit

nano /etc/postfix/recipient_access

Add the next:

you@example.com                    REJECT
fail2ban@example.com             REJECT
root@localhost.localdomain      REJECT
nano /etc/postfix/sender_access

Add the same

you@example.com                    REJECT
fail2ban@example.com             REJECT
root@localhost.localdomain      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!

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

sixteen − 16 =