Author Topic: [SOLVED] Where is webmail?  (Read 12863 times)

gofast321

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +4/-0
    • View Profile
[SOLVED] Where is webmail?
« on: December 16, 2016, 07:31:25 pm »
I'm going to apologize upfront if this is a stupid question but what it the link to webmail on a Zentyal 5.0 box?

I have run Zentyal 4 for a few years and I just setup a Zentyal 5 box. In Zentyal 4 the link to webmail was always https://server_ip/sogo however that does not work in Zentyal 5.

Can anyone point me in the right direction?


Thanks.
« Last Edit: December 19, 2016, 02:38:32 pm by gofast321 »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 862
  • Karma: +58/-0
    • View Profile
Re: Where is webmail?
« Reply #1 on: December 17, 2016, 01:41:44 am »
Let me go one step further and show you how I arrived at the answer.  First things first, let's determine what is listening on port 443 or https.
Code: [Select]
sudo ss -ltpn |grep :443

Which gives the result of :

Quote
LISTEN     0      128          *:443                      *:*                   users:(("apache2",pid=11612,fd=3),("apache2",pid=11611,fd=3),("apache2",pid=3437,fd=3))

Ahh...  so apache is handling https traffic.  All of apache's configs are kept under /etc/apache2.  A quick look in the directory shows me a couple of config files and several sub directories. 

apache2.conf has the base config + a quick explanation of the directory structure in the comments.

You have three directory categories and two statuses to choose from.  You have conf, mods, and sites for categories and available and enabled for statuses.

So  you see directories like conf-available and conf-enabled and so on.  We are interested in what is actually enabled.  IF we were looking for Sogo.my.domain  that would be a virtual host and you would find that under sites-enabled.  If we are looking for my.domain/sogo   that is going to be under a configured directory which you will find in conf-enabled.  Assuming we don't know which that is we just check each directory in turn looking for clues.

My sites-enabled has :
000-default.conf and default-ssl.conf.  Neither of these had a reference to Sogo so it isn't a  virtual host.

Next we check conf-enabled:
Surprise! there is a SOGo.conf.  It is probably going to be SOGo but let's make sure by reading the conf file.
Inside we find
Quote
ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
so definitely it is going to be my.domain/SOGo/

Hopefully this helps! 

I wrote this from a "assumes nothing" standpoint and I did not intend to give the impression I was talking down to you.

ETA: added sudo to the ss command to allow access to process application and pid information

« Last Edit: December 21, 2016, 04:44:16 pm by half_life »

gofast321

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +4/-0
    • View Profile
Re: Where is webmail?
« Reply #2 on: December 19, 2016, 04:04:53 am »
Thanks for the extensive information. I'm still pretty green with Linux  so I really appreciate the help.  I did follow your post and I reviewed the conf files and I can also see that sogo webmail should be at https://server_ip/sogo however it still will not load and I continue to get a 404 error.  I have turned off the firewall to help eliminate variables.  When I check to see what is listening on 443 and 80 this is what I get:

gofast321@wis1:~$ ss -ltpn |grep :443
LISTEN     0      128          *:443                      *:*       

gofast321@wis1:/etc/apache2$ ss -ltpn |grep :80
LISTEN     0      128          *:80                       *:*

Just to note, I have not modified anything on this box. I did a plain installation as it comes from Zentyal. It is a domain controller and email server.  The DC and the email is working fine. Only Sogo won't load its webpage.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 862
  • Karma: +58/-0
    • View Profile
Re: Where is webmail?
« Reply #3 on: December 19, 2016, 05:43:04 am »
Capitalisation is important.  I believe you will find that it is
Code: [Select]
https://your.ip.address/SOGo

I intended the capitalisation that you see 
Quote
SOGo

If you skip the https://  portion it will do a redirect and correct the case issues.  If you use https:// initially, it never goes through the rewrite logic and therefore your case must be accurate.   Copy and paste from above and then edit the "your.ip.address" portion to match the server in question.  I believe you will see what I mean..

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 862
  • Karma: +58/-0
    • View Profile
Re: Where is webmail?
« Reply #4 on: December 19, 2016, 05:51:22 am »
I just noticed that you ran the ss commands as a normal user.  If you are not using root, you don't have the necessary permissions to see the application name or pid info.  My mistake,  I should have included a sudo command in front of each command above or specified to become root. 

By the way since Ubuntu doesn't define a root password by default you will have to do something similar to the following to become root:
Code: [Select]
sudo su
Once you are finished with admin type functions you just type exit to return to your standard user.

gofast321

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +4/-0
    • View Profile
Re: Where is webmail?
« Reply #5 on: December 19, 2016, 02:34:34 pm »
Thanks so much for the help and guidance.  It was a capitalization issue.  I definitely learned a few new things.

bilal iqbal

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] Where is webmail?
« Reply #6 on: April 11, 2017, 09:50:32 pm »
Thank you,

half_life, it helped me as well......