You are viewing limited content. For full access, please sign in.

Question

Question

Any compatible/suggested email smtp servers

asked on November 22 Show version history

Hello All,

Our customer was using Microsoft outlook smtp server in Laserfiche Forms in order to send email notifications to the corresponding users within the form.

Apparently, lately his Laserfiche Server is not able to send any emails and when trying to check the FormsConfig email settings tab and testing, it is stating that there is an error LFF2000 - EmailSubmissionFailure

After troubleshooting, the IT said that when the router is restarted, some emails are being sent then its fails again. Their ISP is blocking port 25 to prevent spam emails.

Any suggestion as to how to workaround this matter. 

Your help will be appreciated!

Error Details: 

Unable to send an email. Please contact your system administrator. SMTPServer: smtp.office365.com, Port: 587, Recipients: redacted@redacted, Cc: , Bcc: , Sender: laserfiche@redacted, Subject: sfsdfsdf, Body: sdfsfsdfsdf<p></p><div>sfsdfsd</div><div>sdfsdfsdf</div>. (Tracking info: business process name: Test Mail Process, step name: Service Task, main instance ID: 343, worker instance ID: 3028) [LFF2007-EmailSubmissionFailure1]

Details:
URL: 
Error: EmailSubmissionFailure1
Date: 11/24/2021 10:23:17 AM (Arab Standard Time)
HTTP Status Code: 400
Business Process ID: 19
Instance ID: 343
Business Process Name: Test Mail Process

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: Unable to send an email. Please contact your system administrator. SMTPServer: smtp.office365.com, Port: 587, Recipients: redacted@redacted, Cc: , Bcc: , Sender: redacted@redacted, Subject: sfsdfsdf, Body: sdfsfsdfsdf<p></p><div>sfsdfsd</div><div>sdfsdfsdf</div>. (Tracking info: business process name: Test Mail Process, step name: Service Task, main instance ID: 343, worker instance ID: 3028) [LFF2007-EmailSubmissionFailure1]
   at Laserfiche.Forms.CommonUtils.EmailDeliverFactory.DeliverEmailSync(IEntityContext context, EmailMessage em)
   at Laserfiche.Forms.Routing.EmailService.Execute(Int32 instanceId, IRoutingContext routingContext, RoutingInstanceStatus OriginalStatus)
   at Laserfiche.Forms.Routing.ServiceTask.Execute(Int32 instanceId, IRoutingContext routingContext)

Inner exception: System.Net.Mail.SmtpException
Message: Failure sending mail.
   at WebCommonCtrls.EmailDeliver.DeliverEmail(EmailMessage em, Int32 retryCnt)
   at Laserfiche.Forms.CommonUtils.EmailDeliverFactory.DeliverEmailSync(IEntityContext context, EmailMessage em)

Inner exception: System.IO.IOException
Message: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.ReadLinesCommand.Send(SmtpConnection conn)
   at System.Net.Mail.EHelloCommand.Send(SmtpConnection conn, String domain)
   at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
   at System.Net.Mail.SmtpClient.GetConnection()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)

Inner exception: System.Net.Sockets.SocketException
Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

0 0

Answer

APPROVED ANSWER
replied on November 23

Per Microsoft, SMTP connections to smtp.office365.com should use port 587 with SSL/TLS.

How to set up a multifunction device or application to send email using Microsoft 365 or Office 365

0 0
replied on November 23

Hey Samuel,

Actually, the customer was using port 587 before the issue occurred last month and the email stopped from being transmitted. 

That's what raised our questions as for what might be the cause. 
I will try to attach the error log tomorrow for more information on that matter

Thank you for your reply! 

0 0

Replies

replied on December 1

Hey all,

As an Edit on this post,

I triple checked the port used by the customer for the smtp.office365.com connection and it using port 587 with SSL/TLS.

After back and forth conversation between the customer and the ISP Provider, the problem was clearly from the later who whitelisted the port responsible for the SMTP connection (port 587). 

Thank you all for your feedback and valuable information.

2 0
replied on December 1

I have been lucky enough to never have an ISP block my traffic, but that would do it, block ports and there is no more communication.

The key was in the error message though:

A connection attempt failed because the connected party did not properly respond after a period of time

More often written as:

No response from the host

0 0
replied on November 23

Just wanted to mention that if you're using Microsoft Office 365 SMTP, then see https://docs.microsoft.com/en-us/microsoft-365/compliance/prepare-tls-1.2-in-office-365?view=o365-worldwide

Ensure that you're defaulting to using TLS 1.2 as part of your Laserfiche configuration. See https://support.laserfiche.com/kb/1013919/configuration-information-for-tls-1-2

1 0
replied on November 24

Hey Alexander, 

I think i missed your reply on the post. 

I will double check on the TLS 1.2 whenever I reconnect with the customer again.

Thank you! 

0 0
replied on November 23

Can you share the full error stack for LFF2000 - EmailSubmissionFailure? The SMTP port they configured for outlook is 587?

0 0
replied on November 23

Hello Xiuhong, I tried to reach the customer earlier today with no success. I'll try to attach the error generated tomorrow. 
 

But pretty sure the port used was 587 and not 25 and yet the IT person told me after his conversation with his ISP Provider that they blocked the port 25 and that's why emails are not getting through unless he restarts his router. Only then a couple of emails go through and then stops once again. 
 

i'll get back to you with the error tomorrow.

Thank you!

0 0
replied on November 24

The full error is attached as requested. 

0 0
replied on November 23

I doubt their ISP is blocking any ports. They can't exactly block a port, the servers listening on a port are outside of their hardware. They could write a script to drop packets with a specific port destination. This would cause extra computational overhead and not only block spam traffic, it would block all traffic.

The failure error should be in the Event Log under Apps & Services > Laserfiche Forms

0 0
replied on November 23

ISPs commonly block port 25 using standard firewalls, just as they block malicious IPs.

0 0
replied on November 23

That firewall would essentially be an instruction set on their routing equipment. Never had an ISP do this to me though (for any port). Have not used port 25 in a little while though.

0 0
replied on November 23

I use to share your same opinion on that matter until i was told otherwise. Apparently ISPs block it as the IT person said and as mentioned by @Samuel. 

 

Will to attach the error tomorrow for your review. 

 

Thank you !! 

1 0
replied on November 23

There are many different flavors of network firewalls. Any decent sized ISP has dedicated security appliances like the Cisco Firepower 9000 series to handle functions from basic port/IP firewall rules to traffic inspection to protecting against DDoS attacks. These devices tend to have specialized hardware acceleration chips that can enable them to process huge volumes of traffic (ex. up to 1 Tbps for the Cisco model above). 

Even if your ISP isn't blocking your traffic, rest assured it's passing through their network security equipment that has the capability.

0 0
replied on November 24

Looks like smtp.office365.com simply is not responding at all. It is not a case of the transport connection being forcibly closed.

Run a port scan to make sure there are not network failures.

0 0
replied on November 24

I will ask the IT person to run the scan. 
Thank you for your suggestion!

Will get back to you in case something comes up.

0 0
replied on November 24
0 0
replied on November 24

Hello, 
Thank you will try that and check the results.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.