Commit ba0e2efe authored by Claudemir Todo Bom's avatar Claudemir Todo Bom

* config option to disable automatic account expiration

parent 7cc12b53
Pipeline #188 passed with stage
in 8 minutes and 21 seconds
......@@ -71,3 +71,6 @@ SRS_SECRET=SecredoDeEstado
### This will make possible to disable mailboxes
#WW_MAILBOX_DISABLE=1
### Disable automatic account expiration after 60 days without login
#WW_DISABLE_ACCOUNT_EXPIRATION=1
......@@ -724,12 +724,14 @@ check_recipient:
message = 5.2.2 Quota exceeded for $local_part@$domain
log_message = REJECTED: [quota exceeded] $local_part@$domain
.ifndef WW_DISABLE_ACCOUNT_EXPIRATION
### detecta conta inativa
deny domains = +local_domains : +relay_domains
verify = recipient
condition = ${lookup mysql{SELECT users.address FROM users WHERE users.address='$acl_m5' AND active>0 AND mail>0 AND users.lastread < DATE_SUB(NOW(), INTERVAL 60 DAY)}{true}{false}}
message = 5.2.1 Inactive Mailbox $local_part@$domain
log_message = REJECTED: [inactive] $local_part@$domain
.endif
## aceita mensagens para usuarios locais
accept
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment