On Wed, Dec 13, 2006 at 04:25:26AM -0000, Pete wrote:
> Thanks for all the suggestions.
> Does anyone know of a utility that could convert vmailmgr Maildir's to
> mysql or one of these solutions.
I think you're confusing two different things.
(1) Maildirs are directories on the filesystem which hold messages.
(2) The authentication database maps a username into parameters needed to
access each Maildir (e.g. path on the disk, uid, quota) and passwords
to validate account access.
If you have an existing system which already has mail in Maildirs, you won't
need to change the mail storage, since Maildir is a (relatively) standard
format.
If you have an existing authentication database, then you may be able to use
it as-is, by configuring courier-authlib appropriately. For example, if the
database is stored in mysql, then you can configure authmysqlrc to look at
the appropriate table and columns; if necessary you can write a custom
SELECT query which can do joins or whatever. (*)
Otherwise, you export all the accounts from your existing auth database (you
will need to export the usernames, passwords, maildirs, and uids), and
import them into your new one. The only problem you might come across is if
your existing DB contains encrypted passwords, that they are compatible with
courier-authlib.
And as I said before: if you have decided you want to use authuserdb for
your authentication database, there's vchkpw2userdb for converting from
vpopmail into userdb format. You could also use this userdb file as an
intermediate representation of your data which may make it easier to import
into some other database.
Brian.
(*) In fact, there's also authpipe, which lets you write your own
authentication module in a scripting language of your choice, if you want to
continue to use some backend database which isn't directly supported by
courier-authlib
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap