Try the fastest and simplest way to install ONLYOFFICE

[Solved] Install Mail afterwards

Tech support for Enterprise Version

[Solved] Install Mail afterwards

Postby kiar » Mon Oct 17, 2016 9:30 am

Hello,

I've installed successfully the enterprise version on a debian jessie server with this script : http://helpcenter.onlyoffice.com/server ... ation.aspx ( option -ims false ) :

Code: Select all
# docker ps
CONTAINER ID        IMAGE                                                COMMAND                  CREATED             STATUS              PORTS                                                                                                                               NAMES
7aaeb0f1d558        onlyoffice4enterprise/communityserver-ee:8.9.1.191   "/bin/sh -c 'exec dum"   25 hours ago        Up 12 hours         0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 3306/tcp, 5280/tcp, 9865-9866/tcp, 9871/tcp, 9882/tcp, 0.0.0.0:5222->5222/tcp, 9888/tcp   onlyoffice-community-server
ffd2c1ce9b07        onlyoffice4enterprise/controlpanel-ee:1.6.0.64       "/bin/sh -c 'bash -C "   43 hours ago        Up 38 hours         80/tcp, 443/tcp                                                                                                                     onlyoffice-control-panel
acbd5ab91fb5        onlyoffice4enterprise/documentserver-ee:4.1.5.1      "/bin/sh -c 'bash -C "   43 hours ago        Up 13 hours         80/tcp, 443/tcp                                                                                                                     onlyoffice-document-server


I wanted to install the Mail Server afterwards with CP. Download + install seems to work, but then the Community does not start and throw an error : MAIL_SERVER_API_HOST is empty.
It was just a test, I don't have to repair it, but I just need some informations about the procedure :

1) What are the requirement for the install ? ( DNS, MX, ... )

2) We own already an extern mail server. Is it possible to integrate/include the email accounts in OnlyOffice ? ( I mean, for existings accounts, read, send an email and manage the usual directories ).

Thanks !
Last edited by kiar on Sun Nov 13, 2016 4:01 pm, edited 1 time in total.
kiar
 
Posts: 44
Joined: Tue Oct 04, 2016 7:31 am

Re: Install Mail afterwards

Postby Maxim » Tue Oct 18, 2016 2:05 pm

Hello!
We tried the same situation on a debian server. So, first you should delete exim4 or postfix because it blocks 25 port, next step you should delete all containers and reinstall enterprise version. Of course, before deleting containers you can try just stop them and start again.
For installing Mail Server you should know host name of mail server.
If you decide to use an external mail server you should remember that Community Server acts as Mail Aggregator. There is no possibility to manage (delete, create folder etc.) your email on server.
See more information here http://helpcenter.onlyoffice.com/server/docker/enterprise/enterprise-script-installation.aspx
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm

Re: Install Mail afterwards

Postby kiar » Wed Nov 02, 2016 11:10 am

Ok, thanks, and sorry for the late reply.
kiar
 
Posts: 44
Joined: Tue Oct 04, 2016 7:31 am

Re: Install Mail afterwards

Postby kiar » Thu Nov 03, 2016 9:15 am

