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

Điểm Danh Các Nhà Cung Cấp VPS Miễn Phí Hàng Đầu Thế Giới: Đâu Là Sự Thật Và Lựa Chọn Tối Ưu Cho Doanh Nghiệp?
Điểm Danh Các Nhà Cung Cấp VPS Miễn Phí Hàng Đầu Thế ...

Điểm Danh Các Nhà Cung Cấp VPS Miễn Phí Hàng Đầu Thế Giới: Đâu Là Sự Thật Và ...

Oracle Cloud Miễn Phí VPS Vĩnh Viễn Có Thật Không? Giải Mã Và Đâu Là Lựa Chọn Tối Ưu Cho Doanh Nghiệp?
Oracle Cloud Miễn Phí VPS Vĩnh Viễn Có Thật Không? ...

Oracle Cloud Miễn Phí VPS Vĩnh Viễn Có Thật Không? Giải Mã Và Đâu Là Lựa Chọn ...

Chiến Lược Của Huawei Để Trở Thành "Nvidia Của Trung Quốc": Lối Đi Nào Cho Điện Toán AI?
Chiến Lược Của Huawei Để Trở Thành "Nvidia Của Trung ...

Chiến Lược Của Huawei Để Trở Thành "Nvidia Của Trung Quốc": Lối Đi Nào Cho Điện ...

Hướng dẫn nâng cấp CyberPanel 3.0.6 trên Ubuntu 22.04
Hướng dẫn nâng cấp CyberPanel 3.0.6 trên Ubuntu 22.04

Hướng dẫn nâng cấp CyberPanel 3.0.6 trên Ubuntu 22.04

Kết hợp Let’s Encrypt SSL với Cloudflare Proxy: Mô hình HTTPS an toàn cho website
Kết hợp Let’s Encrypt SSL với Cloudflare Proxy: Mô ...

Kết hợp Let’s Encrypt SSL với Cloudflare Proxy: Mô hình HTTPS an toàn cho ...

Hướng dẫn nâng cấp GitLab EE 19.2.4 lên 19.3.2 an toàn trên Ubuntu 24.04
Hướng dẫn nâng cấp GitLab EE 19.2.4 lên 19.3.2 an toàn ...

Hướng dẫn nâng cấp GitLab EE 19.2.4 lên 19.3.2 an toàn trên Ubuntu 24.04