Author Topic: install spamassassin on freebsd 9.x in directadmin  (Read 3009 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
install spamassassin on freebsd 9.x in directadmin
« on: มีนาคม 04, 2018, 05:38:05 PM »
วันนี้มีโจทย์การลง spamassassin ใน DA บน OS:FreeBSD 9.3 มาให้ทำครับ

คือเราด้วยวิธีทั่วไปปกติ มันไม่ได้ ฮ่าๆ เลยต้องใช้วิธี advance ครับผม

cd /usr/local/directadmin/custombuild
./build set spamd spamassassin
./build spamassassin
แล้วจะเจอ error

REQUIRED module missing: HTML::Parser
REQUIRED module missing: Net::DNS
REQUIRED module missing: NetAddr::IP
optional module missing: Digest::SHA1
optional module missing: Mail::SPF
optional module missing: Geo::IP
optional module missing: Net::CIDR::Lite
optional module missing: Razor2
optional module missing: IO::Socket::IP
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module missing: Mail::DKIM
optional module missing: DBI
optional module missing: LWP::UserAgent
optional module missing: HTTP::Date
optional module missing: Encode::Detect::Detector
optional module missing: Net::Patricia
optional module missing: Net::DNS::Nameserver
optional binary missing or nonfunctional: gpg

warning: some functionality may not be available,
please read the above report before continuing!

Done Configuration.
Trying to make SpamAssassin...
make: no target to make.

If needed, use cpan to install the missing modules, eg:
  cpan -i Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker

Press enter to answer [yes] if it asks you to install dependencies (it will prepend them to the queue)
Answer no if it asks: Are you ready for manual configuration? [yes] no


*** The make has failed, would you like to try to make again? (y,n):
n
แล้วก็หลุดออกมาครับ

จริงๆ ลงผ่าน cpan ไปแล้วแต่ว่ามันมองหากันไม่เจอ เลยต้องลงแบบ pkg ผ่าน port ครับ
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

ลองปรับโดยลงผ่าน pkg install ครับ
#pkg install p5-HTML-Parser p5-NetAddr-ip p5-Net-DNS p5-Digest-SHA1
#pkg install p5-Mail-SPF p5-Geo-IP p5-Net-CIDR-Lite Razor-Agents p5-mail-dkim p5-io-socket-ip p5-io-socket-inet6 p5-io-socket-ssl p5-dbi p5-HTTP-Date p5-Encode-Detect p5-Net-Patricia p5-Net-DNS

###เริ่มเลยครับ
cd /usr/local/directadmin/custombuild
./build set spamd spamassassin
./build spamassassin


ถ้าไม่สามารถโหลดไฟล์ spamassassin install ได้
fetch https://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-3.4.1.tar.gz
fetch https://www.apache.org/dist/spamassassin/source/Mail-SpamAssassin-rules-3.4.1.r1675274.tgz
« Last Edit: มีนาคม 04, 2018, 06:10:37 PM by golfreeze »