Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music
All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Mail issue , problem , configuration => Topic started by: golfreeze on มิถุนายน 29, 2012, 04:51:03 pm
-
พอดีวันนี้ เจอเคสของตัว spam email ที่มี content มากับ "jobbinthai.com"
content ประมาณว่า
######################################
Conditions:
- part-time work schedule
- time of work is flexible
- well-paid salary every 2 weeks
- Career Opportunities
For more information about the company and the position please fill in the registration form like this:
1. Your full name
2. Your Age
3. Your address of residence
4. Your contact phone number
5. Your e-mail
6. Attach your CV to this email
After receiving your registration form we will contact you and send you additional information.
Our contact: Hazel@jobbinthai.com
Good luck.
######################################
ในระบบใช้งานเป็น spamassasin + amavisd
เพิ่ม config block content ใน spamassasin ดังนี้ครับ
#cd /usr/local/etc/mail/spamassassin
#vi local.cf
body TEST_BLOCK_BODY7 /jobbinthai\.com/i
score TEST_BLOCK_BODY7 400.0
ให้เซตตัว amavisd ทำการ discard spam
/i คือ case-insensitive หมายถึงว่า ไม่ว่าจะเป็นคำว่า jobbinthai.com หรือ JOBBINTHAI.COM ก็ เจอ score 400.0 ทั้งนั้น
#vi /usr/local/etc/amavisd.conf
$final_spam_destiny = D_DISCARD;
ทำการ reload amavisd กับ spamasssasin
#/usr/local/etc/rc.d/sa-spamd restart
#/usr/local/etc/rc.d/amavisd restart
แค่นี้ก็ทำการ block content "jobbinthai.com" ได้แล้วครับผม
ขอบใจสำหรับน้อง Ton@NTT ด้วยครับ สำหรับ config นี้
-
ลักษณะการ block ก็จะเป็นดังข้างล่างนะครับผม
Jun 29 16:51:43 ECDD434D45A: to=<golfreeze@packetlove.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.9, delays=0.52/0/0/5.4, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=59843-05 - spam)