ESP32 Fails To Send Email Notification

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

ESP32 Fails To Send Email Notification

#1 Post by Adam » 15 Nov 2023, 09:22

I am hoping someone can help me with the email notification on 2 ESP32 modules I have recently set up. Previously I have set up email notification on multiple esp8266 and they work perfectly, but using the same email settings from the esp8266 on the esp32 and it fails when sending a test email (see log screenshot). The esp32 modules are on the same network as the working esp8266 modules, one is running ESP_Easy_mega_20231013_normal_ESP32_4M316k and the other is running ESP_Easy_mega_20231013_normal_ESP32_4M316k_LittleFS. I have also tried somee earlier versions of software but still have the same issues. Any help/advise would be much appreciated.

Capture.JPG
Capture.JPG (59.41 KiB) Viewed 3580 times

User avatar
Ath
Normal user
Posts: 3918
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP32 Fails To Send Email Notification

#2 Post by Ath » 15 Nov 2023, 09:56

- Have you triple-checked your credentials?
- Does the server still accept requests on port 25? (the logging has a presentation issue, it doesn't include the colon)

Can you show your Email configuration page in ESPEasy? (you can mask the username)
/Ton (PayPal.me)

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#3 Post by Adam » 15 Nov 2023, 10:15

The email settings from one of my working ESP8266 modules
ESP8266.jpg
ESP8266.jpg (68.05 KiB) Viewed 3569 times
The email settings from one of the non working ESP32 module, the only difference between the two is I have different subject lines.
ESP32.jpg
ESP32.jpg (67.32 KiB) Viewed 3569 times

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#4 Post by Adam » 16 Nov 2023, 10:31

Some aditional info I just discovered, if I reboot the ESP32 it successfully sends test emails but after being up a few minutes all test emails fail again.

TD-er
Core team member
Posts: 9221
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP32 Fails To Send Email Notification

#5 Post by TD-er » 16 Nov 2023, 12:29

Is there a rate limiter active on your mail host?

User avatar
Ath
Normal user
Posts: 3918
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP32 Fails To Send Email Notification

#6 Post by Ath » 16 Nov 2023, 22:20

Have you possibly enabled the ECO mode on the Tools/Advanced settings page? As that may cause it to have poor WiFi connectivity, so it might be unable to send the mails out.

For testing you could install a hmail server (windows) (or other SMTP server on Mac or Linux), locally, and use that as the target for your notifications, so you can monitor if it keeps sending the mails.
/Ton (PayPal.me)

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#7 Post by Adam » 17 Nov 2023, 06:41

Ok, I sent 5 successfull test emails from the esp8266 then 2 unsuccessful emails from the esp32. I then sent another 5 successful emails from the esp8266.

I checked eco mode and it is turned off.

I will try and set up a hmail server this weekend and do some testing.

One other thing I just thought of, the esp8266 and esp32 modules are on the same network but connected to different wifi routers. I might move the esp32 modules over to the other wifi and see if that makes a difference.

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#8 Post by Adam » 17 Nov 2023, 07:37

Wow, I think that fixed it.
I swapped the two esp32 modules over to the other wifi router and now they have sent 20 emails each without fail. I think I will throw my router I have out in the shed in the bin and replace it with something decent.
Thanks for all your input/help guys, much appreciated.

TD-er
Core team member
Posts: 9221
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP32 Fails To Send Email Notification

#9 Post by TD-er » 17 Nov 2023, 08:16

What kind of router is it?
Is it something with 2.4 and 5 GHz WiFi band?
If so, then you might want to check a few settings on the router.

But first you can try to force the WiFi mode on ESPEasy to 802.11g (N.B. on some ESP8266 builds this checkbox was effectively inverted due to a bug, but on ESP32 this should work just fine)

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#10 Post by Adam » 17 Nov 2023, 09:09

The shed router is a Arcadyan LH1000, the house router (working one) is a Technicolor DJA0231 (both look identical). The settings are pretty limited as they are just ISP supplied routers, although I have gained root access to the Technicolor and can tinker with it if needed.

I set both esp32 to force wifi b/g but no joy, emails still fail connected to shed router ( I think I tried this a while back as well).

I was given another Technicolor DJA0231 recently so I might just set that up and see how the esp32 go.

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#11 Post by Adam » 17 Nov 2023, 13:08

I have set up the other Technicolor in the shed and everything is working great now, there must be something about the Arcadyan LH1000 that the ESP doesnt like.

TD-er
Core team member
Posts: 9221
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP32 Fails To Send Email Notification

#12 Post by TD-er » 17 Nov 2023, 16:34

Does it have "band steering" enabled? -> Disable
Does it have IGMP snooping enabled? -> Disable
Does it have multicast related setting? Either disable it or see if there is something related to forwarding unknown multicast traffic. If it has -> Enable

Adam
Normal user
Posts: 10
Joined: 15 Nov 2023, 07:07

Re: ESP32 Fails To Send Email Notification

#13 Post by Adam » 18 Nov 2023, 00:19

Band steering was disabled
IGMP Snooping- don’t remember seeing this setting
Multicast- don’t remember any related settings

I will set the arcadyan up again tonight and go through all the settings, this router does have a basic gui though and I only used it because it was free.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests