Roundcube Community Forum

 

Register Plugin: Not adding all nessessary entries to database

Started by megadeth23, December 25, 2013, 02:21:05 PM

Previous topic - Next topic

megadeth23

I am running an iredmail server with roundcube installed. I have added the register plugin to roundcube. It is adding users to the database as expected, however it is not adding the information to the storagebaseinput field (which points the mail system to the home folder of all the vmail boxes) or the storagenode field. (which points the mail system to the actual storage folder of the users email)

this causes new users to get a database connection error after they create there accounts. If I input the fields manually into the database, the users can connect just fine. is there a way to ensure that these fields are filled in automatically. any help you all can provide would be great

megadeth23

I found a workaround for this issue. I edited the /etc/dovecot/dovecot-mysql.conf file. This causes the users to be created and allows them to log in without error. It does not, however, populate the 2 areas in the database mentioned above,

I edited the following line to read:

CONCAT(mailbox.storagebasedirectory, '/mail/vmail/vmail1', mailbox.storagenode, '/',
(I installed iredmail with the above mail store instead of the default which may have been part of the issue)

I had originally tried to enter storagebasedirectory '/mail/vmail/', mailbox.storagenode, '/vmail1',  (like it should show up in database) but this caused it to create a whole other folder within vmail folder. seeing this, i tried the above. the mailboxes are created where they are supposed to be but without the 3 single letter folders (ex: vmail1/domain_name/p/o/s)

hope this helps anyone having this issue. also if anyone knows of a better way, please let me know.