ONLYOFFICE / CommunityServer

Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
http://www.onlyoffice.com
Apache License 2.0
2.64k stars 604 forks source link

Onlyoffice Workspace SMTP doesn´t work #502

Open itdkr opened 2 months ago

itdkr commented 2 months ago

Hello everyone,

i have a issue with SMTP and Onlyoffice Workspace Server. If i create a new user i don´t get any E-Mail with the new users mail address. If i would like to change my password i don´t get any E-Mail to change them. SMTP seems to be fine cause i get the testmail from onlyoffice Server.

I have installed Onlyoffice with deb/rpm package and for testing with a docker container but same result.

How can i fix this issue?

Regards Kevin

Carazyda commented 2 months ago

Hello @itdkr Are you using the default Onlyoffice SMTP server with notify.onlyoffice.info? Is port 25 open for the server?

itdkr commented 2 months ago

Hello @Carazyda with Onlyoffice SMTP and my own SMTP Server i get the SMTP Testmail. But i would like to change my password i don´t get any e-mail. Now i have configured my own SMTP Server. On the Firewall i see the connection between Onlyoffice and SMTP Server. With Port 465 & 587 both are working if i send a testmail.

Carazyda commented 2 months ago

What about port 25? Also please check svcNotiify.log for errors.

itdkr commented 2 months ago

Hello @Carazyda,

Port 25 should be work. But i have configured Port 587. I only get the Testmail with Port 587. Do I need port 25? Cause i didn´t see any traffic. If i reset my password i can see the connection to the SMTP Server with Port 587 but i don´t get any e-mail.

For testing I have installed Onlyoffice Workspace on Windows Server and everything seems to be fine. I can get the mail for password reset via Port 25 and Onlyoffice SMTP and via 587 own SMTP Server:

The Windows Server are in the same network with the same Firewall Rules like the Ubuntu Server.

Regards Kevin

svcNotify.log Ubuntu Server:

2024-04-09 14:12:01,968 ERROR [166] ASC.Notify - Tenant: 1, To: xxx@xx.de - System.IO.IOException: Operation on non-blocking socket would block ---> System.Net.Sockets.SocketException: Operation on non-blocking socket would block at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00016] in <88f564ea69dd4dc8ba9bf979e48d5996>:0 at MailKit.Net.NetworkStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00006] in :0 --- End of inner exception stack trace --- at MailKit.Net.NetworkStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x0001f] in :0 at MailKit.Net.Smtp.SmtpStream.ReadAheadAsync (System.Boolean doAsync, System.Threading.CancellationToken cancellationToken) [0x0019e] in :0 at MailKit.Net.Smtp.SmtpStream.ReadResponseAsync (System.Boolean doAsync, System.Threading.CancellationToken cancellationToken) [0x000bd] in :0 at MailKit.Net.Smtp.SmtpStream.ReadResponse (System.Threading.CancellationToken cancellationToken) [0x0000e] in :0 at (wrapper remoting-invoke-with-check) MailKit.Net.Smtp.SmtpStream.ReadResponse(System.Threading.CancellationToken) at MailKit.Net.Smtp.SmtpClient.DataAsync (MimeKit.FormatOptions options, MimeKit.MimeMessage message, System.Int64 size, System.Boolean doAsync, System.Threading.CancellationToken cancellationToken, MailKit.ITransferProgress progress) [0x005dc] in :0 at MailKit.Net.Smtp.SmtpClient.SendAsync (MimeKit.FormatOptions options, MimeKit.MimeMessage message, MimeKit.MailboxAddress sender, System.Collections.Generic.IList`1[T] recipients, System.Boolean doAsync, System.Threading.CancellationToken cancellationToken, MailKit.ITransferProgress progress) [0x00608] in :0 at MailKit.Net.Smtp.SmtpClient.Send (MimeKit.FormatOptions options, MimeKit.MimeMessage message, System.Threading.CancellationToken cancellationToken, MailKit.ITransferProgress progress) [0x0005f] in :0 at MailKit.MailTransport.Send (MimeKit.MimeMessage message, System.Threading.CancellationToken cancellationToken, MailKit.ITransferProgress progress) [0x00000] in :0 at ASC.Core.Notify.Senders.SmtpSender.Send (ASC.Notify.Messages.NotifyMessage m) [0x000d6] in :0

Carazyda commented 2 months ago

Does this error occur on notify.onlyoffice.info or on your smtp server? Or both? Operation on non-blocking socket would block

Also check the port usage on your Ubuntu server using netstat.

itdkr commented 2 months ago

Hello @Carazyda,

this error occur with onlyoffice smtp and my own smtp.... What i didn´t unterstand why does the SMTP Testmail work with both SMTP Server?! But E-Mail with Password reset doesn´t arrive.

I have a Firewall and can see traffic via Port 25 Onlyoffice SMTP and Port 587 if i configure my own SMTP Server.

Here are netstat screenshot: image image

Carazyda commented 2 months ago

Can you try to disable your firewall and try again to send "reset password"?