Author Topic: Quick Howto: SOGo  (Read 58347 times)

FutureTechSys

  • Zen Warrior
  • ***
  • Posts: 163
  • Karma: +0/-0
    • View Profile
    • Future Tech Systems, LLC
Re: Quick Howto: SOGo
« Reply #30 on: October 14, 2010, 02:52:51 am »
1.)
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled

2.)
 USER        PID ACCESS COMMAND
80/tcp:              root       3583 F.... (root)apache2
                     www-data   3676 F.... (www-data)apache2
                     www-data   3678 F.... (www-data)apache2
                     www-data   5309 F.... (www-data)apache2
                     www-data   5312 F.... (www-data)apache2
                     www-data   5313 F.... (www-data)apache2
                     www-data   5314 F.... (www-data)apache2
                     www-data   5315 F.... (www-data)apache2
                     www-data   5316 F.... (www-data)apache2
                     www-data   5317 F.... (www-data)apache2
                     www-data   5812 F.... (www-data)apache2
Future Tech Systems, LLC
http://www.FutureTechSys.com

See our Zazen servers running Zentyal!
http://www.futuretechsys.com/small-biz/

SpiderOak online backup - 2GB Free!
https://spideroak.com/download/promo/fts

binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #31 on: October 14, 2010, 11:13:05 am »
2.)
 USER        PID ACCESS COMMAND
80/tcp: apache2

If an apache restart fails, and there is still an apache instance running on port 80, something is wrong with your apache configuration or you still have a zombie process, I think. Did you kill the old processes or did you restart your server since the changes? As this has nothing to do with SOGo itself, maybe start a new thread. Maybe the proxy issue is resolved once you tackled this.

Björn

satyris

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #32 on: October 21, 2010, 02:05:53 pm »
When i use this command:

Code: [Select]
sogo@xxx:~/GNUstep/Defaults$ defaults write sogod
i only get:

Quote
defaults: no dictionary or key for write!

When i use this command:

Code: [Select]
defaults write sogod GNUstepDefaults.txt
i only get:

Quote
defaults write: domain is not a dictionary!


So how can i use my template???

binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #33 on: October 21, 2010, 06:00:11 pm »
Hi satyris,

# defaults write sogod KEY VALUE

This is why the error message is: no dictionary or KEY for write! :-P.

Please have a look at [1].

So long,

Björn

[1] http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf

satyris

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #34 on: October 21, 2010, 06:57:44 pm »
Hi Björn,

i understand the failure message, but not how you will use your posted template with "defaults write sogod" ?!

My changed template is in GNUstepDefaults.txt, but how to get it in a xml version?


binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #35 on: October 22, 2010, 07:58:33 pm »
Hi, everything should be in

 /home/sogo/GNUstep/Defaults/.GNUstepDefaults

If you paste and adjust the bracket-style configuration file, and use the defaults command (e.g., su - sogo; defaults write sogod SOGoTimeZone "America/Montreal"), it gets converted automagically in the xml format. But it still works with the bracket-style configuration as well.

Björn

satyris

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #36 on: October 23, 2010, 09:14:01 am »
Hello Björn

Quote
defaults write sogod SOGoTimeZone "America/Montreal"

results in:

Quote
2010-10-23 09:00:11.096 defaults[10620] File NSDictionary.m: 628. In -[NSDictionary initWithContentsOfFile:] Contents of file '/home/sogo/GNUstep/Defaults/.GNUstepDefaults' does not contain a dictionary
2010-10-23 09:00:11.180 defaults[10620] File NSDictionary.m: 628. In -[NSDictionary initWithContentsOfFile:] Contents of file '/home/sogo/GNUstep/Defaults/.GNUstepDefaults' does not contain a dictionary

Only the string SOGoTimeZone "America/Montreal" is included now.

When i try it with the bracket-style configuration file:

Code: [Select]
/etc/init.d/sogo restart
 * Restarting SOGo sogo  
