The short answers is that the "username" values were missing from the aliases files:
root@directadmin:/etc/virtual# cat */aliases
*: :fail:
*: :fail:
*: :fail:
The logic was that both "username" and "*" would be there, so the count would always total the total less 2.
In this case, each domain didn't have the username, so it was -1 per domain, 3 domains, thus -3.
I've changed the logic to read the aliases file, delete */username, and return the actual total, to handle these cases.
------
I've finished adding the fix to the code-base.
The pipeline is running now and the pre-release binaries should be done uploading in about 10 minutes.
If you'd like the fix now, install the pre-release binaries after about 4:20pm MST (10 minutes from now):
The next tally should solve it for you.
Or.. just add 'username" back into each aliases file, so that emails to:
**user**@**user**
get delivered to:
**user**@**my DA host**
in:
~**user**/Maildir
but is really not required if you don't want them to (now that the fix will give a correct count of 0)