Koozali.org: home of the SME Server

SOGO for Sme

Offline perelandra

  • *
  • 62
  • +0/-0
Re: SOGO for Sme
« Reply #135 on: November 17, 2011, 04:21:44 PM »
If the problem has not been solved yet (bricked sogo after update to 1.3.9), be sure to update all sope packages by
Code: [Select]
yum update sogo sope49-gdl1-contentstore sope49-cards --enablerepo=sogo --disablerepo=epel
Yum will also update gnustep-base and gnustep-make.

This will cause sogod to stop after a reboot; so be sure to modify create and expand the following template:

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85SOGoAccess

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85SOGoAccess

Now edit the newly created template wit your favorite editor like mc or pico, e.g.
Code: [Select]
pico -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85SOGoAccess
In this file the paths in the final two blocks of the template are important! Please compare them with your file!

Some lines:
Quote
Alias /.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/                                                                                                                                                                       
Alias /SOGo.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/                                                                                                                                                                   
Alias /SOGo/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/                                                                                                                                                                       
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2                                                                                                                                       
                                                                                                                                                                                                                                               
<Directory "/usr/lib/GNUstep/SOGo/WebServerResources/">                                                                                                                                                                                         
    AllowOverride None                                                                                                                                                                                                                         
    Options +ExecCGI -Includes                                                                                                                                                                                                                 
    Order allow,deny                                                                                                                                                                                                                           
    Allow from all                                                                                                                                                                                                                             
</Directory>       

The complete and working content:
Code: [Select]
# SOGo Groupware                                                                                                                                                                                                                               
{                                                                                                                                                                                                                                               
    $sogoStatus = $sogod{'status'} || "disabled";                                                                                                                                                                                               
    $webmailStatus = $imp{'status'} || "disabled";                                                                                                                                                                                             
                                                                                                                                                                                                                                               
    $OUT = "";                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                               
    if (($webmailStatus eq 'disabled') and ($sogoStatus eq 'enabled')) {                                                                                                                                                                       
        $OUT = "Redirect /webmail https://${SystemName}.${DomainName}/SOGo";                                                                                                                                                                   
    }                                                                                                                                                                                                                                           
}                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                               
Redirect /sogo https://{$SystemName}.{$DomainName}/SOGo                                                                                                                                                                                         
                                                                                                                                                                                                                                               
ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo                                                                                                                                                                                       
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo                                                                                                                                                                               
                                                                                                                                                                                                                                               
<Location /SOGo>                                                                                                                                                                                                                               
        order deny,allow                                                                                                                                                                                                                       
        deny from all                                                                                                                                                                                                                           
        allow from all                                                                                                                                                                                                                         
        SSLRequireSSL on                                                                                                                                                                                                                       
        RequestHeader set "x-webobjects-server-url" "https://{$SystemName}.{$DomainName}/SOGo"                                                                                                                                                 
</Location>                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                               
Alias /.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/                                                                                                                                                                       
Alias /SOGo.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/                                                                                                                                                                   
Alias /SOGo/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/                                                                                                                                                                       
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2                                                                                                                                       
                                                                                                                                                                                                                                               
<Directory "/usr/lib/GNUstep/SOGo/WebServerResources/">                                                                                                                                                                                         
    AllowOverride None                                                                                                                                                                                                                         
    Options +ExecCGI -Includes                                                                                                                                                                                                                 
    Order allow,deny                                                                                                                                                                                                                           
    Allow from all                                                                                                                                                                                                                             
</Directory>                                                                                                                                                                                                                                   
                   

Tell your server to

Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith
service sogod start

If this still won't solve your problem, chown the folowing folders to sogo:sogo

/home/sogo
/var/run/sogo
/var/log/sogo (you may also delete older logfiles in this directory if you re-installed sogo)

Did I miss something?
« Last Edit: November 19, 2011, 11:47:24 AM by perelandra »
Greetings, Johannes

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SOGO for Sme
« Reply #136 on: November 17, 2011, 04:26:09 PM »

Did I miss something?


yes.. that you'd never edit fragments in /etc/e-smith/templates/* tree.. you should create the same dir structure in /etc/e-smith/templates-custom, copy there your fragment and modify accordingly to your needs.. in this way your modifications will survive a server update..

HTH

Offline perelandra

  • *
  • 62
  • +0/-0
Re: SOGO for Sme
« Reply #137 on: November 17, 2011, 04:33:02 PM »
yes.. that you'd never edit fragments in /etc/e-smith/templates/* tree..

Thanks! Very good advice!

Will the template in /etc/e-smith/templates/ stay after I copied it to templates-custom or may I delete it?
Greetings, Johannes

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SOGO for Sme
« Reply #138 on: November 17, 2011, 04:43:43 PM »
you should keep the original file in /etc/e-smith/templates/

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: SOGO for Sme
« Reply #139 on: November 17, 2011, 09:54:08 PM »
perelandra

