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.
n5yzvAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
muffConnect With a Mentor Commented:
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:

  /home/frank/Maildir

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

  /home/user/Maildir/.frank

Make sure you understand the commands here before running them.

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

0
 
n5yzvAuthor Commented:
Makes perfect sense.  I don't know why I didn't think about it!
0
All Courses

From novice to tech pro — start learning today.