Author Topic: add spam mail pattern "jobbinthai.com"  (Read 7341 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
add spam mail pattern "jobbinthai.com"
« 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 นี้
« Last Edit: มีนาคม 04, 2018, 05:07:20 PM by golfreeze »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: add spam mail pattern "jobbinthai.com"
« Reply #1 on: มิถุนายน 29, 2012, 04:54:41 PM »
ลักษณะการ 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)