Setting up groupware webmail with Exim4U
For the life of me, I just cannot get the webmail interface working, which is very annoying. For some strange reason, I cannot even get to see any login attempts from the application on my dovecot logs. I have read the webmail installation/configuration over and over and I am on FreeBSD. First, where does the groupware write its logs to? Perhaps when I find that, I can figure out the rest. My ErrorLog directive in Apache doesn't even seem to capture anything:( I have copied my webmail folder to /usr/local/www/apache22/data/webmail. Is there a path I need to change, other than referring to this as DocumentRoot in Apache? I am not even able to login to the interface as the predefined admin user (during setup)! And I am also wondering if in a virtual domain setup one has to login with full e-mail address (which sux!) or just the username. Please help me diagnose this problem. I need to log everything related to this in order to find where the problem is. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
On 10/23/2010 03:57 PM, Odhiambo Washington wrote:
For the life of me, I just cannot get the webmail interface working, which is very annoying. For some strange reason, I cannot even get to see any login attempts from the application on my dovecot logs. I have read the webmail installation/configuration over and over and I am on FreeBSD.
Hi Odhiambo, Sorry that you are having a hard time getting webmail going. Don't worry though. We will get it figured out!
First, where does the groupware write its logs to? Perhaps when I find that, I can figure out the rest. My ErrorLog directive in Apache doesn't even seem to capture anything:(
The default configuration from Horde has Webmail Groupware writing its logs to: /tmp/horde.log. Also, you can change this in webmail/config/conf.php by changing the following value to something else: $conf['log']['name'] = '/tmp/horde.log';
I have copied my webmail folder to /usr/local/www/apache22/data/webmail. Is there a path I need to change, other than referring to this as DocumentRoot in Apache?
As long as your DocumentRoot in apache is defined as /usr/local/www/apache22/data then the webmail folder is correctly located in /usr/local/www/apache22/data/webmail.
I am not even able to login to the interface as the predefined admin user (during setup)!
I suspect that the culprit is either Webmail Groupware's smtp configuration or the MySQL setup. Please verify the following settings in webmail/config/conf.php: $conf['sql']['persistent'] = true; $conf['sql']['username'] = 'horde'; $conf['sql']['password'] = 'CHANGE - MYSQL PASSWORD'; $conf['sql']['socket'] = 'CHANGE - MYSQL SOCKET FILE LOCATION'; $conf['sql']['protocol'] = 'unix'; $conf['sql']['database'] = 'horde'; $conf['sql']['charset'] = 'utf-8'; $conf['sql']['ssl'] = false; $conf['sql']['splitread'] = false; $conf['sql']['phptype'] = 'mysql'; $conf['auth']['admins'] = array('CHANGE - ADMIN EMAIL ADDRESS'); $conf['token']['driver'] = 'sql'; $conf['mailer']['params']['host'] = 'localhost'; $conf['mailer']['params']['port'] = 25; $conf['mailer']['params']['localhost'] = 'localhost'; $conf['mailer']['params']['auth'] = false; $conf['mailer']['type'] = 'smtp'; Please verify the MySQL socket file. For the FreeBSD systems on which I have worked, it has been: "/tmp/mysql.sock". So, that entry should probably look like this: $conf['sql']['socket'] = '/tmp/mysql.sock'; Also, I have attached a working Webmail Groupware main configuration file (webmail/config/conf.php) from another FreeBSD installation. I hope that you find this useful.
And I am also wondering if in a virtual domain setup one has to login with full e-mail address (which sux!) or just the username.
I am not sure about this. All of the installations that I have done have had multiple virtual domains and so the full email address was obviously necessary. However, I see your point for an installation that only has one domain. We will need to take a look at the Horde support documentation to see if there is a way for the users to only enter the local part of their email address and have it then automatically use a single pre-specified domain name. You can research this too at http:/horde.org. FYI, Gordon
On Sun, Oct 24, 2010 at 2:38 PM, Gordon Dickens <gecko(a)exim4u.org> wrote:
On 10/23/2010 03:57 PM, Odhiambo Washington wrote:
For the life of me, I just cannot get the webmail interface working, which is very annoying. For some strange reason, I cannot even get to see any login attempts from the application on my dovecot logs. I have read the webmail installation/configuration over and over and I am on FreeBSD.
Hi Odhiambo,
Sorry that you are having a hard time getting webmail going. Don't worry though. We will get it figured out!
First, where does the groupware write its logs to? Perhaps when I find
that, I can figure out the rest. My ErrorLog directive in Apache doesn't even seem to capture anything:(
The default configuration from Horde has Webmail Groupware writing its logs to: /tmp/horde.log. Also, you can change this in webmail/config/conf.php by changing the following value to something else:
$conf['log']['name'] = '/tmp/horde.log';
Ok. Now I see this file.
I have copied my webmail folder to /usr/local/www/apache22/data/webmail.
Is there a path I need to change, other than referring to this as DocumentRoot in Apache?
As long as your DocumentRoot in apache is defined as /usr/local/www/apache22/data then the webmail folder is correctly located in /usr/local/www/apache22/data/webmail.
I am not even able to login to the interface as the predefined admin
user (during setup)!
I suspect that the culprit is either Webmail Groupware's smtp configuration or the MySQL setup. Please verify the following settings in webmail/config/conf.php:
$conf['sql']['persistent'] = true; $conf['sql']['username'] = 'horde'; $conf['sql']['password'] = 'CHANGE - MYSQL PASSWORD'; $conf['sql']['socket'] = 'CHANGE - MYSQL SOCKET FILE LOCATION'; $conf['sql']['protocol'] = 'unix'; $conf['sql']['database'] = 'horde'; $conf['sql']['charset'] = 'utf-8'; $conf['sql']['ssl'] = false; $conf['sql']['splitread'] = false; $conf['sql']['phptype'] = 'mysql'; $conf['auth']['admins'] = array('CHANGE - ADMIN EMAIL ADDRESS');
Only difference is that I did not use "persistent" connections to the DB.
$conf['token']['driver'] = 'sql'; $conf['mailer']['params']['host'] = 'localhost'; $conf['mailer']['params']['port'] = 25; $conf['mailer']['params']['localhost'] = 'localhost'; $conf['mailer']['params']['auth'] = false; $conf['mailer']['type'] = 'smtp';
Mine had these: $conf['mailer']['params']['sendmail_path'] = '/usr/sbin/sendmail'; $conf['mailer']['params']['sendmail_args'] = '-oi'; $conf['mailer']['type'] = 'sendmail';
Please verify the MySQL socket file. For the FreeBSD systems on which I have worked, it has been: "/tmp/mysql.sock". So, that entry should probably look like this:
$conf['sql']['socket'] = '/tmp/mysql.sock';
This is as it is.
Also, I have attached a working Webmail Groupware main configuration file (webmail/config/conf.php) from another FreeBSD installation. I hope that you find this useful.
I was being bit by this variable: $conf['cookie']['path'] = '/webmail'; I changed that to: $conf['cookie']['path'] = '/'; and everything started working fine.
And I am also wondering if in a virtual domain setup one has to login with full e-mail address (which sux!) or just the username.
I am not sure about this. All of the installations that I have done have had multiple virtual domains and so the full email address was obviously necessary. However, I see your point for an installation that only has one domain. We will need to take a look at the Horde support documentation to see if there is a way for the users to only enter the local part of their email address and have it then automatically use a single pre-specified domain name. You can research this too at http:/horde.org.
I do remember vaguely from long time ago about the concept of virtual domains support in Horde. It was something to do with vinfo, but that's as far as I can remember. I will investigate. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Damn!!
On 10/25/2010 06:21 AM, Odhiambo Washington wrote:
I was being bit by this variable:
$conf['cookie']['path'] = '/webmail';
I changed that to: $conf['cookie']['path'] = '/'; and everything started working fine.
Hi Odhiambo, Yea, I should have probably mentioned that directly since you listed your document root as /usr/local/www/apache22/data/webmail in your earlier email. I noticed that subtilty which is why I specified in my earlier email that your document root should be /usr/local/www/apache22/data assuming your webmail folder was located in /usr/local/www/apache22/data/webmail. Nevertheless, your fix is certainly appropriate if you want webmail to be your DocumentRoot's root directory. I'm glad that you got it sorted out. Thanks for replying back with your resolution! Gordon
participants (2)
-
Gordon Dickens
-
Odhiambo Washington