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.
Hit [Y] and press [Enter] key to continue.
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.
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.
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!