-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


. EFA Project Free Spam/antivirus filter

, 23 2017 . 18:00 +

image


, , . , . .


, VPS. , , -. , .


. , IP , . IP . . IP , .


Unihost . , , SPAM/AV.


. , 1 1 / , . opensource.


opensource-


Rspamd


. MTA ( Exim, Postfix, Sendmail Haraka) SMTP-.


, SpamAssassin, : , - DNS, , , , SPF, DKIM, , (fuzzy hashes) .


Rspamd .


Apache SpamAssassin


SA . .


. SA , : DNSBL, SPF, DKIM, URIBL, SURBL, PSBL, Razor, RelayCountry, (AWL) .


. SpamAssassin -.


ASSP


- SMTP--, MTA .


: , , DNSBL, DNSWL, URIBL, SPF, DKIM, SRS, ( ClamAV), . MIME- ( Tesseract). .


, , .


MailScanner


MailScanner . , , email- HTML-, ( , , ), .


MailScanner , . , . SpamAssassin.


EFA-project


Open Source eFa-project Email Filter Appliance. EFA Vmware HyperV. MailScanner, Postfix, SpamAssasin ( ) vm. , .


EFA :


MTA (mail transfer agent) Postfix , , ;
MailScanner ;
SpamAssassin -. , MTA ;
ClamAV , MailScanner;
MailWatch - MailScanner ;
DCC - , . score=6, ;
Pyzor Razor SpamAssassin , ;
grey- SQLgrey postfix, , ;
ImageCeberus ..
EFA, . , EFA. .


EFA


VPS CentOS 6.8 x64, relay-. , , . :


yum -y update

wget screen, :


yum -y install wget screen

, , EFA:


wget https://raw.githubusercontent.com/E-F-A/v3/master/build/prepare-build-without-ks.bash

:


chmod +x ./prepare-build-without-ks.bash

screen:


screen

:


./prepare-build-without-ks.bash

Ctrl + A + D.


ssh, . EFA.


, , EFA.


:


Hostname
Domainname , . , FQDN
Adminemail , ( , ..)
Postmasteremail , , MTA
IP address IP
Netmask
Default Gateway
Primary DNS DNS
Secondary DNS DNS
Local User . - MailWatch
Local User Password
Root Password root
VMware tools , VMware. VMware
UTC Time UTC, Yes
Timezone , UTC
Keyboard Layout ,
IANA Code , . , ,
Your mailserver . EFA
Your organization name .
Auto Updates . disabled. , ,

, . - , . , Enter. .


image


, .


, ssh, EFA. :


  • / ;
  • ;
  • MailScanner;
  • / grey-;
  • / ;
  • relay-;
  • Adminemail;
  • / ;
  • ;
  • mysql , - .

EFA, - MailWatch. , , .


EFA


, . EFA , . , , .


main.cf postfix mynetworks, SMTP. helo , , , ACCEPT REJECT . , inet_protocols ipv4, ipv6.


Spam Actions Store /etc/MailScanner/MailScanner.conf. , , . SpamAssassin.


. you@example.com, fail2ban@example.com, root@localhost.localdomain .. . , MAILER-DAEMON, .


, -. REJECT , Postfix : helo_access, recipient_access, sender_access. REJECT. , MAILER-DAEMON helo .


, , SpamAssassin.


SpamAssassin


SpamAssassin , . .


-


- MailWatch. , , . :


Score Matching Rule Description
-0.02 AWL Adjusted score from AWL reputation of From: address
0.80 BAYES_50 Bayes spam probability is 40 to 60%
0.90 DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS
0.00 HTML_MESSAGE HTML included in message
1.00 KAM_LAZY_DOMAIN_SECURITY Sending domain does not have any anti-forgery methods
0.00 NO_DNS_FOR_FROM Envelope sender has no MX or A DNS records
0.79 RDNS_NONE Delivered to internal network by a host with no rDNS
2.00 TO_NO_BRKTS_HTML_IMG To: lacks brackets and HTML and one image
0.00 WEIRD_PORT Uses non-standard port number for HTTP

, SA Learn :


  • As Ham ( );
  • As Spam ( );
  • Forget ;
  • As Spam+Report (razor + pyzor);
  • As Ham+Revoke (razor + pyzor).


. :


sa-learn --ham /20170224/spam/0DC5B48D4.A739D

ID: 0DC5B48D4.A739D, /20170224/spam/, ( ) bash--ham.


, SpamAssassin . SpamAssassin, , , . , - SA .


. . , , .


, SpamAssassin , 1000 . .




. , . . , , .


P.S.: . .


may the ham be with you! :)

Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/331498/

:  

: [1] []
 

:
: 

: ( )

:

  URL