Potential Bug with SMTP Timeout

Ignition 8.1.27, linux

Setting up smtp profiles and testing them. One of our connections continuously fails on timeout. Even when we change to 60sec+ it still fails after the default 10s.

You should send your logs in to support. There's multiple possible timeouts, it might not be the one you're thinking of.

Thanks Paul.

Maybe you can help please?

image

Then in the log it's just this:

Putting a "TRACE" on 'EmailProfile' items doesn't expose any more useful data to the log, and there are no other entries at all.

The test email button is hardcoded to a timeout of 10 seconds. Does sending an actual email via notification profile fail?

There really needs to be a disclaimer for that! Paul!

1 Like

Hah, yeah, surprised me too. Not sure if there's some reason it doesn't obey the value set. I'll look into it more tomorrow.

This was a huge pain point in setting up email for the first time. Running 8.3.0 on Ubuntu and could never get a test email to send, it would always fail with the message:

ā€œError sending email from profile ā€˜MAIL_SERVER’: Exception reading responseā€

Logs were not super helpful and I had no issues with sending emails via swaks from the same machine. Increasing timeout was one of the many things I tried, and eventually I made the connection that the Send Test Email function was not respecting my SMTP timeout settings which led me to this thread. After just testing the email on an actual alarm instead of the test email function, I realized that it was working just fine the whole time.

I think it is a good idea to either greatly increase the timeout settings for the Test Mail function, or just have the Test Mail function respect the configured timeout