6 Mar
2017
6 Mar
'17
1:50 p.m.
Good point Alex, there's no real advantage that script was there from courier's time and I still use it but doveadm quota command does the trick just as well.
Actual quota : root@messagerie[10.10.10.19] ~ # doveadm quota get -u sec-drh@domain.tld 2>/dev/null | sed -n 1p | awk '{print $4}' 559728 root@messagerie[10.10.10.19] ~ #
Max quota :
root@messagerie[10.10.10.19] ~ # doveadm quota get -u sec-drh@domain.tld 2>/dev/null | sed -n 1p | awk '{print $5}' 1048576 root@messagerie[10.10.10.19] ~ #
-- Yassine.