I've been running dovecot on a CentOS-5.7 server. Now I'm moving over to another server running CentOS-6.2. I thought I was running dovecot on the new server, but in fact there was an error during the setup, with the result that incoming mail finished up in /var/spool/mail/ rather than in ~/Maildir , where I wanted it to go. Now I'm wondering if there is some way that I can re-direct the mail in /var/spool/mail/<mymbox> so that it goes through the system as though it were just arriving? I mean, so that it gets distributed into the correct folders under ~/Maildir , as specified in .procmailrc . Any suggestions gratefully received. -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College Dublin
On 01/23/2012 05:25 PM, Timothy Murphy wrote:> I've been running dovecot on a CentOS-5.7 server. > Now I'm moving over to another server running CentOS-6.2. > I thought I was running dovecot on the new server, > but in fact there was an error during the setup, > with the result that incoming mail finished up in/var/spool/mail/ > rather than in ~/Maildir , where I wanted it to go.Dovecot isn't your MTA. You also need to duplicate your sendmail/postfix service on the new host.
On Jan 23, 2012, at 6:25 PM, Timothy Murphy wrote:> I've been running dovecot on a CentOS-5.7 server. > Now I'm moving over to another server running CentOS-6.2. > I thought I was running dovecot on the new server, > but in fact there was an error during the setup, > with the result that incoming mail finished up in /var/spool/mail/ > rather than in ~/Maildir , where I wanted it to go. > > Now I'm wondering if there is some way > that I can re-direct the mail in /var/spool/mail/<mymbox> > so that it goes through the system as though it were just arriving? > I mean, so that it gets distributed into the correct folders > under ~/Maildir , as specified in .procmailrc . > > Any suggestions gratefully received.---- easiest way to handle is to copy the files to your client computer, open them with your normal mail client and move them into folders (assuming your ~/Maildir is IMAP). If there is only 1 or 2 users, this is much easier. Craig