Source

iredmail / iRedMail / samples / dovecot / dovecot-used-quota.conf

Full commit
Zhang Huangbin e6cc912 











connect = host=PH_SQL_SERVER dbname=PH_REALTIME_QUOTA_DB_NAME user=PH_REALTIME_QUOTA_DB_USER password=PH_REALTIME_QUOTA_DB_PASSWORD
map {
    pattern = priv/quota/storage
    table = PH_DOVECOT_REALTIME_QUOTA_TABLE
    username_field = username
    value_field = bytes
}
map {
    pattern = priv/quota/messages
    table = PH_DOVECOT_REALTIME_QUOTA_TABLE
    username_field = username
    value_field = messages
}