Opening Multiple Maildir via interface

I have a customer who went belly up.  They are needing to access all their email via a web interface.  So a single signon, allowing browsing all the employee's mailboxes, so they can search for a upcoming law suit.  
They, and I don't really want to setup each account all over again.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If the files are Maildir format, then it will be pretty straightforward.  If you don't care about access rights (ie you are happy to have all mailboxes owned by a single account):

(this assumes the email is in ~/Maildir - it may be in ~/.maildir so update as required.

Change ownership of all email folders to "user":

chown user /home/*/Maildir -R

Add symbolic links for each Maildir to the user maildir (except account 'user')

cd /home
for i in * ;do if [$i != 'user'] ; then  ln -s /home/$i/Maildir /home/user/Maildir/.$i;fi;done

So if you had a user frank, with the following maildir:


It would be symlinked as a subfolder in the 'user' Maildir:


Make sure you understand the commands here before running them.

So all of franks email and subfolders would appear below it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
n5yzvAuthor Commented:
Makes perfect sense.  I don't know why I didn't think about it!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.