akbkhome

Binc IMAP + Exim

Installation :

install debian packages

  • exim4
  • bincimap-run
  • cvm
  • mb2md
Note: if you upgrading from uw-imap and might have mbx mailboxes (rather than the standard mbox), you should make a copy of /usr/bin/mbxcvt (so it doesnt get removed when you un-install uw-imap

exim modifications:

/etc/exim4/update-exim4.conf.conf add the line:
dc_localdelivery='maildir_home'
This forces the autogenerated exim config to use maildir in ~/Maildir

Other exim4 configurations may require changing /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
LOCAL_DELIVER=maildir_home


bincimap modifications:

This is for standard unix authentication (which is not what the default install provides.)

/var/service/bincimaps/run
change
exec tcpsvd -v -c100 -C14 -l0 0 993 \
  bincimap-up --logtype=multilog --conf=/etc/bincimap/bincimap.conf --ssl -- \
 /usr/bin/chkpasswd /usr/sbin/bincimapd
to
exec tcpsvd -v -c100 -C14 -l0 0 993 \
  bincimap-up --logtype=multilog --conf=/etc/bincimap/bincimap.conf --ssl -- \
 /usr/bin/cvm-checkpassword cvm-unix /usr/sbin/bincimapd
Restart the service with
/etc/init.d/inetd restart


Migrating mailboxes:

The USAGE.gz in /usr/share/doc/mb2md is very good here..

Converting the users inbox. (if in /var/spool/mail/[user]
su [user] -c "mb2md -m"

Converting the users inbox. (if in /home/[user]/mbox
su [user] -c "export MAIL=~/mbox; mb2md -m"

Typical outlook user with "Sent" folder in home directory.
su - [user] -c "mb2md -s Sent -d Maildir/.Sent"
note the extra '-' so that su goes to the right directory

And they managed to set up a folder with their mail in "mymail"
su - [user] -c "mb2md -s mymail -R"
(the -R recursively goes down the folders)

Gotcha's

mbx:
I converted some of my mailboxes to mbx a while back, mb2md skips these and you end up with empty folders when converting.

thunderbird:
The thunderbird status flags (eg. important/todo) got striped by mb2md - not sure if those could be preserved.

I've not worked out how to enter folder names with dot's into thunderbird yet.

.mbox filenames
I converted alot of old outlook files before to mbox, and gave some a mbox extension, these will need stripping with "-r mbox" when doing the mb2md conversion.

no shell account
most of the users did not have shell acounts - I temporarily had to give them a shell while converting, otherwise the su stuff above doesnt work.

I've switched over to dovecot now (see the blog), There where major issues with binc and Outlook Express, and a minor one with snappermail.
#0 - ( Link ) on 05 Feb 2005, 16:50 Delete Comment

Add a comment (requires javascript!)

Name
Email
Homepage
Comment
 

Edit Document | Create Page:
Contact me at alan@akbkhome.com