Deny incoming Spam email exim- Direct Admin

Deny​​ incoming​​ Spam ​​ email exim- Direct Admin

1/ Install SpamAssassin

Spam Assissin is​​ The most common tool that is enabled to fight incoming spam.

[server]# cpan
cpan> o conf prerequisites_policy follow
cpan> o conf commit
cpan> quit

 

cpan -i Archive::Tar Digest::SHA Net::DNS Net::DNS::Resolver::Programmable Mail::SPF Geo::IP Net::CIDR::Lite IO::Socket::IP \
IP::Country Net::Ident Net::Patricia IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker \
NetAddr::IP Mail::SpamAssassin::Plugin::Razor2 Razor2::Client::Agent IO::Socket::SSL DBI Sys::Syslog DBD::File

 

 

Logs

 

.

.

.

t/00-load.t ............. 1/1 # Testing Sys::Syslog 0.36, Perl 5.016003, /usr/bin/perl

t/00-load.t ............. ok  ​​​​ 

t/constants.t ........... ok  ​​ ​​ ​​​​ 

t/cpan-rt-21516.t ....... ok  ​​​​ 

t/cpan-rt-21866.t ....... skipped: Test::NoWarnings not available

t/cpan-rt-25488.t ....... skipped: Test::NoWarnings not available

t/cpan-rt-55151.t ....... ok  ​​​​ 

t/cpan-rt-64287.t ....... ok  ​​​​ 

t/data-validation.t ..... skipped: POE is not available

t/distchk.t ............. skipped: Test::Distribution required for checking distribution

t/facilities-routing.t .. skipped: POE is not available

t/pod.t ................. skipped: Test::Pod v1.14 required for testing POD

t/podcover.t ............ skipped: Test::Pod::Coverage 1.06 required for testing POD coverage

t/podspell.t ............ skipped: Pod spelling: for maintainer only

t/portfs.t .............. skipped: Test::Portability::Files required for testing filenames portability

t/syslog-inet-udp.t ..... ok  ​​ ​​ ​​​​ 

t/syslog.t .............. ok  ​​ ​​ ​​ ​​ ​​​​ 

All tests successful.

Files=16, Tests=340, ​​ 1 wallclock secs ( 0.10 usr ​​ 0.02 sys + ​​ 1.05 cusr ​​ 0.25 csys = ​​ 1.42 CPU)

Result: PASS

 ​​​​ SAPER/Sys-Syslog-0.36.tar.gz

 ​​​​ /usr/bin/make test -- OK

Running make install

"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Syslog.bs blib/arch/auto/Sys/Syslog/Syslog.bs 644

Manifying 1 pod document

Files found in blib/arch: installing files in blib/lib into architecture dependent library tree

Installing /home/root-itc/perl5/lib/perl5/x86_64-linux-thread-multi/auto/Sys/Syslog/Syslog.so

Installing /home/root-itc/perl5/lib/perl5/x86_64-linux-thread-multi/Sys/Syslog.pm

Installing /home/root-itc/perl5/man/man3/Sys::Syslog.3pm

Appending installation info to /home/root-itc/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod

 ​​​​ SAPER/Sys-Syslog-0.36.tar.gz

 ​​​​ /usr/bin/make install ​​ -- OK

DBD::File is up to date (0.44).

 

cd /usr/local/directadmin/custombuild
./build set spamd spamassassin
./build spamassassin

 

Logs

 

.

.

.

*** MD5 Checksum for sa-update.sh Failed. ​​ Redownloading...***

 

Downloading  ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ sa-update.sh...

--2020-02-10 10:03:31-- ​​ http://files14.directadmin.com/services/custombuild/sa-update.sh

Resolving files14.directadmin.com (files14.directadmin.com)... 125.253.119.8

Connecting to files14.directadmin.com (files14.directadmin.com)|125.253.119.8|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1346 (1.3K) [application/octet-stream]

Saving to: '/usr/local/directadmin/custombuild/sa-update.sh'

 

100%[===================================================================================================================>] 1,346  ​​ ​​ ​​ ​​ ​​​​ --.-K/s  ​​​​ in 0s  ​​ ​​ ​​ ​​​​ 

 

2020-02-10 10:03:31 (169 MB/s) - '/usr/local/directadmin/custombuild/sa-update.sh' saved [1346/1346]

 

 

 

*** MD5 Checksum for sa-update.sh failed *again*.***

The md5 checksum value may be incorrect, or a wrong file is being downloaded.

Install continuing with this possibly corrupted file. (it may also be fine)

 

 

Running sa-update.

Starting SpamAssassin.

--2020-02-10 10:03:45-- ​​ http://files14.directadmin.com/services/exim.spamassassin.conf

Resolving files14.directadmin.com (files14.directadmin.com)... 125.253.119.8

Connecting to files14.directadmin.com (files14.directadmin.com)|125.253.119.8|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 643 [text/plain]

Saving to: '/etc/exim.spamassassin.conf'

 

100%[===================================================================================================================>] 643  ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ --.-K/s  ​​​​ in 0s  ​​ ​​ ​​ ​​​​ 

 

2020-02-10 10:03:45 (63.2 MB/s) - '/etc/exim.spamassassin.conf' saved [643/643]

 

systemctl restart exim

2/ Config SpamAssassin

 

 

 

 

 

3/Reference:

https://help.directadmin.com/item.php?id=36

https://help.directadmin.com/item.php?id=577

 

 

 

BÀI VIẾT CÙNG CHUYÊN MỤC

Critical - CVE 2026 98432 - Nguy cơ tấn công từ xa vào Linux - Ubuntu, Centos, Debian
Critical - CVE 2026 98432 - Nguy cơ tấn công từ xa vào ...

Critical - CVE 2026 98432 - Nguy cơ tấn công từ xa vào Linux - Ubuntu, Centos, ...

CXMT và DRAM 4F² cho thấy Trung Quốc tiến nhanh nhưng chưa thể kết luận Mỹ thua cuộc
CXMT và DRAM 4F² cho thấy Trung Quốc tiến nhanh nhưng ...

CXMT và DRAM 4F² cho thấy Trung Quốc tiến nhanh nhưng chưa thể kết luận Mỹ thua ...

Cảnh báo NAS Synology, XPEnology bị mã hóa dữ liệu: Vì sao bị tấn công và cách xử lý?
Cảnh báo NAS Synology, XPEnology bị mã hóa dữ liệu: Vì ...

Cảnh báo NAS Synology, XPEnology bị mã hóa dữ liệu: Vì sao bị tấn công và cách ...

Cảnh báo Telegram trên iPhone: Nguy cơ bị hacker tấn công qua sticker và cách phòng tránh
Cảnh báo Telegram trên iPhone: Nguy cơ bị hacker tấn ...

Cảnh báo Telegram trên iPhone: Nguy cơ bị hacker tấn công qua sticker và cách ...

PHP2Shell làm Nhật Bản “khốn đốn”: Vì sao nhiều dịch vụ tạm dừng, còn thế giới chịu ảnh hưởng ra sao?
PHP2Shell làm Nhật Bản “khốn đốn”: Vì sao nhiều dịch ...

PHP2Shell làm Nhật Bản “khốn đốn”: Vì sao nhiều dịch vụ tạm dừng, còn thế giới ...

PHP2Shell: Hai lỗ hổng nghiêm trọng đe dọa hàng triệu website – Cách kiểm tra và khắc phục
PHP2Shell: Hai lỗ hổng nghiêm trọng đe dọa hàng triệu ...

PHP2Shell: Hai lỗ hổng nghiêm trọng đe dọa hàng triệu website – Cách kiểm tra ...