میتوانید برای ارسال ایمیل کاربران محدودیت قایل شوید
فایل اتچ شده را از طریق مدیریت پلاگین ها نصب کنید
سپس فایل exim.conf را باز کنید و طبق این راهنما عمل کنید
پس از
acl_smtp_rcpt = check_recipient
acl_smtp_data = check_message
اضافه کنید
acl_not_smtp = check_not_smtp
پس از
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
پس از
accept hosts = +auth_relay_hosts
endpass
message = authentication required
authenticated = *
اضافه کنید
set acl_c0 = ${perl{find_user}}
Note: If line "authenticated = *" appear more than once inside your exim.conf, then you probably should add "set acl_c0 = ${perl{find_user}}" after each ocurrence of this line.
پس از
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
پس از
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"
اگر در این فایل خط زیر را داشتید
condition = "${perl{check_limits}}"
به خط زیر تغییر دهید
# condition = "${perl{check_limits}}"
پس از
accept hosts = +relay_hosts
اضافه کنید
set acl_c0 = ${lookup{$sender_host_address}lsearch{/etc/virtual/pophosts_user}\
{${perl{find_user}{$value}}}}
5) Replace your exim.pl with exim.pl included in archive (It's inside 'scripts' folder. After installation (2) full path will be /usr/local/directadmin/plugins/SMTP_Limiter/scripts/exim.pl.) and make sure it has chmod 755.
exim را ریست کنید تمام