SMTP mail stopped working after upgrade to 2022.1

Posted on
Fri Jun 17, 2022 5:36 am
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

SMTP mail stopped working after upgrade to 2022.1

Upgraded to 2022.1 and MacOS 12.4. Currently in the phase of addressing any failures reported in the log

Any suggestions of what the cause of this may be? It was working prior to the upgrade.

Right now I'm just guessing. Is there a required Python3 module that if missing would cause this?

Code: Select all
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue
   Action Group                    send a test email - with python
   Email+ Debug                    sendEmailAction queueing message 'Test'
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 1 items in queue
   Email+                          sending email 'Test' to 'XXXXX@yahoo.com' using Email+ SMTP Server
   Email+ Debug                    Email+ SMTP Server: sending:
From: XXXXX@sbcglobal.net
Subject: Test
To: XXXXX@yahoo.com
Cc:
Bcc:
Date: Fri, 17 Jun 2022 07:13:12 -0400
Message-ID: <165546439277.2065.12953913659103944901@Anyones-Mac.local>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0

test

   Email+ Error                    Email+ SMTP Server: SMTP server connection error: (554, b'6.6.0 Error sending message for delivery.')
   Email+ Debug                    connErrorTriggerCheck: Checking Triggers for Device Email+ SMTP Server (1059244909)

Posted on
Fri Jun 17, 2022 9:10 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1

What does that action group action actually look like?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jun 17, 2022 9:11 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1

And what service are you using for the SMTP server?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jun 17, 2022 9:52 am
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: SMTP mail stopped working after upgrade to 2022.1

The service is Yahoo Mail. For testing, I simplified it to:

Code: Select all
indigo.server.sendEmailTo("XXX@yahoo.com", subject="Test", body="test")
Attachments
Untitled_34.jpg
Untitled_34.jpg (154.14 KiB) Viewed 3734 times

Posted on
Fri Jun 17, 2022 10:08 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1

Actually, you're sending to a yahoo mail address, but you're using an ATT SMTP server, with a sbcglobal email address login. Have you confirmed that works in a regular email client?

SMTP Error 554 is a server policy denied error, which means the ATT server doesn't want to accept that message. Could be your IP address is blacklisted, or the recipient address is blacklisted, or something else entirely.

In case it's an SSL issue, you could try StartTLS on port 587.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jun 17, 2022 4:32 pm
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: SMTP mail stopped working after upgrade to 2022.1

FlyingDiver wrote:
Actually, you're sending to a yahoo mail address, but you're using an ATT SMTP server, with a sbcglobal email address login. Have you confirmed that works in a regular email client?

SMTP Error 554 is a server policy denied error, which means the ATT server doesn't want to accept that message. Could be your IP address is blacklisted, or the recipient address is blacklisted, or something else entirely.

In case it's an SSL issue, you could try StartTLS on port 587.


I truly appreciate the help.

Agreed it's an AT&T server...the web client though is Yahoo! The email account is a holdover from when I had AT&T who had a partnership with Yahoo!

Using port 587 I was able to get the below code, within an Action Group, to send emails.

So the credentials w/port 587 work. However it doesn't, explain why any configuration changes were necessary, the last email my system sent was two (2) days ago, prior to upgrading. It also odd that I'm the only one having this problem.

The only other thing that is a one-off which I'll mention now, is I use a Secure Mail Key as my password for the email account. It is required when using AT&T email from a desktop program or email app without Open Authentication (OAuth). It shouldn't matter but I call it out in the event that for some reason it does in this instance.


Code: Select all
import smtplib, ssl
from email.mime.text import MIMEText


def main():
   
    # define email account settings
    smtp_port = 587
    smtp_server = "outbound.att.net"
    smtp_username = "XXX@sbcglobal.net"
    smtp_password = "***********"
   
    # define the email to send
    email_message = 'Hello Or any thing you want to send'
   
    message = MIMEText(email_message)
    message['From'] = 'XXX@sbcglobal.net' # smtp_username would work
    message['To'] = 'XXX@yahoo.com'
   
    # send the email
    debuglevel = True # when TRUE, logs connection to server to console
    mail = smtplib.SMTP(smtp_server, smtp_port)
    mail.set_debuglevel(debuglevel)
    mail.starttls()
    mail.login(smtp_username, smtp_password)
    mail.sendmail(message['From'], message['To'], message.as_string())
    mail.quit()
   
   
