virtdomains and autocreateinboxfolders not working!! -SOLVED

Matt Goebel mgoebel at workforcesoftware.com
Wed Dec 29 16:55:48 EST 2004


After some further investigation I've figured out a workaround/fix for
this problem.  

Web-cyradm uses the function createmb() to create a new user's mailbox
(located in ./lib/cyradm.php).  This function uses "create" to create a
user INBOX which works fine.  The problem with this is that it that's
all it creates, and once a user has a INBOX autocreateinboxfolders
doesn't work.  (It's triggered my either a new email or first login to
an account without an INBOX).  Using cyradm "create" from the command
line the functionality it identical.  However, if you use "cm" instead
from cyradm it creates the INBOX and all subfolders set by
autocreateinboxfolders.  To fix this I changed "create" to "cm" in the
createmb() function in cyradm.php.  After testing it appears that makes
the create mailbox command fail (no errors!?)  In effect you could also
just disable the call to this function in newaccount.php and it would
have the same effect.  So since the INBOX doesn't now exist... and the
login info does... autocreateinboxfolders works as it's supposed to.
You just need to have it and "createonpost: 1" in your imapd.conf
file.   



On Wed, 2004-12-29 at 15:11 -0500, Matt Goebel wrote:
> After some testing this appears to be an issue with Web-Cyradm.  Using
> cyradm it creates the folders.  Any ideas?
> 
> On Wed, 2004-12-29 at 12:51 -0500, Matt Goebel wrote:
> > There's nothing in the log files that indicates a problem. If there was
> > I'd probably be able to figure this one one.  Autocreateinboxfolders
> > just doesn't work.  Here's the maillog entry for a new user logging in
> > via squirrelmail though:
> > 
> > 
> > Dec 29 11:57:51 mail imap[14936]: login: localhost.localdomain
> > [127.0.0.1] test2.testdomain.com plaintext User logged in
> > Dec 29 11:57:51 mail imap[14956]: accepted connection
> > Dec 29 11:57:51 mail imap[14956]: login: localhost.localdomain
> > [127.0.0.1] test2.testdomain.com plaintext User logged in
> > Dec 29 11:57:51 mail imap[14956]: seen_db: user test2^testdomain^com
> > opened /var/lib/imap/user/t/test2^testdomain^com.seen
> > Dec 29 11:57:51 mail imap[14956]: open: user test2^testdomain^com opened
> > INBOX
> > Dec 29 11:57:52 mail last message repeated 2 times
> > Dec 29 11:57:52 mail imap[14956]: SQUAT failed to open index file
> > Dec 29 11:57:52 mail imap[14956]: SQUAT failed
> > Dec 29 11:57:52 mail imap[14959]: accepted connection
> > Dec 29 11:57:52 mail imap[14959]: login: localhost.localdomain
> > [127.0.0.1] test2.testdomain.com plaintext User logged in
> > Dec 29 11:57:52 mail imap[14959]: seen_db: user test2^testdomain^com
> > opened /var/lib/imap/user/t/test2^testdomain^com.seen
> > Dec 29 11:57:52 mail imap[14959]: open: user test2^testdomain^com opened
> > INBOX/Trash
> > Dec 29 11:57:54 mail imap[14956]: accepted connection
> > Dec 29 11:57:54 mail imap[14956]: login: localhost.localdomain
> > [127.0.0.1] test2.testdomain.com plaintext User logged in
> > Dec 29 11:57:54 mail imap[14956]: open: user test2^testdomain^com opened
> > INBOX/Drafts
> > 
> > By default Squirrelmail creates the folders Drafts, Sent, and Trash when
> > you log in.  That isn't logged anywhere I can see.
> > 
> > 
> > 
> > 
> > On Wed, 2004-12-29 at 01:49 +0200, Aristotelis wrote: 
> > > On Tue, 28 Dec 2004, Matt Goebel wrote:
> > > 
> > > > No matter what I try I can been unable to get either virtdomains or
> > > > autocreateinboxfolders working.  Without virtdomains set (as shown
> > > 
> > >    Hi,
> > > 
> > >   could you please also paste the relevant part of the log file so
> > > that we can see the logs.
> > > 
> > >     Best Regards,
> > >      Aristotelis
> > > ---
> > > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> > > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> > 
> > 
> > ---
> > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> 
> 
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list