I have a CentOS 7 with postfix.
E-mails are stored in:
Var/vmail/DomainName/Usernames/Maildir/.Junk/
The only variable is the Usernames that correspond to each mailbox.
I could use a script to count the files for each address junk folder and put them into a centralized text file.
What would be the simplest way to do this so that I can have an output like:
Username1: nn
Username2: nn
.............
Where nn is the number of files in the junk folder of the respective user.