Michael,

A quick read of dbauthmysql.c tells me:


/*
 * auth_adduser()
 *
 * adds a new user to the database
 * and adds a INBOX
 * returns a useridnr on succes, -1 on failure
 */


And I'm pretty sure this is required for imap as well as pop3




Michael Kefeder wrote:
Hi List

I am working on DBmail integration to an existing usermanagement system i run. I already store username, domain, password, quota and many other things in that management system - what i did was dropping the aliases and users table from the dbmail structure and created VIEWS that map my existing info to something useful for dbmail.

I already succeeded in getting dbmail 1.1 to authenticate against my existing md5sum passwords, and that my MTA (Exim) delivers mail.

But what i didn't manage to figure out was how the mailbox system works for dbmail. The dbmail injector successfully delivered mail to my user even though no mailbox existed. When i logged in using IMAP the client showed no folders (surprise, surprise - there are no mailboxes). What i want to know is - where, in its code, does dbmail create a default set of mailboxes? And to which mailbox does dbmail deliver new mails by default? With that information i can write a script that creates the needed default mailboxes when i add a user to my management system (i already do that for my old system, but there i create a default maildir structure).

dbmail-adduser crashes with a segmentation fault (probably because i created rules for my views to do nothing on insert, update and delete), so i cannot use that tool (i guess that this program creates the default mailboxes). Given enough time i will try to fix either dbmail-adduser or create useful rules for my db-system ;) I created a mailbox containing the test mails using direct sql commands and it works, but before i create my own crazy standard i wanted to ask the list ;)

thanks in advance for any hints

 Mike

_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail



--
  ________________________________________________________________
  Paul Stevens                                  mailto:[EMAIL PROTECTED]
  NET FACILITIES GROUP                     PGP: finger [EMAIL PROTECTED]
  The Netherlands________________________________http://www.nfg.nl

Reply via email to