I posted this in the general linux forum as well but maybe this is a more appropriate place to ask... I have an Ubuntu 6.06 server with ISPConfig. Today one of the harddisks started giving some problems so I had to reboot the server a few times. When I look in /var/mail, there are mails from earlier today that have not been delivered to the intended recipients. New mails do arrive as expected. Question: What can I do to trigger the correct delivery of the mails stuck in /var/mail/web(x)_user1 to /var/www/web(x)/user/web(x)_user1/Maildir/ Thanks in advance.
You can use mb2md (mbox to Maildir) for it: http://www.howtoforge.com/forums/showthread.php?t=835&highlight=mb2md
The problem is that the Maildirs already exist; won't using mb2md overwrite the existing Maildir? Edit: It worked and here's how I did it: - used a fake account with no mail to import to (mb2md -s /var/mail/web[x]_[user] -d /var/www/web4/user/web[x]_postmaster/Maildir - used mailclient to move the messages to the correct Maildirs Question remains though: what would happen if I could not do that - would I have to import them to something like postmaster and do a forward from there?
Forwarding doesn't work because no mailserver is involved when mb2md is called. mb2md write directly to the files.