> Subject: sendmail+imap to postfix+courier-imap > > I will move my mailserver from sendmail & imap to postfix + > courier-imap. > The reason is the authentication features with mysql. > > The hard thing is move the mailbox to the new maildirs without losing > emails. > > Is there anyway to do that well?? I think in fetchmail.. Could it be? > I don't want to lose any email so please send me an advice to do it > properly. > > Thank Redhat-List > > Fryclau
Greetings, I asked a similar question earlier this year. Difference is, I'm using Sendmail->Procmail->Courier-imap. Anyway, here is the info: Add to '/etc/procmailrc' CMAILDIR="$HOME/Maildir" #We'll make sure /~user/Maildir/ exists DUMMY=`test -d $CMAILDIR || /path_to/maildirmake -S $CMAILDIR/` CMAILDIR="$HOME/Maildir" DEFAULT="$CMAILDIR/new" #New point of Mail delivery for procmail LOGFILE="/tmp/$LOGNAME" #Recommended BULKMAIL=$CMAILDIR/.Bulkmail #For SPAM delivery DUMMY=`test -d $BULKMAIL || /usr/bin/maildirmake -S $BULKMAIL` You can check the file 'LOGFILE' for any errors during procmail delivery during this process. In '/var/spool/mail/`: Move the users incoming mbox formatted file to something like 'login.OLD' . ('login' meaning the users login name) ]# mv login login.OLD ]# cat login.OLD | formail -s procmail -d login & ]# tail -f /tmp/login Continue if all the new messages are in the users 'DEFAULT' directory as single files (Maildir/ format). Also, check for any errors in the 'LOGFILE' defined in '/etc/procmailrc'. ]# cat /dev/null > login ]# rm login.OLD Procmail will deliver new messages to the DEFAULT folder defined in the '/etc/procmailrc'. It will also keep an empty file in '/var/spool/mail' in case DEFAULT delivery is not possible. FYI, Procmail doesn't work well with Sym. links in the '/var/spool/mail' directory. Hope this helps, Ken -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list