2010-10-23 09:08:24.471 sogod[10866] File NSDictionary.m: 628. In -[NSDictionary initWithContentsOfFile:] Contents of file '/home/sogo/GNUstep/Defaults/.GNUstepDefaults' does not contain a dictionary
<0x0x27398b0[SOGoStartupLogger]> No configuration found. SOGo will not work properly.



« Last Edit: October 23, 2010, 09:15:43 am by satyris »

binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #37 on: October 24, 2010, 10:43:10 am »
Hello satyris,

Just to be sure that we are talking about the same things:

You copied and adjusted the bracket-style example configuration from this thread (or from the sogo manual; same same ...) into

/home/sogo/GNUstep/Defaults/.GNUstepDefaults

This is the file used by the SOGo daemon by default. It should be owned by the sogo user. The first time you use the defaults command on that file, the file should get automagically converted to the new xml format.

Alternatively you can build up the file using the defaults write command (very important: as user sogo), as described in the SOGo manual straight away. I just find it easier to adjust all the ldap and database details in a text file.

SOGo should be ready to go now. Could you please confirm that you followed these steps, please. And if so, and SOGo is still not running, could you please post (or attach) your .GNUstepDefaults-file, please.

Björn


chrischnian

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #38 on: October 25, 2010, 07:46:01 am »
Hello

on my zentyal the sieve port is the port 4190.
Sogo will the Port 2000 for Sieve.

I take the Firewall port replication for port 2000 is look the port 4190.
The time for the save the Preferences is 3 min or longer and the the settings have no effect.

Here the log for an save:

Quote
-mailserver:~# tail -f /var/log/sogo/sogo.log
127.0.0.1 - - [25/Oct/2010:07:28:43 GMT] "GET /SOGo/christian.saeum HTTP/1.1" 30                                                                             2 0/0 0.004 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:43 GMT] "GET /SOGo/christian.saeum/view HTTP/1.                                                                             1" 302 0/0 0.013 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:43 GMT] "GET /SOGo/so/christian.saeum/Mail HTTP                                                                             /1.1" 302 0/0 0.005 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:43 GMT] "GET /SOGo/so/christian.saeum/Mail/view                                                                              HTTP/1.1" 200 8535/0 0.080 28915 70% 0
127.0.0.1 - - [25/Oct/2010:07:28:44 GMT] "POST /SOGo/so/christian.saeum/Calendar                                                                             /alarmslist?browserTime=1287984524 HTTP/1.1" 200 2/0 0.017 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:44 GMT] "POST /SOGo/so/christian.saeum/Mail/0/m                                                                             ailboxes HTTP/1.1" 200 339/0 0.061 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:44 GMT] "POST /SOGo/so/christian.saeum/Mail//0/                                                                             folderINBOX/uids HTTP/1.1" 200 155/28 0.028 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:44 GMT] "POST /SOGo/so/christian.saeum/Mail//0/                                                                             folderINBOX/unseenCount HTTP/1.1" 200 13/0 0.057 - - 0
127.0.0.1 - - [25/Oct/2010:07:28:45 GMT] "POST /SOGo/so/christian.saeum/Mail/fol                                                                             dersState HTTP/1.1" 200 24/0 0.015 - - 0
127.0.0.1 - - [25/Oct/2010:07:30:08 GMT] "GET /SOGo/so/christian.saeum/preferenc                                                                             es HTTP/1.1" 200 13872/0 0.043 55736 75% 28K
<0x02B7E360[SOGoMailAccount]:0> failure. Attempting with a renewed password.
<0x02B7E360[SOGoMailAccount]:0> Could not login 'christian.saeum@example.com' (PW) on Sieve server: <0x0x2c29ad0[NGSieveClient]: socket=<NGActiveSocket[0x0x2c25d30]: mode=<closed> address=<0x0x2b5b0d0[NGInternetSocketAddress]: host=localhost port=37538>>>: {RawResponse = "{}"; result = NO; }
127.0.0.1 - - [25/Oct/2010:07:34:39 GMT] "POST /SOGo/so/christian.saeum/preferences HTTP/1.1" 200 293/1817 264.043 - - 32K
127.0.0.1 - - [25/Oct/2010:07:34:40 GMT] "POST /SOGo/so/christian.saeum/Mail//0/folderINBOX/uids HTTP/1.1" 200 155/28 0.328 - - 0
127.0.0.1 - - [25/Oct/2010:07:34:40 GMT] "POST /SOGo/so/christian.saeum/Mail//0/folderINBOX/unseenCount HTTP/1.1" 200 13/0 0.059 - - 0
127.0.0.1 - - [25/Oct/2010:07:34:40 GMT] "POST /SOGo/so/christian.saeum/Mail//0/folderINBOX/unseenCount HTTP/1.1" 200 13/0 0.052 - - 0
<0x0x2583b80[WOWatchDog]> Terminating with signal 15
<0x0x25a40f0[WOWatchDogChild]> sending terminate signal to pid 26902
<0x0x25a40f0[WOWatchDogChild]> child 26902 exited
<0x0x2583b80[WOWatchDog]> all children exited. We now terminate.
« Last Edit: October 25, 2010, 07:47:34 am by chrischnian »