So I could finally test it yesterday and I was not able to start properly the community server.
I wanted to perform a new install, so I did ( let's assume my domain is docs.mydomain.com for OnlyOffice - dig mx docs.mydomain.com has an answer ) :

Code: Select all
# docker stop $(docker ps -a -q)
# docker rm $(docker ps -a -q)
# bash enterprise-install.sh -md "docs.mydomain.com"


The install process is successfully, and the container start ( I can see it with docker ps ). But I'm unable to access OnlyOffice ( no response ).
I can attach the container of Community Server, but not see anything in the logs ( and it is really slow ).
Then, I did on the same server an install without mail :

Code: Select all
# docker stop $(docker ps -a -q)
# docker rm $(docker ps -a -q)
# bash enterprise-install.sh -ims false


Surprise ! OnlyOffice starts normally, and with the same configuration as before my delete action with docker.
It seems that docker rm does not delete all, and maybe it's the origin of my problems.
Or have you another idea ?
kiar
 
Posts: 44
Joined: Tue Oct 04, 2016 7:31 am

Re: Install Mail afterwards

Postby Maxim » Mon Nov 07, 2016 9:32 am

Hello kiar!
Command docker rm delete container only! Previously you installed ONLYOFFICE with sh file, by default installation goes with -v command to map folders to /app/onlyoffice - that's why the info had been saved and you started with the same configuration. If you want to delete completely you should delete and /app/onlyoffice too.
Does ONLYOFFICE work fine now?
Maxim
 
Posts: 1237
Joined: Tue Oct 11, 2016 2:34 pm

Re: Install Mail afterwards

Postby kiar » Mon Nov 07, 2016 2:09 pm

Unfornately not.

I removed all container and moved the /app to /app-old, then done a new install :

Code: Select all
# bash enterprise-install.sh -md "docs.domain.com"
710101479c85812617c9fd29667d04359e07bc5d1f25380a37c4c1f63abca942
48ead80b4f91cd4b0fed66f6ae427752cb7fd3fb51433a13e3644fe8ebf01f4e
0b65d38a8799a16a558348082f6c87330625947d12a86777b4ea09c47133750f
f4dc25f5e241ad554cd16ffc0e46794950b2f428710b643094dd599a157c493d
Installation complete
# docker ps
CONTAINER ID        IMAGE                                               COMMAND                  CREATED             STATUS              PORTS                                                                                                                               NAMES
f4dc25f5e241        onlyoffice4enterprise/communityserver-ee:8.9.2.14   "/bin/sh -c 'exec dum"   3 minutes ago       Up 46 seconds       0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 3306/tcp, 5280/tcp, 9865-9866/tcp, 9871/tcp, 9882/tcp, 0.0.0.0:5222->5222/tcp, 9888/tcp   onlyoffice-community-server
0b65d38a8799        onlyoffice4enterprise/controlpanel-ee:1.6.0.64      "/bin/sh -c 'bash -C "   3 minutes ago       Up 3 minutes        80/tcp, 443/tcp                                                                                                                     onlyoffice-control-panel
48ead80b4f91        onlyoffice/mailserver:1.6.10                        "/bin/sh -c 'export C"   3 minutes ago       Up 3 minutes        0.0.0.0:25->25/tcp, 0.0.0.0:143->143/tcp, 3306/tcp, 0.0.0.0:587->587/tcp, 8081/tcp                                                  onlyoffice-mail-server
710101479c85        onlyoffice4enterprise/documentserver-ee:4.1.8.1     "/bin/sh -c 'bash -C "   3 minutes ago       Up 3 minutes        80/tcp, 443/tcp                                                                                                                     onlyoffice-document-server
# docker attach f4dc25f5e241
MAIL_SERVER_API_HOST is empty


And the server doesn't respond. Without Mail is all ok.
kiar
 
Posts: 44
Joined: Tue Oct 04, 2016 7:31 am

Re: Install Mail afterwards

Postby kiar » Sun Nov 13, 2016 4:00 pm

Solved : the server didn't have access to the OpenDns server, that's why Community Server was not able to start.

Here : https://github.com/ONLYOFFICE/Docker-Co ... -server.sh

Line 48 :

Code: Select all
EXTERNAL_IP=${EXTERNAL_IP:-$(dig +short myip.opendns.com @resolver1.opendns.com)};


The variable EXTERNAL_IP was empty, and the test on line 151 just throw an error 502 :

Code: Select all
if [[ $MAIL_SERVER_DB_HOST =~ $VALID_IP_ADDRESS_REGEX ]]; then
      MAIL_SERVER_API_HOST=${MAIL_SERVER_DB_HOST};
elif [[ $EXTERNAL_IP =~ $VALID_IP_ADDRESS_REGEX ]]; then
      MAIL_SERVER_API_HOST=${EXTERNAL_IP};
else
      echo "MAIL_SERVER_API_HOST is empty";
                exit 502;


With acces to OpenDns, it works :)
kiar
 
Posts: 44
Joined: Tue Oct 04, 2016 7:31 am


Return to Enterprise Version

Who is online

Users browsing this forum: No registered users and 1 guest