Try the fastest and simplest way to install ONLYOFFICE

Unable to add e-mail domain

Issues during installation and related to database

Unable to add e-mail domain

Postby kabo » Fri May 22, 2015 6:41 pm

I want to use OnlyOffice as my e-mail server. Not just an e-mail client for gmail or some other server, I want <mail.my.domain> to point to the OnlyOffice MailServer.

So I managed to get the docker images running on my ubuntu 14.04 after a little work (upgrading the kernel, manually starting the services in the communityserver-container, etc).
I started the dockers with docker-compose up -d
Code: Select all
communityserver:
  image: onlyoffice/communityserver
  links:
   - documentserver:document_server
   - mailserver:mail_server
  ports:
   - "80:80"
   - "443:443"
  volumes:
  - /opt/onlyoffice/Data:/var/www/onlyoffice/Data
  stdin_open: true
  tty: true
documentserver:
  image: onlyoffice/documentserver
  stdin_open: true
  tty: true
mailserver:
  image: onlyoffice/mailserver
  hostname: <my.domain>
  privileged: true
  ports:
   - "25:25"
   - "143:143"
   - "587:587"
  stdin_open: true
  tty: true


Then I registered on the initial setup with my gmail e-mail.
Then I checked out the mailserver configuration documentation.
First I added my gmail-account there, as the instructions indicated. Then I clicked on Settings > Mail Server and got "Internal server error. Try again later."
I logged on to the communityserver-container.
Code: Select all
$ sudo docker exec -it <container-id> bash
# less /var/log/onlyoffice/web.api.log
2015-05-22 18:17:28,237 ERROR [Threadpool worker] ASC.Api - method error: https://<my.domain>/api/2.0/mailserver/serverinfo/get.json?__=515981 - Server error
System.IO.InvalidDataException: No mail servers registered.
  at ASC.Mail.Server.Dal.ServerDal.LinkServerWithTenant (ASC.Common.Data.DbManager db) [0x00000] in <filename unknown>:0
  at ASC.Mail.Server.Dal.ServerDal.GetTenantServer () [0x00000] in <filename unknown>:0
  at ASC.Api.MailServer.MailServerApi.get_MailServer () [0x00000] in <filename unknown>:0
  at ASC.Api.MailServer.MailServerApi.GetUnusedDnsRecords () [0x00000] in <filename unknown>:0
  at ASC.Api.MailServer.MailServerApi.GetMailServer () [0x00000] in <filename unknown>:0
  at ASC.Api.MailServer.MailServerApi.GetMailServerFullInfo () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

Of course there are no mail servers registered, that's what I'm trying to accomplish!

I verified that the mail-services (dovecot, postfix, etc) were running on the MailServer-container as they should, no problem there.

What am I missing?
kabo
 
Posts: 16
Joined: Wed May 20, 2015 12:12 pm

Re: Unable to add e-mail domain

Postby ThinkPrivacy » Mon May 25, 2015 10:07 am

I am also getting a 500 error but mine is at the last stage of setting up a mailserver. Sadly my system is only logging nginx errors/access for some reason so I am unable to get any further information other than the 500 error.
ThinkPrivacy
 
Posts: 20
Joined: Thu May 21, 2015 4:42 pm

Re: Unable to add e-mail domain

Postby AnaMih » Mon May 25, 2015 3:36 pm

Please send the "web.api" log file from /var/log/onlyoffice folder inside onlyoffice community_server container via email - support@onlyoffice.com
User avatar
AnaMih
 
Posts: 264
Joined: Mon Aug 25, 2014 10:15 am

Re: Unable to add e-mail domain

Postby kabo » Tue May 26, 2015 9:12 pm

You got email :)
kabo
 
Posts: 16
Joined: Wed May 20, 2015 12:12 pm

Re: Unable to add e-mail domain

Postby AnaMih » Wed May 27, 2015 10:42 am

