proper quote sql query for rate limit
This commit is contained in:
parent
0d45ff6e60
commit
e794e4d837
|
@ -370,7 +370,7 @@ acl_rcpt_to:
|
|||
# compromised account, not to restrict legitimate users. Set your defaults & limits accordignly.
|
||||
warn
|
||||
authenticated = *
|
||||
set acl_m_ratelimit_hourly = ${lookup mysql{SELECT IFNULL(vm_mboxes.ratelimit, 100000) FROM vm_mboxes WHERE vm_mboxes.mbox="$sender_address_local_part" AND vm_mboxes.domain='$sender_address_domain'}{$value}{10}}
|
||||
set acl_m_ratelimit_hourly = ${lookup mysql{SELECT IFNULL(vm_mboxes.ratelimit, 100000) FROM vm_mboxes WHERE vm_mboxes.mbox="${quote_mysql:$sender_address_local_part}" AND vm_mboxes.domain="${quote_mysql:$sender_address_domain}"}{$value}{10}}
|
||||
set acl_m_ratelimit_daily = ${eval: (10 * $acl_m_ratelimit_hourly) }
|
||||
ratelimit = 0 / 1h / per_mail / strict / $authenticated_id
|
||||
log_message = Sender rate is $sender_rate/$sender_rate_period for $authenticated_id
|
||||
|
|
Loading…
Reference in New Issue
Block a user