groupoffice icon indicating copy to clipboard operation
groupoffice copied to clipboard

New Installation, vmail_path not working

Open gmcpaul opened this issue 2 years ago • 7 comments

Dear all, i recently found this awsome Project which i wanted to try out to finally overcome Kopanos anti community black shadow..

setup and docu is quite straght forward but i stumbled over one problem: regarding to the setup docu setting the vmail_path either to config.php or globalconfig.inc.php shall reset the where the dovecot mailbox stores will be created. but it seems the value does not do anything at all. i also cant find any error msg or so to track down the problem.

i tried so far:

in config.php $config['vmail_path'] = '/home/groupoffice/mailboxes';

in globalconfig.inc.php 'vmail_path' => '/home/groupoffice/mailboxes'

any hits on this ? i really want to get this finished ;-D

gmcpaul avatar Dec 24 '23 15:12 gmcpaul

Hi,

If I understand you correctly, you are trying to configure dovecot through the Group-Office config file. It will not work that way. The vmail_path option is merely to tell Group-Office where the path can be found in case the default is overridden from within the dovecot config.

The main difference between config.php and globalconfig.php is that when you are installing multiple instances on one server, the global configuration stores the default settings for all instances. This can be overridden in config.php . If you just use one instance, you will not be needing a global configuration file.

derjoachim avatar Jan 02 '24 12:01 derjoachim

Hi Joachim, yes regarding to the documentation (or at least how i understood), i thought setting the vmail_path value to the config.php file will create the dovecot directorys and override the dovecot conf files.

So if i understand right, i need to configure the vmail_path in dovecot itself and also in the config.php file so groupware office knows the paths accordingly?

thanks in advance and br paul

gmcpaul avatar Jan 02 '24 17:01 gmcpaul

Yes that's exactly right.

mschering avatar Jan 04 '24 15:01 mschering

ok thanks, so i change the /etc/dovecot/dovecot-groupoffice-sql.conf.ext and /etc/groupoffice/config.php (in my case) according to my paths ?

or is it additionally somewhere else to be changed ?

thank you and all the best

ps maybe these steps are worth mentioning in the docu ;)

gmcpaul avatar Jan 05 '24 09:01 gmcpaul

I am not entirely sure what method you are using to install both Group-Office and Dovecot. If you simply install the groupoffice and groupoffice-mailserver .deb packages, they should work out of the box.

The dovecot-groupoffice-sql.conf.ext file merely tells dovecot which queries to run in the Group-Office database. No paths are set.

derjoachim avatar Jan 08 '24 14:01 derjoachim

@derjoachim Hi, I installed the Package on an Ubuntu 22.04 LTS system as recommended.

Basically what i want to do is to move the Dovecot Mailbox from /var/mail to /home/groupware/mailboxes and im searching for a proper way to do so.

What i did for now (and it seems to work) is that i configured the config.php as well as the dovecot-groupoffice-sql.conf.ext to the mentioned path, moved all the data and chowned the dir to the same as dovecot had...

is that the right way in that case? is there anything else to configure ... z push or so?

thanks paul

gmcpaul avatar Jan 09 '24 08:01 gmcpaul

Sorry for the push... but let me ask again is it the right way to change dovecot-groupoffice-sql.conf.ext so the mailboxpaths are being changed to other dir, or is there anything else to do on some other config files? Just want to make shure everything is done proper ;)

thank you

gmcpaul avatar Jan 31 '24 11:01 gmcpaul

Yes, it's the right way.

mschering avatar Jun 17 '24 08:06 mschering