Rspamd ตัวกรองอีเมล์ขยะตัวใหม่ ที่เจ๋งและแจ่มกว่า SpamAssassin ซึ่งจะมีระบบ Report ให้เราได้ดูรายการตั้งๆที่ตัว Rspamd ทำงานด้วย แนะนำสำหรับ CentOS 7 ขึ้นไป
คำสั้งติดตั้ง Rspamd
cd /usr/local/directadmin/custombuild ./build update ./build set eximconf yes ./build set eximconf_release 4.5 ./build set dovecot_conf yes ./build set blockcracking yes ./build set easy_spam_fighter yes ./build set spamd rspamd ./build set exim yes ./build rspamd ./build exim ./build exim_conf ./build dovecot ./build dovecot_conf
หลังจากติดตั้งเสร็จแล้ว จะมีเมนู “rspamd spam filtering system” โผล่ขึ้นมาที่สิทธิ์ Admin นะครับ สามารถเข้าไปดูรายงานต่างๆที่ระบบทำงานได้
สำหรับ CentOS 6 หากต้องการติดตั้ง จะต้องอัพเกรด Autoconf ก่อน
# CentOS 6 wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz tar xzvf autoconf-latest.tar.gz; cd autoconf-* ./configure make make install
และทริปเล็กๆน้อยๆ สำหรับเพิ่มประสิทธิภาพ Rspamd ให้ทำการติดตั้ง Redis Server เพิ่มเติม
pecl install redis service redis start service redis restart chkconfig redis on
จากนั้น ให้ทำการตั้งค่า Rspamd ให้ใช้งาน Redis Server เพื่อทำการแคชข้อมูล เพิ่มประสิทธิภาพในการประมวลผล
nano /etc/rspamd/local.d/redis.conf # Input here servers = "127.0.0.1"; # Contrl + X to save chattr +i /etc/rspamd/local.d/redis.conf service rspamd restart
หากต้องการตรวจสอบว่า rspamd เชื่อมต่อกับ Redis Server หรือยัง ให้ทำการ Monitor Redis
redis-cli monitor
หากเห็นว่า Rspamd มีการเชื่อมต่อเข้ามาอ่านเขียนข้อมูล ก็เป็นอันเสร็จสิ้นครับ
หากต้องการกลับไปใช้ Spamassassinเหมือนเดิม ให้ใช้คำสั่งนี้
cd /usr/local/directadmin/custombuild ./build set spamd spamassassin ./build spamassassin service rspamd stop chkconfig rspamd off service redis restart
Blog ส่วนตัว ที่จะแชร์เรื่องร่าวต่างๆที่พบเจอมา จากประสบการณ์จริง เพื่อเป็นประโยชน์ต่อสังคมและผู้ที่กำลังศึกษาหาความรู้เรื่องต่างๆ ไม่ว่าจะเป็น Server, Network, Security, ทำเว็บไซต์, เขียนโปรแกรม, ฯลฯ ขอบคุณทุกๆการติดตามครับ 😉
★ บริการ Cloud Server ★