BrooksBridges

Well-Known Member
Sep 2, 2004
50
0
156
Hey all,

I recently had a hard drive crash, and restored from backups, but the fresh install of cpanel seems to default to courier / maildir, and all my old email seems to be lost, or at least inaccessable.

Anyone know how to force cpanel to revert to pop3d without having done the maildir conversion first?

Thanks
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Two choices:

1. The best choice would be to simply run through the maildir conversion again and it will convert your restored mbox format to the new maildir format:

/scripts/convert2maildir

2. If you really want to back off, you can, but it's not a good idea. Any email delivered since going to maildir will be lost:

service chkservd stop
service courier-authlib stop
service courier-imap stop


Edit /var/cpanel/cpanel.config and set maildir=0

Then:

/scripts/eximup --force
service cpanel restart
service xinetd restart
service chkservd start


That should do it.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
If you don't have maildir=1 in cpanel.config then as far as cPanel is concerned it's running the mbox version.

Is courier-imap actually running?
 

BrooksBridges

Well-Known Member
Sep 2, 2004
50
0
156
I'm not finding "maildir" in cpanel.config, I'm guessing I should just add it?

edit: added that line, and now I'm getting this:

Jul 31 17:20:57 pfx-shout01 stunnel: LOG3[16038:3086534880]: Error binding cpanelhttps to 0.0.0.0:2083
Jul 31 17:20:57 pfx-shout01 stunnel: LOG3[16038:3086534880]: bind: Address already in use (98)

that's from the failed stunnel restart

edit: ok, I got the stunnel failure fixed, but now I can't view any of the mailboxes when I open the subscribe list in thunderbird. permissions maybe?
 
Last edited:

BrooksBridges

Well-Known Member
Sep 2, 2004
50
0
156
chirpy said:
If you don't have maildir=1 in cpanel.config then as far as cPanel is concerned it's running the mbox version.

Is courier-imap actually running?
yes, it was.

edit: /scripts/fixhome corrected the mailbox problem. Things seem just fine now, thanks a lot for the help!
 

duranduran

Well-Known Member
Apr 30, 2004
198
0
166
chirpy said:
Two choices:

1. The best choice would be to simply run through the maildir conversion again and it will convert your restored mbox format to the new maildir format:

/scripts/convert2maildir

2. If you really want to back off, you can, but it's not a good idea. Any email delivered since going to maildir will be lost:

service chkservd stop
service courier-authlib stop
service courier-imap stop


Edit /var/cpanel/cpanel.config and set maildir=0

Then:

/scripts/eximup --force
service cpanel restart
service xinetd restart
service chkservd start


That should do it.

YOU ARE THE BEST CHIRPY :D