satyris

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #39 on: October 25, 2010, 10:58:06 am »
Hi Björn,
sorry for being a little "slow"

Here is what i did:

sogo@xxx:~/GNUstep/Defaults$ cat GNUstepDefaults.txt
Code: [Select]

{
    NSGlobalDomain = {
    };
    sogod = {
        WOApplicationRedirectURL = "https://xxx/SOGo/";
        #OCSFolderInfoURL = "mysql://{$sogouser}:{$sogopassword}@localhost:3306/{$sogodb}/sogo_folder_info";
        SOGoProfileURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_user_profile"
        OCSFolderInfoURL = "postgresql://sogo:sogo@localhost:5432/sogo/sogo_folder_info"
        
      SOGoACLsSendEMailNotifications = YES;
        SOGoAppointmentSendEMailNotifications = YES;
        SOGoAuthenticationMethod = LDAP;
        SOGoDraftsFolderName = Drafts;
        SOGoFirstDayOfWeek = 1;
        SOGoFoldersSendEMailNotifications = YES;
        SOGoForceIMAPLoginWithEmail = YES;
        SOGoForwardEnabled = YES;
        SOGoIMAPServer = localhost;
        SOGoLanguage = German;
        SOGoMailDomain = mail.fritz.box;
        SOGoMailingMechanism = sendmail;
        SOGoOtherUsersFolderName = "Other Users";
        #SOGoProfileURL = "mysql://{$sogouser}:{$sogopassword}@localhost:3306/{$sogodb}/sogo_user_profile";
        SOGoSMTPServer = localhost;
        SOGoSentFolderName = Sent;
        SOGoSharedFolderName = "Shared Folders";
        SOGoSuperUsernames = (sogo      
        );
        SOGoTimeZone = Europe/Berlin;
        SOGoTrashFolderName = Trash;
        SOGoUserSources = (
            {
                CNFieldName = cn;
                IDFieldName = uid;
                UIDFieldName = uid;
                baseDN = "ou=Users,dc=ebox";
                bindDN = "cn=ebox,dc=ebox";
                bindPassword = xxxx;
                canAuthenticate = YES;
                displayName = "Shared Addresses";
                hostname = localhost;
                id = public;
                isAddressBook = YES;
                port = 389;
            }
        );
        SOGoVacationEnabled = YES;
        WOMessageUseUTF8 = YES;
        WOParsersUseUTF8 = YES;
        WOPort = 20000;
        WOSendMail = "/usr/sbin/sendmail";
    };
}

Thats my template. Now i use /etc/init.d/sogo restart
Quote
* Restarting SOGo sogo                                                                                                                                                            2010-10-25 10:53:15.359 sogod[9585] File NSDictionary.m: 628. In -[NSDictionary initWithContentsOfFile:] Contents of file '/home/sogo/GNUstep/Defaults/.GNUstepDefaults' does not contain a dictionary
<0x0x249e790[SOGoStartupLogger]> No configuration found. SOGo will not work properly.

