Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onlyoffice Workspace SMTP doesn´t work #502

Open
itdkr opened this issue Apr 8, 2024 · 7 comments
Open

Onlyoffice Workspace SMTP doesn´t work #502

itdkr opened this issue Apr 8, 2024 · 7 comments

Comments

@itdkr
Copy link

itdkr commented Apr 8, 2024

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
Copy link
Member

Carazyda commented Apr 9, 2024

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

@itdkr
Copy link
Author

itdkr commented Apr 9, 2024

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
Copy link
Member

Carazyda commented Apr 9, 2024

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

@itdkr
Copy link
Author

itdkr commented Apr 9, 2024

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: [email protected] - 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
Copy link
Member

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
Copy link
Author

itdkr commented Apr 11, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants