Hello, There have also been a couple patches posted to the mailing list(s) that will automatically create mailboxes for you upon delivery. Ie. if delivering to a username, it creates an INBOX (if that user exists), and if delivering to a specific mailbox, it creates that if missing. The patch(es) probably apply clean against dbmail 1.1, that seems about the right time frame that they were published.
---- Original Message ---- From: Michael Kefeder <[email protected]> To: [email protected] Subject: [Dbmail] custom mailbox creation Sent: Sat, 6 Sep 2003 16:53:15 +0200 > 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 > -- End Original Message -- -- Jesse Norell jesse (at) kci.net
