TITLE:
Disk space miscalculation after an e-mail address is changed from local mailbox to forward only
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Onyx 17.5, latest MU, Centos 7.3
PROBLEM DESCRIPTION:A customer has a subscription that is only used for a single e-mail address. He first set-up the address to do two things: 1) forward all incoming mail to an external address, 2) store all incoming mail to the local mailbox.
Then he deleted the setting that all incoming mail is stored in a local mailbox.
The statistics recalculation however still takes the "old" mailbox size into account, despite that there is apparently no such mailbox left on the server. Only after deleting the e-mail address and re-creating it statistics re-calculate the subscription size correctly.
STEPS TO REPRODUCE:Then he deleted the setting that all incoming mail is stored in a local mailbox.
The statistics recalculation however still takes the "old" mailbox size into account, despite that there is apparently no such mailbox left on the server. Only after deleting the e-mail address and re-creating it statistics re-calculate the subscription size correctly.
1) Create an e-mail address with a local mailbox storage and a forward to an external address.
2) Send that box some large mails.
3) Run statistics manually.
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>
This will give you the correct size of the subscription.
4) In the e-mail address uncheck the "mailbox" option so that only the external fowarding remains.
5) Run statistics manually, again.
This will still give you the size including the mail corpus that should have been deleted by removing the mailbox. Re-run statistics as often as you like, it will not remove the previous mailbox size from calculation.
ACTUAL RESULT:2) Send that box some large mails.
3) Run statistics manually.
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>
This will give you the correct size of the subscription.
4) In the e-mail address uncheck the "mailbox" option so that only the external fowarding remains.
5) Run statistics manually, again.
This will still give you the size including the mail corpus that should have been deleted by removing the mailbox. Re-run statistics as often as you like, it will not remove the previous mailbox size from calculation.
Wrong total size calculation that includes the size of the deleted mailbox.
EXPECTED RESULT:Correct total size calculation that is no longer adding the size of the mailbox that no longer exists.
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug