SOLVED [CPANEL-26448] Default Email Account Showing Incorrect Usage

Status
Not open for further replies.

whipworks

Well-Known Member
Aug 19, 2014
194
11
68
cPanel Access Level
Reseller Owner
So I've done and remove all folders assocaited with [email protected] and it still comes up with the error "account already exist". Oddly enough, when I go back to File Manager and search artr, a new folder pops up. So it looks like it creates the account still even if it gives the error, but it still won't show up on the Email Accounts list.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
@whipworks


At this point, I'd recommend opening a ticket using the link in my signature. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @whipworks

Thanks! I checked in on that ticket today and added some notes summarizing what we went over here. I'll continue checking on it and update here when there is any new information.

Thanks!
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
This issue may possibly no longer happen on new accounts due to it supposedly being fixed - but what about existing accounts? I'd say pretty much all of our users have this problem currently.

Is there a way to run /scripts/generate_maildirsize on all users?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Based on the case comments it shouldn't continue to be an issue for users:


Ignore virtual user mailboxes when processing system user quotas.

Case CPANEL-26448: The system user for each cPanel account was showing
the cumulative total of all it's virtual accounts disk usage. This
commit fixes that by adding a quota rule to ignore it's virtual user's
inboxes.

This change also moves the account type data into the user_info returned
by Cpanel::AcctUtils::Lookup::MailUser, and returns service auth user
lookups as the account type "serviceauth".

Changelog: Don't apply virtual mailbox disk usage to the cPanel system
user's disk usage.
I believe a Dovecot quota_rule was added in this instance which would affect all accounts



Is there a way to run /scripts/generate_maildirsize on all users?
There isn't a way to do this without using a loop something like this bash script might work?

Code:
#!/bin/bash

IFS="$"

cd /var/cpanel/users


find .  -type 'f' | while read CPUSER; do

  echo "Now processing ${CPUSER} ..."

  /scripts/generate_maildirsize --allaccounts --verbose --confirm ${CPUSER}

done
IF you do use this or something like it don't forget to run

chmod +x filename

once the file is created or you'll not be able to run it.
 
Last edited:

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
Ok thanks.

It's definitely not fixed for us in terms of existing users. All servers show this behaviour, but we will run the command in a loop as suggested which will hopefully resolve this for good.
 

Metro2

Well-Known Member
May 24, 2006
580
95
178
USA
cPanel Access Level
Root Administrator

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Thank you Lauren. I'm not normally "cranky" on the forums here, but I can't help but shake my head in disbelief that this thread is marked "solved" when it never has been for me. I appreciate you being on top and aware of the "new" version of the same thing though.
I get that completely, to clarify, I'm marking the case as solved, to match with the internal case status. We are currently on the 3rd internal case for this the prior were marked either cannot replicate or solved. This way we're tracking the right case and keeping the most relevant details. My personal belief is that the issue itself has not been solved for everyone even once, but I have to keep things straight if I'm going to provide you with the best and most relevant information and give accurate updates.

So for transparency sake, my steps are:

Tag the thread with the case when I can associate a thread with one
Mark thread as in progress until the case is ready for a build
When ready for a build mark as pending publication
When in a release version of cPanel/WHM or When the case is marked as done - The thread is marked as solved.
If an issue pops up again with the same issue like in this instance I'll usually note in the new thread - which I did do in this instance.
 
  • Like
Reactions: Metro2

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Status
Not open for further replies.