After that, i get a .GNUstepDefaults file with the following content:

sogo@xxx:~/GNUstep/Defaults$ cat .GNUstepDefaults

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN" "http://www.gnustep.org/plist-0_9.xml">
<plist version="0.9">
<dict>
    <key>NSGlobalDomain</key>
    <dict>
    </dict>
    <key>sogod</key>
    <dict>
    </dict>
</dict>
</plist>
« Last Edit: October 25, 2010, 11:01:32 am by satyris »

binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #40 on: October 25, 2010, 01:04:41 pm »
Hi satyris,

Looks all right. Paste your GNUstepDefaults.txt in your .GNUstepDefaults and it should run perfectly fine. I am still not sure why you have a GNUstepDefaults.txt. There should be only the  .GNUstepDefaults file, only the .GNUstepDefaults file is read by sogod by default! GNUstepDefaults.txt will never be used by default.

Hello chrischnian,

I do not understand your question. If you want to file a bug, please use the sogo mailing list. I am just a convinced SOGo user, I am not a developer.

So long,

Björn


satyris

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #41 on: October 25, 2010, 06:20:15 pm »
Hi Björn,

my GNUstepDefaults.txt was just for testing.
First i copied your template in that file and then changed the values for my needings.

Last step was cp GNUstepDefaults.txt to .GNUstepDefaults.

As far as i understand it should work. Mhm, so thats not very nice.

Can you do me a big favour?
Can you convert my .GNUstepDefaults to xml format, please?
« Last Edit: October 25, 2010, 06:38:10 pm by satyris »

binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #42 on: October 25, 2010, 11:31:56 pm »
I added the xml example to the description, so it does not get lost in the depth of this thread. It is a bit more complex, though.

Note: the bracket style configuration gets automatically converted into xml after using defaults write, and both styles work anyway so you can use the bracket style as well.

Björn

satyris

  • Zen Monk
  • **
  • Posts: 94
  • Karma: +0/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #43 on: October 27, 2010, 10:41:37 am »
Hi Björn,
i have managed the problem with .GNUstepDefaults

After that, there were problems with apache2 (a2enmod proxy, a2enmod headers)

a few warnings:

/etc/init.d/apache2 restart

Quote
* Restarting web server apache2                                                                                                                                                   [Wed Oct 27 10:37:39 2010] [warn] The Alias directive in /etc/apache2/conf.d/SOGo.conf at line 3 will probably never match because it overlaps an earlier Alias.
[Wed Oct 27 10:37:39 2010] [warn] The Alias directive in /etc/apache2/conf.d/SOGo.conf at line 5 will probably never match because it overlaps an earlier Alias.
 ... waiting [Wed Oct 27 10:37:40 2010] [warn] The Alias directive in /etc/apache2/conf.d/SOGo.conf at line 3 will probably never match because it overlaps an earlier Alias.
[Wed Oct 27 10:37:40 2010] [warn] The Alias directive in /etc/apache2/conf.d/SOGo.conf at line 5 will probably never match because it overlaps an earlier Alias.

but, how to access sogo now?

http://server:20000/
http://server:20000/SOGo
http://server/SOGo

all not working ???

This is the important Proxypart of my SOGo.conf

Quote
ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
  RequestHeader set "x-webobjects-server-port" "80"
  RequestHeader set "x-webobjects-server-name" "server"
  RequestHeader set "x-webobjects-server-url" "http://server"


binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: Quick Howto: SOGo
« Reply #44 on: October 28, 2010, 11:41:11 pm »
                                                                                                                                             
[Wed Oct 27 10:37:39 2010] [warn] The Alias directive in /etc/apache2/conf.d/SOGo.conf at line 3 will probably never match because it overlaps an earlier Alias.

You have a logical error in your apache configuration. Most likely two sogo-related entries.


but, how to access sogo now?


This is explicitly mentioned in the manual :-P. Hint: you set up an alias and a proxy in apache. So why should you access it directly? But without getting rid of the apache error, it might not work.

Björn