[Exim] Switch from mbox to Maildir

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Odhiambo G. Washington
Data:  
Para: exim-users
Asunto: [Exim] Switch from mbox to Maildir
Hello gurus,

It's me again. This time I'd like to change as in $subject. With over 6k users
on a production system, has anyone gone through such an experience? I'd like
to share with you what you went through.
I see a very difficult situation here where

1. I'll drop the (production) server to single user mode
2. Change exim local delivery transport to deliver to Maildir
3. Change the config for the POP3 daemon
3. Test 3 or so accounts
4. Return to server mode

At that point, I am left with so much mail in /var/mail/{user} which I have to
get to each user's Maildir/new and there are over 6k users!! A bit scaring for
a junior like me ;-) - I could do something like


#!/bin/sh

SPOOL=/var/mail
MBOX=`ls -1`
cd $SPOOL
for mailbox in $MBOX
do
    tmpbox=/tmp/$mailbox
    mv $mailbox $tmpbox
    owner=`ls -l $tmpbox | awk '{print $3}'`
    touch $mailbox
    chown $owner $mailbox
    chmod 600 $mailbox
    formail -s exim $owner@??? < $tmpbox
#   rm $tmpbox
    mv $tmpbox /var/Oldmailboxes
done



Just seeking ideas and will highly appreciate all input (-/+)


MTIA



-Wash

S y s t e m s A d m i n.

--
Odhiambo Washington  <wash@???>    "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: 254 2 313985-9   Fax: 254 2 313922     so I installed FreeBSD."
GSM: 254 72 743 223   GSM: 254 733 744 121  This sig is McQ!  :-)


++
"Now is the time for all good men to come to."
        -- Walt Kelly