Dec 12

I have fix some problem with my mail server when mail detected with spam in anti-spam gateway, I don’t need to scan again and don’t want to set that ip to RELAYCLIENT in tcp.smtp

With tcp.smtp
x.x.x.x is ip can relay with your mail server and not scan with spamassassin
x.x.x.x:allow,RELAYCLIENT=""

Other case if you want scan with spamassassin you can set with
x.x.x.x:allow,RELAYCLIENT="",QS_SPAMASSASSIN="yes"

But in this case I use
x.x.x.x:allow,BYPASS_SPAMASSASSIN=”on”

And insert this code in /var/qmail/bin/qmail-scanner-queue.pl
if (defined($ENV{'BYPASS_SPAMASSASSIN'})) {
&debug("spamassassin: don't scan as BYPASS_SPAMASSASSIN");
&minidebug("SA: don't scan as BYPASS_SPAMASSASSIN") if (!$scanned);
return;
}

at line 3349 in spamassassin function
and line 3450 in spamassassin_alt function

Don’t forget to rebuid tcp.smtp and make backup with qmail-scanner-queue.pl

written by Mr-San \\ tags: , , ,

Oct 06

เฮ้อ ในที่สรุปการติดตั้งเครื่อง ที่ให้บริการ สำหรับ ระบบ Mail Server ก็สำเร็จเสร็จไปด้วยดี ก็เท่ากับว่าจะมีแหล่งอ้างอิงให้ได้เก็บเป็นข้อมูล
ต่อไปก็คงต้องทำ howto อื่นๆ อีกมากมาย แต่ถ้าเป็นเครื่องให้บริการจริงๆ คงไม่สามารถนำขึ้นมาแสดงให้อ่านได้นะครับ

แต่ว่า ข้อมูลต่างๆ ที่ได้จัดทำขึ้นมานี้ จะ นำไปเป็น Course Training : Mail Server คราวต่อไป (version พัฒนา)
แล้วหลังจาก ลอง เล่น qmail-ldap แล้วจะเอามานำเสนอให้อ่านละกันครับ
ว่าไปแล้วก็ยังมีอีกหลายตัวนะที่ยังไม่ได้จัดทำขึ้นมา

อ้างอิงข้อมูลที่ได้จัดทำขึ้นมานี่ก็ตามนี้เลย เป็น Version: 1.8.1

ช่วงนี้ มีงานหลายอย่างเข้ามาให้เล่น Wiki, Cluster, Load Balance ที่จำเป็นต้องรีบอ่านรีบทำ เพื่อระบบที่มี stability มากที่สุด

written by Mr-San \\ tags: , , ,