News:

  • August 13, 2026, 02:21:51 PM

Login with username, password and session length

Author Topic: BRX Email not working  (Read 13592 times)

Kristjan

  • Sr. Member
  • ****
  • Posts: 87
    • Idnadartaekni ehf
BRX Email not working
« on: March 06, 2023, 10:22:09 AM »
I have a BRX-36 failing to send email. I am using the IP address of the SMTP server in the SMTP device and IT has assured me that port 25 is open. No authentication. I am able to ping the SMTP server but I get a timeout on the EMAIL instruction, I don't even get a connection to the SMTP server. See attached screenshot from DoMore logger on the failure.

For testing purposes I added a BRX-18 to the same subnet and the email instruction works there. Also attached screenshot from that one. I can't see any difference in the SMTP device or the EMAIL instruction between the two PLC's.

Any thoughts? Are there any known bugs in the EMAIL instruction?

I hope I don't need to factory reset or do other major changes as this is a site in production.


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6170
  • Yes Pinky, Do-more will control the world!
Re: BRX Email not working
« Reply #1 on: March 06, 2023, 10:45:54 AM »
You said netmask, but didn't mention gateway. Are the settings the same?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Kristjan

  • Sr. Member
  • ****
  • Posts: 87
    • Idnadartaekni ehf
Re: BRX Email not working
« Reply #2 on: March 06, 2023, 11:19:24 AM »
Yes, the gateway settings are the same for both PLCs.
Ping to the SMTP server is working on both PLCs.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6170
  • Yes Pinky, Do-more will control the world!
Re: BRX Email not working
« Reply #3 on: March 06, 2023, 11:25:15 AM »
Yes, the gateway settings are the same for both PLCs.
Ping to the SMTP server is working on both PLCs.

Not sure. The SMTP server is never answering. It might be interesting to see a Wireshark trace of the traffic.

I assume there is no ECOMEX POM installed in either PLC, correct?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Kristjan

  • Sr. Member
  • ****
  • Posts: 87
    • Idnadartaekni ehf
Re: BRX Email not working
« Reply #4 on: March 06, 2023, 11:36:51 AM »
No ECOMEX, only a serial POM

MAEdwards

  • Sr. Member
  • ****
  • Posts: 57
Re: BRX Email not working
« Reply #5 on: March 06, 2023, 01:27:14 PM »
Is there any correlation to the EMAIL send failure and the MRX timeout events shown in the Logger?

rlp122

  • Sr. Member
  • ****
  • Posts: 92
Re: BRX Email not working
« Reply #6 on: March 06, 2023, 10:39:46 PM »
When you say PING, is this from a PC or the PLC?  It makes a difference.

Are you connected for programming via ethernet?

Have you verified that the BRX 36 is the only device with that IP address?

Have you tried changing the ethernet cable to the BRX 36 and/or plugging into a different port on your switch and/or changing the switch?

Kristjan

  • Sr. Member
  • ****
  • Posts: 87
    • Idnadartaekni ehf
Re: BRX Email not working
« Reply #7 on: March 07, 2023, 04:07:30 AM »
Is there any correlation to the EMAIL send failure and the MRX timeout events shown in the Logger?
I assume there is no correlation and that this has to do with my serial Modbus line

Kristjan

  • Sr. Member
  • ****
  • Posts: 87
    • Idnadartaekni ehf
Re: BRX Email not working
« Reply #8 on: March 07, 2023, 04:20:35 AM »
When you say PING, is this from a PC or the PLC?  It makes a difference.

Are you connected for programming via ethernet?

Have you verified that the BRX 36 is the only device with that IP address?

Have you tried changing the ethernet cable to the BRX 36 and/or plugging into a different port on your switch and/or changing the switch?
I am using the PING instruction in the PLC.

I am connected via ethernet for programming.

The BRX36 is the only device on the network with that IP address.

I didn't try changing the ethernet cable. The BRX36 is a master with several DMIO remote I/O around the facility so I am trying to minimize the downtime (we are in production) that will occur when shuffling cables.

Yesterday, I decided to change the DNS on the PLC and I "kind-of" lost it, i.e. I am no longer able to connect remotely (VPN) but able to connect locally and the PLC and all remote I/O are working together. So, today I am going to upgrade firmware (running 2.8.x) and bootloader and power cycle the PLC and hope to resolve the current issues.

As a side question: When do we need to configure DNS on the PLC? Is it only neccessary if we are using textual representations of URL's (e.g. mail.mysmtp.com) in instructions? We shouldn't need to use DNS if we only use numeric IP-addresses (like 10.120.232.50)?

MAEdwards

  • Sr. Member
  • ****
  • Posts: 57
Re: BRX Email not working
« Reply #9 on: March 07, 2023, 07:37:43 AM »
As a side question: When do we need to configure DNS on the PLC? Is it only necessary if we are using textual representations of URL's (e.g. mail.mysmtp.com) in instructions? We shouldn't need to use DNS if we only use numeric IP-addresses (like 10.120.232.50)?

That is correct.

Kristjan

  • Sr. Member
  • ****
  • Posts: 87
    • Idnadartaekni ehf
Re: BRX Email not working
« Reply #10 on: March 07, 2023, 08:30:22 AM »
Firmware updated, bootloader updated. PLC power cycled. Problem solved  8)

I don't know which of the operations fixed the issue ::)

Thank you all for your inputs  :)