Directory /Maildir gets created.

Hi,

On CentOS 5 and 6 and Debian 6 and 7 we see a /Maildir directory being created:

[kees@vps-hosting0 ~]$ ls -lsah / | grep Maildir
4,0K drwx------.   8 root root 4,0K jul 31 11:59 Maildir

[kees@vps-hosting0 ~]$ sudo tree /Maildir
/Maildir
├── cur
├── new
├── subscriptions
└── tmp

3 directories, 1 file

After removing the directory (obviously it shouldn't be there) it just gets created again.

On all boxes and distributions mentioned above, we're using an alias for root so the mail gets forwarded to our NOC crew.

Any clue on this? In log files I wasn't able to find anything in particular regarding this behaviour.

Thanks again for your support.

Status: 
Closed (fixed)

Comments

I can confirm this; for a very long time already I've seen "Maildir" getting randomly created in the root path of my filesystems. I haven't really checked into this yet, I just delete them from time to time, since I suppose they don't hurt. But still it's a little nuisance.

Hmm, I'm not sure what might cause that, but I'll do some digging.

Are you guys seeing any clues as to when that directory is being created?

For example, is it after creating a Virtual Server? Or maybe after creating a user?

Unfortunately, I haven't caught Virtualmin "in the act" of creating that directory yet. :( I've seen it numerous times, but more or less by coincidence every time. It's probably one of those phantoms, like the mysterious "domain consisting of numbers" that pops up every now and again. ;)

That does look like a bug. You might want to try a few common operations (like creating a domain, and creating a user) and see if they lead to /Maildir being created.