if __name__ == '__main__':
    main()
   

Posted on
Fri Jun 17, 2022 4:35 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1

It could have been entirely coincidental, and they changed the server security settings at about the same time you upgraded. Stranger things have happened. Or it could be a change in the way SSL is handled between the Python2 and Python3 libraries.

The only way to be sure is to try the old SSL settings in an older Indigo install and see if they still work. Probably not worth the effort.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jun 17, 2022 4:38 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1

Oh, wait. Are you saying your script works and the plugin doesn't? Or that they both work?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jun 17, 2022 5:55 pm
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: SMTP mail stopped working after upgrade to 2022.1

FlyingDiver wrote:
Oh, wait. Are you saying your script works and the plugin doesn't? Or that they both work?


The script I shared works when called by Python3. The Email+ Plugin, the 2022.1 version continues NOT to work for me resulting in the same error.

Code: Select all
Email+ Error                    Email+ SMTP Server: SMTP server connection error: (554, b'6.6.0 Error sending message for delivery.')



I just downgraded to a prior version of the plugin, Email+ 2021.1.1 and it is working fine again. So a quick temporary work-around. I will just continue to use the previous version for now.

Code: Select all
   Stopped plugin Email+
   Downgrading plugin Email+ to older version 2021.1.1 (previous version moved to trash)
   Loading plugin "Email+ 2021.1.1" using API v2.5
   Starting plugin "Email+ 2021.1.1" (pid 4614)
   Started plugin "Email+ 2021.1.1"
   Email+ Debug                    Email+ SMTP Server: Starting device (smtpAccount)
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 0 items in queue
   Action Group                    send a test email - with python
   Email+ Debug                    sendEmailAction queueing message 'Test'
   Email+ Debug                    Email+ SMTP Server: SMTP poll, 1 items in queue
   Email+                          sending email 'Test' to 'XXX@yahoo.com' using Email+ SMTP Server


It's also worth mentioning, with the old version, I can apparently configure it to use either SSL or StartTLS because changing those settings has no impact on my ability to send emails.

Posted on
Sat Jun 18, 2022 8:17 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Jun 18, 2022 11:21 am
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: SMTP mail stopped working after upgrade to 2022.1

FlyingDiver wrote:


I am having some trouble with the link. The page that open displays "Not Found"

Posted on
Sat Jun 18, 2022 11:23 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1

Weird. Go to https://github.com/FlyingDiver/ID-EmailPlusPlugin/ and click the green "Code" button, then download the zip file.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Jun 18, 2022 11:37 am
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: SMTP mail stopped working after upgrade to 2022.1

FlyingDiver wrote:
Weird. Go to https://github.com/FlyingDiver/ID-EmailPlusPlugin/ and click the green "Code" button, then download the zip file.


Still unable to get there. "404". I can see your other repositories, just not that one with that name.

Posted on
Sat Jun 18, 2022 11:43 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SMTP mail stopped working after upgrade to 2022.1


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jun 21, 2022 8:56 am
anyone offline
User avatar
Posts: 125
Joined: Apr 03, 2011
Location: Norfolk, VA

Re: SMTP mail stopped working after upgrade to 2022.1

FlyingDiver wrote:


I am seeing the same error message in the log, when trying the update. I tried both encryption settings, SSL and StartTLS, same error.

Code: Select all
   Email+ Error                    Email+ SMTP Server: SMTP server connection error: (554, b'6.6.0 Error sending message for delivery.')
   Email+ Debug                    connErrorTriggerCheck: Checking Triggers for Device Email+ SMTP Server (1059244909)

Who is online

Users browsing this forum: No registered users and 1 guest