I noticed that since the first version we always create the Maildir in ONLY the follow 2 ways, and I am curious why.
$HOME/$DOMAIN/$USER/
$HOME/$DOMAIN/$USER@$DOMAIN/
Why don't we create the true Maildir below the $USER or $USER@DOMAIN directories? Why is these directories the real Maildir location.
Reason I ask is that I noticed alot of folks want to do procmail sorting to these virtual users, and of course using the method postfixadmin implements makes this difficult.
I've since managed to get procmail to delivery/sort mail for my virtual users by way of changing the Maildir folder to be like so
$HOME/$DOMAIN/$USER/Maildir/
This allows me to put a .procmailrc in the directory above the Maildir/ and have the virtual_transport = procmail, and I then setup a master.cf to run procmail through a pipe and use a custom procmailrc file which determines the $USER $DOMAIN from the recipient details.
Any developers care to comment... just out of interest..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know someone was interested in having a hashed directory structure for mailboxes so it could scale better. I personally have no problem where you put the Maildir (for all I care it could be to a user's home directory ~/Maildir)
(And likewise, for all I care you could use an mbox file instead).
If you want to produce a patch for the feature, and give people some way of enabling/disabling it through config.inc.php then I'm happy to merge it.
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I noticed that since the first version we always create the Maildir in ONLY the follow 2 ways, and I am curious why.
$HOME/$DOMAIN/$USER/
$HOME/$DOMAIN/$USER@$DOMAIN/
Why don't we create the true Maildir below the $USER or $USER@DOMAIN directories? Why is these directories the real Maildir location.
Reason I ask is that I noticed alot of folks want to do procmail sorting to these virtual users, and of course using the method postfixadmin implements makes this difficult.
I've since managed to get procmail to delivery/sort mail for my virtual users by way of changing the Maildir folder to be like so
$HOME/$DOMAIN/$USER/Maildir/
This allows me to put a .procmailrc in the directory above the Maildir/ and have the virtual_transport = procmail, and I then setup a master.cf to run procmail through a pipe and use a custom procmailrc file which determines the $USER $DOMAIN from the recipient details.
Any developers care to comment... just out of interest..
I know someone was interested in having a hashed directory structure for mailboxes so it could scale better. I personally have no problem where you put the Maildir (for all I care it could be to a user's home directory ~/Maildir)
(And likewise, for all I care you could use an mbox file instead).
If you want to produce a patch for the feature, and give people some way of enabling/disabling it through config.inc.php then I'm happy to merge it.
David