Saturday, December 2, 2023
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)

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 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:

[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!

YOU CAN SUPPORT DEVNINJA WITH A CUP OF COFFEE

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

DevNinja
DevNinja
System & Network Administrator Ninja
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5 × 3 =

- Advertisment -
Google search engine

Most Popular

Recent Comments