To kabo:
We've received your log file, thank you. According to the log files ONLYOFFICE Community Server can't "see" the mail server:
Please, make sure that you follow the instructions
Pay attention that the sequence of programs installation should be the following:
1) Installing ONLYOFFICE Document Server.
2) Installing ONLYOFFICE Mail Server.
3) Installing ONLYOFFICE Community Server (with linking mail and document servers).
User avatar
AnaMih
 
Posts: 264
Joined: Mon Aug 25, 2014 10:15 am

Re: Unable to add e-mail domain

Postby ThinkPrivacy » Wed May 27, 2015 10:45 am

I did follow those instructions and I sent the command I launched them with via email.
ThinkPrivacy
 
Posts: 20
Joined: Thu May 21, 2015 4:42 pm

Re: Unable to add e-mail domain

Postby kabo » Wed May 27, 2015 1:34 pm

I'm using docker-compose up -d to start the containers. Does that not ensure the proper order?
kabo
 
Posts: 16
Joined: Wed May 20, 2015 12:12 pm

Re: Unable to add e-mail domain

Postby kabo » Thu May 28, 2015 9:00 pm

Tried starting them manually now, no difference. What port does the community server want to contact on the mail server? 25, 143 and 587 seem to be reachable.
Code: Select all
// I ran this on the community server
root@e54aa5aef8a6:/# telnet mail_server 25
Trying 172.17.0.8...
Connected to mail_server.
Escape character is '^]'.
^]
telnet> Connection closed.
root@e54aa5aef8a6:/# telnet mail_server 143
Trying 172.17.0.8...
Connected to mail_server.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.
^]
telnet> Connection closed.
root@e54aa5aef8a6:/# telnet mail_server 587
Trying 172.17.0.8...
Connected to mail_server.
Escape character is '^]'.
220 my.domain ESMTP Postfix
^]
telnet> Connection closed.
kabo
 
Posts: 16
Joined: Wed May 20, 2015 12:12 pm

Re: Unable to add e-mail domain

Postby kabo » Thu May 28, 2015 9:05 pm

I just thought of something, I think I'm using a self-signed certificate, could that be an issue?
kabo
 
Posts: 16
Joined: Wed May 20, 2015 12:12 pm

Re: Unable to add e-mail domain

Postby kabo » Thu May 28, 2015 9:27 pm

I also found this in /var/log/onlyoffice/mail.agg.errors.log on the community server
Code: Select all
2015-05-28 21:02:37,882 Threadpool worker ERROR Task_13             : ProcessMessages() Tenant=0 User='00000000-0000-0000-0000-000000000ace' Account='my.account@gmail.com', MailboxId=1, UID=35168 Exception:
System.IO.FileNotFoundException: file not found
File name: '/var/www/onlyoffice/Data/addons/mail/Data/aggregator/0/00000000-0000-0000-0000-000000000ace/61db23faf6b943d9a40377d5a4c71240/body.html'
  at ASC.Data.Storage.DiscStorage.DiscDataStore.Delete (System.String domain, System.String path) [0x00000] in <filename unknown>:0
  at ASC.Mail.Aggregator.MailBoxManager.StoreMailBody (Int32 tenant, System.String user, ASC.Mail.Aggregator.Common.MailMessageItem messageItem) [0x00000] in <filename unknown>:0
  at ASC.Mail.Aggregator.MailBoxManager.MailReceive (ASC.Mail.Aggregator.Common.MailBox mailbox, ActiveUp.Net.Mail.Message message, Int32 folderId, System.String uidl, System.String md5, Boolean hasParseError, Boolean unread, System.Int32[] tagsIds, ASC.Mail.Aggregator.Common.MailMessageItem& messageItem) [0x00000] in <filename unknown>:0


/var/www/onlyoffice/Data is shared from the host (/opt/onlyoffice/Data). Could this be related to file permissions? What permissions should /opt/onlyoffice/Data have on the host?
kabo
 
Posts: 16
Joined: Wed May 20, 2015 12:12 pm

Next

Return to Installation issues

Who is online

Users browsing this forum: Maxim and 2 guests