Страница 1 из 1

Exim acl

Добавлено: 2011-07-06 9:31:29
jabber-ru
Подскажите почему то не работают ограничения
привожу конфиг

Код: Выделить всё

###################################################
#ОГРАНИЧЕНИЕ ОЧЕРЕДИ
accept
hosts = net-lsearch;/etc/exim4/whitelist_ratelimit
logwrite = "Sender rate overlimit - $sender_host_address , but whitelisted..."
warn
#ограничение 30 писем за 1 минуту
ratelimit = 30 / 1m / leaky / $sender_host_address
log_message = Sender rate $sender_rate / $sender_rate_period / $sender_host_address
deny
message = Sender rate overlimit - $sender_address / $sender_host_address
ratelimit = 30 / 1m / leaky / $sender_host_address


# ограничение 100 писем за 30 мин
accept
 hosts = net-lsearch;/etc/exim4/whitelist_ratelimit
 logwrite = "Sender rate overlimit - $sender_host_address , but whitelisted..."
 warn
 ratelimit = 100 / 30m / leaky / $sender_host_address
 log_message = Sender rate $sender_rate / $sender_rate_period / $sender_host_address
 deny
 message = Sender rate overlimit - $sender_address / $sender_host_address
 ratelimit = 100 / 30m / leaky / $sender_host_address
 
 
 #ограничение 1000 писем за 24 часа
 accept
 hosts = net-lsearch;/etc/exim4/whitelist_ratelimit
 logwrite = "Sender rate overlimit - $sender_host_address , but whitelisted..."
 warn
 ratelimit = 1000 / 24h / leaky / $sender_host_address
 log_message = Sender rate $sender_rate / $sender_rate_period / $sender_host_address
 deny
 message = Sender rate overlimit - $sender_address / $sender_host_address
 ratelimit = 1000 / 24h / leaky / $sender_host_address

###################################################

Re: Exim acl

Добавлено: 2011-07-06 19:06:33
Laa
Вы полностью понимаете кондишен ratelimit? Когда он срабатывает? Прочитайте и, уверен, все станет ясно.