Quote
Will the template in /etc/e-smith/templates/ stay after I copied it to templates-custom or may I delete it?

NEVER delete or modify the original templates in /etc/e-smith/templates/
The copied template in /etc/e-smith/templates-custom can be modified (and deleted when no longer required).

By retaining the original templates, your system can be reverted to default settings quite easily and quickly, eg in the event your custom template modifications cause the server to malfunction or even not work at all.

Please read this tutorial for some further understanding.
http://wiki.contribs.org/Template_Tutorial
Essentially (by design) the custom template (with the same name) will override the main template
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline perelandra

  • *
  • 62
  • +0/-0
Re: SOGO for Sme
« Reply #140 on: November 18, 2011, 11:19:08 AM »
Edited post #135 to comply with the rules of SME template system
« Last Edit: November 18, 2011, 11:39:41 AM by perelandra »
Greetings, Johannes

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: SOGO for Sme
« Reply #141 on: November 18, 2011, 06:39:23 PM »
perelandra

Also better as a standard best practice to use pico -w to avoid unintended line wrapping problems
ie
Code: [Select]
pico -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85SOGoAccess
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SOGO for Sme
« Reply #142 on: November 19, 2011, 11:45:51 AM »
Code: [Select]
mkdir /etc/e-smith/templates-custom/etc/
mkdir /etc/e-smith/templates-custom/etc/httpd/
mkdir /etc/e-smith/templates-custom/etc/httpd/conf/
mkdir /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
Just a tip: this can all be done in a one liner:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline perelandra

  • *
  • 62
  • +0/-0
Re: SOGO for Sme
« Reply #143 on: November 19, 2011, 11:48:20 AM »
Thanks! This thread is a very good learning tutorial - for me! :-)
Greetings, Johannes

Offline lerry

  • *
  • 23
  • +0/-0
Re: SOGO for Sme
« Reply #144 on: November 22, 2011, 04:09:30 PM »
I have some problem with SOGo 13.9 with SMEServer 8b6. I followed the guide in the previous post with no luck. Maybe i miss somethink. When i look at httpd_error.log i found this line when i try to access the SOGo page:

[error] [client 192.168.0.132] client denied by server configuration: /usr/lib/GNUstep/System, referer: https://192.168.0.9/SOGo/

I take a look to /usr/lib/GNUstep but i didn't find any System directory or file! Also the main page of SOGo haven't any css or image loaded.

Someone can help me?

Thanks in advice!

Offline Gary Douglas

  • *
  • 68
  • +1/-0
Re: SOGO for Sme
« Reply #145 on: November 23, 2011, 03:28:46 PM »
I have installed today, and resolved the issue;  The paths have changed in this version, 85SOGoAccess still has the old paths.

IN;  /etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess

the PATH should be; /usr/lib/GNUstep/

------------------------------------------------------------------------------

# SOGo Groupware
{
    $sogoStatus = $sogod{'status'} || "disabled";
    $webmailStatus = $imp{'status'} || "disabled";

    $OUT = "";

    if (($webmailStatus eq 'disabled') and ($sogoStatus eq 'enabled')) {
        $OUT = "Redirect /webmail https://${DomainName}/SOGo";
    }
}

Redirect /sogo https://{$DomainName}/SOGo

ProxyPass /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo
ProxyPassReverse /SOGo http://127.0.0.1:{$sogod{'TCPPort'}}/SOGo

<Location /SOGo>
   order deny,allow
   deny from all
   allow from all
   SSLRequireSSL on
   RequestHeader set "x-webobjects-server-url" "https://{$DomainName}/SOGo"
</Location>

Alias /.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/
Alias /SOGo.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2

<Directory "/usr/lib/GNUstep/SOGo/WebServerResources/">
    AllowOverride None
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
</Directory>

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: SOGO for Sme
« Reply #146 on: November 23, 2011, 04:22:10 PM »
Is this installation of SOGO also using the openchange link for MS Outlook and other activesync clients?  I'm curious how well it works.  Thanks.

 http://www.openchange.org/

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SOGO for Sme
« Reply #147 on: November 23, 2011, 04:26:23 PM »
no, because openchange (and SOGo 2) needs samba4

Offline Mat78

  • **
  • 51
  • +0/-0
Re: SOGO for Sme
« Reply #148 on: November 23, 2011, 10:52:49 PM »
Hi,

I've installed Sogo 1.3.9 as per wiki.

Everythings works well if I use a web browser but if I try to use thunderbird there is an error and i'm not able to use SOGo Integrator.

Is it a known problem or is there a way to solve the problem?

TIA

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SOGO for Sme
« Reply #149 on: November 23, 2011, 11:00:16 PM »
Everythings works well if I use a web browser but if I try to use thunderbird there is an error and i'm not able to use SOGo Integrator.
It would be a lot easier if you were to also tell us the exact error message, now you leave us guessing which makes it hard to help you. We do not have a crystal ball...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)