เขาบอกประมาณว่าเป็น
SMTP Limiter Plugin
Version 0.93
วิธีติดตั้ง
1. ไปที่ Directadmin ตรงส่วน Plugin Manager
2. ใส่ url : http://ruweb.net/DA/SMTP_Limiter.tar.gz ลงไป
3. Submit
5. ทำการ backup ไฟล์ /etc/exim.conf และ /etc/exim.pl ก่อน
5. แก้ไขไฟล์ /etc/exim.conf
5.1) ใต้คำว่า
acl_smtp_rcpt = check_recipient
acl_smtp_data = check_message
เพิ่ม
acl_not_smtp = check_not_smtp
5.2) ใต้คำว่า
begin acl
เพิ่ม
check_not_smtp:
deny set acl_c0 = ${perl{find_user}}
condition = ${if def:acl_c0{${if exists{/etc/virtual/.smtp_deny/$acl_c0} {yes}}}}
message = User $acl_c0 is not allowed to use SMTP
accept
5.3) ใต้คำว่า
accept hosts = +auth_relay_hosts
endpass
message = authentication required
authenticated = *
เพิ่ม
set acl_c0 = ${perl{find_user}}
5.4) ใต้คำว่า
check_message:
เพิ่ม
deny condition = ${if def:acl_c0{${if exists{/etc/virtual/.smtp_deny/$acl_c0} {yes}}}}
message = User $acl_c0 is not allowed to use SMTP
5.5) ใต้คำว่า
begin routers
เพิ่ม
check_limits:
driver = redirect
domains = ! +local_domains
condition = ${if def:acl_c0{${if first_delivery{${perl{check_limits}{$acl_c0}}}}}}
allow_fail
data = ":fail: You ($acl_c0) have reached your message limit"
5.6) ถ้ามีบรรทัดนี้
condition = "${perl{check_limits}}"
ให้ comment ไว้นะครับ โดยใส # ใว้ด้านหน้า
#condition = "${perl{check_limits}}"
5.7) ใต้คำว่า
accept hosts = +relay_hosts
เพิ่ม:
set acl_c0 = ${lookup{$sender_host_address}lsearch{/etc/virtual/pophosts_user}\
{${perl{find_user}{$value}}}}
6) Copy คำสั่งด้านล่าง
cp /usr/local/directadmin/plugins/SMTP_Limiter/scripts/exim.pl /etc/exim.pl
7) Restart exim
SMTP Limiter Plugin
Version 0.93
วิธีติดตั้ง
1. ไปที่ Directadmin ตรงส่วน Plugin Manager
2. ใส่ url : http://ruweb.net/DA/SMTP_Limiter.tar.gz ลงไป
3. Submit
5. ทำการ backup ไฟล์ /etc/exim.conf และ /etc/exim.pl ก่อน
5. แก้ไขไฟล์ /etc/exim.conf
5.1) ใต้คำว่า
acl_smtp_rcpt = check_recipient
acl_smtp_data = check_message
เพิ่ม
acl_not_smtp = check_not_smtp
5.2) ใต้คำว่า
begin acl
เพิ่ม
check_not_smtp:
deny set acl_c0 = ${perl{find_user}}
condition = ${if def:acl_c0{${if exists{/etc/virtual/.smtp_deny/$acl_c0} {yes}}}}
message = User $acl_c0 is not allowed to use SMTP
accept
5.3) ใต้คำว่า
accept hosts = +auth_relay_hosts
endpass
message = authentication required
authenticated = *
เพิ่ม
set acl_c0 = ${perl{find_user}}
5.4) ใต้คำว่า
check_message:
เพิ่ม
deny condition = ${if def:acl_c0{${if exists{/etc/virtual/.smtp_deny/$acl_c0} {yes}}}}
message = User $acl_c0 is not allowed to use SMTP
5.5) ใต้คำว่า
begin routers
เพิ่ม
check_limits:
driver = redirect
domains = ! +local_domains
condition = ${if def:acl_c0{${if first_delivery{${perl{check_limits}{$acl_c0}}}}}}
allow_fail
data = ":fail: You ($acl_c0) have reached your message limit"
5.6) ถ้ามีบรรทัดนี้
condition = "${perl{check_limits}}"
ให้ comment ไว้นะครับ โดยใส # ใว้ด้านหน้า
#condition = "${perl{check_limits}}"
5.7) ใต้คำว่า
accept hosts = +relay_hosts
เพิ่ม:
set acl_c0 = ${lookup{$sender_host_address}lsearch{/etc/virtual/pophosts_user}\
{${perl{find_user}{$value}}}}
6) Copy คำสั่งด้านล่าง
cp /usr/local/directadmin/plugins/SMTP_Limiter/scripts/exim.pl /etc/exim.pl
7) Restart exim