Monday, February 7, 2011

FOLLOW UP AGAIN: Kenmore / Whirlpool dryer won’t stay running or heat?

It's been over a year and a half since the last issue we've had with this hunk of junk dryer. This time it popped a circuit and fried the main board. I ended up having to get the extended warranty (you can get a $200 1 year extended warranty for any sears appliance that is less than 10 years old) to have it be replaced (I didn't know what the exact issue was and I wasn't going to pay to replace part after part until it was fixed). AVOID THESE PRODUCTS.

Converting from mbox to Maildir with Postfix and Dovecot on Debian

This is the procedure I used for converting from mbox to Maildir with Postfix and Dovecot running Debain 5.x. This assumes that you have individual system accounts for each mail user and that the mbox files are currently in /var/spool/mail/USER and /home/USER/mail/FOLDERS.

All the following commands/edits will need to be done as root:

Install mb2md:

aptitude install mb2md

Stop the mail servers:

/etc/init.d/postfix stop
/etc/init.d/dovecot stop


Edt the /etc/posfix/main.cf:

home_mailbox = Maildir/

Edit the /etc/procmailrc (if you are using procmail for local delivery/filtering):

ORGMAIL=$HOME/Maildir/
MAILDIR=$ORGMAIL
DEFAULT=$ORGMAIL


Edit the /etc/dovecot/dovecot.conf:

mail_location = maildir:~/Maildir

At this point I'd backup the user accounts just in case there is an issue.

Create a bash script with the following and execute it:

for i in $( ls -1 /home ); do
su -l -c 'mb2md -m' $i; ## convert /var/spool/mail/USER
su -l -c 'mb2md -s mail -R' $i;
done


At this point you will need to restart the mail servers:

/etc/init.d/dovecot start
/etc/init.d/postfix start